Javascript interview questions

  1. What is JavaScript?
  2. What’s relationship between JavaScript and ECMAScript?
  3. How do you submit a form using Javascript?
  4. How do we get JavaScript onto a web page?
  5. How to read and write a file using javascript?
  6. How to detect the operating system on the client machine?
  7. How can JavaScript make a Web site easier to use? That is, are there certain JavaScript techniques that make it easier for people to use a Web site?
  8. How can JavaScript be used to improve the "look and feel" of a Web site? By the same token, how can JavaScript be used to improve the user interface?
  9. What are JavaScript types?
  10. How do you convert numbers between different bases in JavaScript?
  11. How to create arrays in JavaScript?
  12. How do you target a specific frame from a hyperlink?
  13. What is a fixed-width table and its advantages?
  14. Where are cookies actually stored on the hard disk?
  15. How to add Buttons in JavaScript?
  16. What can javascript programs do?
  17. How to set a HTML document's background color?
  18. How can JavaScript be used to personalize or tailor a Web site to fit individual users?
  19. Are you concerned that older browsers don't support JavaScript and thus exclude a set of Web users? individual users?
  20. What does isNaN function do?
  21. What is negative infinity?
  22. In a pop-up browser window, how do you refer to the main browser window that opened it?
  23. What is the data type of variables of in JavaScript?
  24. How to write a script for "Select" lists using javascript
  25. Text From Your Clipboard?
  26. What does the "Access is Denied" IE error mean?
  27. Is a javascript script faster than an ASP script?
  28. Are Java and JavaScript the Same?
  29. How to embed javascript in a web page?
  30. What and where are the best JavaScript resources on the Web?
  31. What are the problems associated with using JavaScript, and are there JavaScript techniques that you discourage?
  32. What Boolean operators does JavaScript support?
  33. What does "1"+2+4 evaluate to?
  34. What is the difference between a web-garden and a web-farm?
  35. How to get the contents of an input box using Javascript?
  36. How to determine the state of a checkbox using Javascript?
  37. How to set the focus in an element using Javascript?
  38. How to access an external javascript file that is stored externally and not embedded?
  39. What is the difference between an alert box and a confirmation box?
  40. What is a prompt box?
  41. Can javascript code be broken in different lines?
  42. Taking a developer’s perspective, do you think that that JavaScript is easy to learn and use?
  43. What Web sites do you feel use JavaScript most effectively (i.e., best-in-class examples)? The worst?
  44. How about 2+5+"8"?
  45. What is the difference between SessionState and ViewState?
  46. What does the EnableViewStateMac setting in an aspx page do?
  47. How to Accessing Elements using javascript?
  48. What looping structures are there in JavaScript?
  49. How to hide javascript code from old browsers that dont run it?
  50. How to comment javascript code?
  51. What does javascript null mean?
  52. How do you create a new object in JavaScript?
  53. How do you assign object properties?
  54. What’s a way to append a value to an array?
  55. What is this keyword?
  56. What does the term sticky session mean in a web-farm scenario? Why would you use a sticky session? What is the potential disadvantage of using a sticky session?
  57. You have an ASP.NET web application running on a web-farm that does not use sticky sessions - so the requests for a session are not guaranteed to be served the same machine. Occasionally, the users get error message Validation of viewstate MAC failed. What could be one reason that is causing this error?
  58. To set all checkboxes to true using JavaScript?
  59. How to select an element by id and swapping an image ? ...
  60. What does undefined value mean in javascript?
  61. What is the difference between undefined value and null value?
  62. What is variable typing in javascript?
  63. Does javascript have the concept level scope?
  64. What are undefined and undeclared variables?
  65. What is === operator ?
  66. How to find the selected radio button immediately using the 'this' variable?
  67. How to find radio button selection when a form is submitted?
  68. How to disable an HTML object ?
  69. To write messages to the screen without using "document.write()" ?
  70. How to Add new elements dynamically ?
  71. How to have an element invoke a javascript on selection, instead of going to a new URL: ?
  72. How to have the status line update when the mouse goes over a link (The support of the status line is sporadic)?
  73. How to create a popup warning box
  74. How to create a confirmation box?
  75. How to create an input box?
  76. How to setting a cookie with the contents of a textbox ?
  77. How to getting values from cookies to set widgets?
  78. How to change style on an element?
  79. How to Handle Event Handlers?
  80. How to remove the event listener: ?
  81. How to make elements invisible ?
  82. How to set the cursor to wait ?
  83. How to reload the current page ?
  84. how to force a page to go to another page using JavaScript ?
  85. How to convert a string to a number using JavaScript?
  86. How to convert numbers to strings using JavaScript?
  87. How to test for bad numbers using JavaScript?
  88. What's Math Constants and Functions using JavaScript?
  89. What's the Date object using JavaScript?
  90. What does the delete operator do?
  91. How tp create Arrays using JavaScript ?
  92. How to delete an entry using JavaScript?
  93. How to use strings as array indexes using JavaScript?
  94. How to use "join()" to create a string from an array using JavaScript?
  95. How to make a array as a stack using JavaScript?
  96. How to shift and unshift using JavaScript?
  97. How to create an object using JavaScript?
  98. How to associate functions with objects using JavaScript?
  99. What does break and continue statements do?
  100. How to create a function using function constructor?
  101. eval()?
  102. What's Prototypes for JavaScript?
  103. decodeURI(), encodeURI()


durga said...

Hi there, awesome site. I thought the topics you posted on were very interesting. I tried to add your RSS to my feed reader and it a few. take a look at it, hopefully I can add you and follow.

Angularjs 2 Development Company

Unknown said...

As a beginner the interview questions here are very useful for me to learn about the subject and to face Interviews with confidence. Thanks for sharing this with us.

AngularJS Training in Chennai

Unknown said...

Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more ..Best Angularjs Training in Chennai|Angularjs Training in Chennai

priya rajesh said...

Great blog, as a beginner I have no idea about Java. After visiting your blog, I have learned a lot about JavaScript. Keep sharing more like this.
J2EE Training in Chennai | JAVA Training in Chennai

Powered by Blogger.