0

All of the Try it Yourself Codes in JavaScript stopped working

Once I got to the ES6 Section in the JavaScript course, all of the Try it Yourself codes stopped outputting anything. I think it might have something to do with "console.log()" being broken. I have copy pasted code from earlier in the course into the ES6 "try it yourself pages" and it still doesn't work when I use "console.log(anything)". P.S. Alerts still show up when I enter them and run the program. Here's an example of a code that doesn't output anything from the Rest & Spread Section: function containsAll(arr) { for (let k = 1; k < arguments.length; k++) { let num = arguments[k]; if (arr.indexOf(num) === -1) { return false; } } return true; } let x = [2, 4, 6, 7]; console.log(containsAll(x, 2, 4, 7)); console.log(containsAll(x, 6, 4, 9));

1st Apr 2021, 7:35 AM
Arthur Laffer
3 Respuestas
0
@ASJAD, for some reason it only works on my phone. I just checked it on three different browsers and two different networks on my laptop and desktop, but it still doesn't work on either of them. Idk why the problem is specifically with the ES6 section and none of the others.
1st Apr 2021, 4:42 PM
Arthur Laffer