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

Dateigrösse: 477 bytes

[Anzeige ohne Zeilennummern]


 1 <!DOCTYPE html>
 2 <html lang="de">
 3 <head>
 4   <meta charset="utf-8">
 5   <title>Debugging mit ES6 console.log</title>
 6   
 7 <script>
 8 var wait1000 = ()=> new Promise((resolve, reject)=> {setTimeout(resolve, 5000)})
 9 
10 wait1000()
11     .then(function() {
12         console.log('Mike!')
13         return wait1000()
14     })
15     .then(function() {
16         console.log('STONE')
17     });
18 </script>
19 
20 </head>
21  
22 <body>
23 
24 <h2>Debugging mit ES6 console.log()</h2>
25  
26 </body>
27 </html>
28