D
Q. Which of the following is the correct output for the following JavaScript code:
varx=5,y=1 var obj ={ x:10} with(obj) { alert(y) }
The output of the above snippet code will be one because, first of all, the interpreter will search "obj" for the property (y). But it fails to find "obj" for property "y," so it chooses a value from outside the object, which is available within the given code.
You must be Logged in to update hint/solution
Q. What is the code to be used to trim whitespaces ?
Q. What are the various possessions in the three-way handshake by the TCP?
Q. Which method is called right before a field is saved?
Q. what will be the output of below JavaScript code?
Q. Which of the following is the child object of the JavaScript navigator?
Q. A __________ will be visible only within a function where it is defined.
Q. Which is the correct JavaScript statement to display "Hello Boss!" into an alert box?
Q. What will happen if we execute the following piece of code?
Q. If we have an object r and want to know if it is a Range object, we can write:
Discusssion
Login to discuss.