MCQ
Which statement is used to give value “Hello Students” for the variable ‘y’ in JavaScript?
  • var y = = “Hello Students”;
  • B
    ver y = Hello Students;
  • C
    var y = “Hello Students”;
  • D
    var y = ‘Hello Students’;

Answer

Correct option: A.
var y = = “Hello Students”;
var y = “Hello Students”;

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free