Deciphering comments and variables

Report a typo

Given the following multi-line JavaScript code, which statements are true? Choose all correct answers.

/* multi-line 
 comment */
 var x = 10;
 let y = 'Hello, world';
 // single-line comment
 const z = [x, y];
Select one or more options from the list

Create a free account to access the full topic