Which of the following statements are false for Javascript?

Options
- Variable names are not case sensitive
- Variable names must begin with a letter or the underscore character
- Var is used to declare a variable
- Both b and c above


CORRECT ANSWER : Variable names are not case sensitive

Discussion Board
HR fu**ed me with this question

variable names can begin with $ sign

bad question 04-7-2019 06:52 PM

Answer will be wrong




Variables are case sensitive...



Naveen 08-18-2017 09:06 AM

wrong Observation

Variable names are not case sensitive is the correct answer

var ram; is not equal to var RAM;
var creates only local variable, you can use window object to create global variable/just omit var.

javascript 06-13-2016 02:43 AM

Observation

The option given has 3 answers dat are correct.... a and c.......this is because:

A... variables r not case sensitive i.e u can write it any how..e.g SaheED is allowed......

C.....i think we can use var to declare a global variable... so to my own view, both are correct answers

saheed 10-14-2015 04:42 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement