JavaScript Interview Questions for both Experienced and Fresher
1).What is JavaScript? Ans:-JavaScript is a scripting language most often used for client-side web development. 2).Difference between JavaScript and Jscript? Ans:-Both JavaScript and Jscript are almost similar. Java script was developed by Netscape. Microsoft reverse engineered Javascript and called it JScript. 3).How do we add JavaScript onto a web page? Ans:- There are serveral way for adding javascript on a web page but there are two way with is commonly userd by developers If your script code is very short and only for single page then following ways is best a)You can place <script type="text/javascript"> tag inside the <head> element. Code: <head> <title>Page Title</title> <script language="JavaScript" type="text/javascript"> var name = "Vikas Ahlawta" alert(name); </script> </head> b).If your script code is very large then you can make a javascript file and add it...