Quelltext der Datei: http://www.michaelster.ch/jsTestFolder/console_log.htm

Dateigrösse: 477 bytes

[Anzeige ohne Zeilennummern]


1 
<!DOCTYPE html>
<html lang="de">
<head>
  <meta charset="utf-8">
  <title>Debugging mit ES6 console.log</title>
  
<script>
var wait1000 = ()=> new Promise((resolve, reject)=> {setTimeout(resolve, 5000)})

wait1000()
    .then(function() {
        console.log('Mike!')
        return wait1000()
    })
    .then(function() {
        console.log('STONE')
    });
</script>

</head>
 
<body>

<h2>Debugging mit ES6 console.log()</h2>
 
</body>
</html>