Un-Answered Questions { JavaScript }

Which type of variable among global and local, takes precedence over other if names are same?

501


Which built-in method adds one or more elements to the end of an array and returns the new length of the array?

819


Which built-in method returns the calling string value converted to upper case?

519


Give an example of closure?

530


What is purpose of onerror event handler in javascript?

488


What are disadvantages of using javascript?

515


Which built-in method returns the index within the calling string object of the first occurrence of the specified value?

638


Which built-in method returns the string representation of the number’s value?

656


What typeof returns for a null value?

532


How do you include a comment in javascript?

481


How to convert “20” to number in javascript?

514


Create an array in javascript with a list of 4 colors, assign that array to the variable, ‘colors’.

445


Is javascript case sensitive?

656


Create a new javascript object with the keys of “fname” equal to your first name, “lname” equal to your last name, and “fcolors” equal to and array of 3 of your favorite colors. Assign this object to a variable called “me” and log it to the console.

616


How would you organize your javascript code?

479