Guest practice: this set is not saved and does not count.
What does this log?
function visit() { let count = 0; count++; return count; } visit(); visit(); console.log(visit());
const go = function () { start(); }; needs a semicolon after the closing brace, but if (ready) { start(); } does not.
const go = function () { start(); };
if (ready) { start(); }
var x = 5; console.log(x + " " + y); var y = 7;
ReferenceError
Which statement about declaring the same name twice in one scope is true?
let
var
const
function sloppy() { a = 1; return "sloppy ok"; } function strict() { "use strict"; try { b = 1; return "strict ok"; } catch (e) { return "strict " + e.name; } } console.log(sloppy(), strict());
Click a question to go back and check it. After you submit, you will see the right answer and an explanation for every question. As a guest, nothing is saved.
Check my answers