A. Declaration/Initialization
B. Globalization
C. Instatiation
D. None of these
Integer Variable is declared using following syntax in JavaScript.
Variable name contain following type of characters -1. Alphabet2. Digits3. Underscore4. Special ChractersSelect the correct option.
Initialization of variable can be done by writing _____ operator in between variable name and operand value.
Multiple Declarations of variables are separated by ___________ symbol
Underscore can be used as first letter while declaring variable in JavaScript.
var var1 = "Pritesh";
Above variable can store value of type.
<!DOCTYPE html> <html> <body> <script> var x = 5; var y = 6; var z = 5 + 6; document.write(x + "<br>"); document.write(y + "<br>"); document.write(z + "<br>"); </script> </body> </html>
Guess output of the following code.
<!DOCTYPE html> <html> <body> <script> var x = "5"; var y = 6; var z = x + y; document.write(x + "<br>"); document.write(y + "<br>"); document.write(z + "<br>"); </script> </body> </html>
Variable declared without a value will have the value ______________.Eg.
var num;
<!DOCTYPE html> <html> <body> <script> var num1 = 1; var num2 = 1; var num3 = "1" + num1 + num2; document.write(num1 + "<br>"); document.write(num2 + "<br>"); document.write(num3 + "<br>"); </script> </body> </html>