Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>JS Bin</title>
- </head>
- <body>
- <button>Test</button>
- <script id="jsbin-javascript">
- //For -of loop
- let testResults = [1.23, 5.2, 4.1];
- //shorter syntax for looping thru arrays
- for(let testResult of testResults){
- console.log(testResult);
- }
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">//For -of loop
- let testResults = [1.23, 5.2, 4.1];
- //shorter syntax for looping thru arrays
- for(let testResult of testResults){
- console.log(testResult);
- }</script></body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement