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?

821


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

523


Give an example of closure?

532


What is purpose of onerror event handler in javascript?

490


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?

642


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

658


What typeof returns for a null value?

536


How do you include a comment in javascript?

481


How to convert “20” to number in javascript?

517


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

452


Is javascript case sensitive?

659


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?

481