Consider the below given syntax
book[datatype]=assignment_value;
In the above syntax, the datatype within the square brackets must be
book[datatype]=assignment_value;
A. An integer
B. A String
C. An object
D. None of the mentioned
Answer: Option B
Solution(By Examveda Team)
When using square bracket notation, the expression inside the square brackets must evaluate to a sting or a value that can be converted to a string.Join The Discussion
Comments ( 1 )
Related Questions on Basic and Variables
The development environment offers which standard construct for data validation
A. Super controlled loop constructs
B. Case sensitivity check
C. Validation constructs
D. All of the mentioned
The main purpose of a “Live Wire” in NetScape is to
A. Create linkage between client side and server side
B. Permit server side, JavaScript code, to connect to RDBMS
C. Support only non relational database
D. To interpret JavaScript code
A JavaScript program developed on a Unix Machine
A. will throw errors and exceptions
B. must be restricted to a Unix Machine only
C. will work perfectly well on a Windows Machine
D. will be displayed as a JavaScript text on the browser
I think i should be integer as i got the logic
var n = [10,05,25,100,2,79];
n[0]
10
[0] = 0 is an integer not string
can you correct it