• +91 9723535972
  • info@interviewmaterial.com

Java Script Interview Questions and Answers

Java Script Interview Questions and Answers

Question - 61 : - What is variable typing in javascript?

Answer - 61 : - It is perfectly legal to assign a number to a variable and then assign a string to the same variable as follows example i = 10; i = "string"; This is called variable typing

Question - 62 : - What are undefined and undeclared variables?

Answer - 62 : - Undeclared variables are those that are not declared in the program (do not exist at all),trying to read their values gives runtime error.But if undeclared variables are assigned then implicit declaration is done . Undefined variables are those that are not assigned any value but are declared in the program.Trying to read such variables gives special value called undefined value.

Question - 63 : - How to find the selected radio button immediately using the 'this' variable?

Answer - 63 : - Kangaroo
Opossum
Tasmanian Tiger

Question - 64 : - Does javascript have the concept level scope?

Answer - 64 : - No. JavaScript does not have block level scope, all the variables declared inside a function possess the same level of scope unlike c,c++,java.

Question - 65 : - What is === operator ?

Answer - 65 : - ==== is strict equality operator ,it returns true only when the two operands are having the same value without any type conversion.

Question - 66 : - How to find radio button selection when a form is submitted?

Answer - 66 : - Kangaroo
Opossum
Tasmanian Tiger

Question - 67 : - How to Add new elements dynamically ?

Answer - 67 : - t1

firstP

Question - 68 : - How to have an element invoke a javascript on selection, instead of going to a new URL: ?

Answer - 68 : - hit me

Question - 69 : - How to have the status line update when the mouse goes over a link (The support of the status line is sporadic)?

Answer - 69 : - Look at the Status bar Look at the Status bar as your cursor goes over the link.

Question - 70 : - How to create a popup warning box

Answer - 70 : - alert('Warning: Please enter an integer between 0 and 100.');


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners