JavaScript Interview Questions
JavaScript Interview Questions
JavaScript interview questions and answers for provides a list of top 20 interview questions.
The frequently asked JavaScript interview questions with answers for beginners and
professionals are given below.
1) What is JavaScript?
JavaScript is a scripting language. It is different from Java language. It is object-based,
lightweight and cross platform. It is widely used for client side validation. More details...
<script type="text/javascript">
2.
3.
</script>
More details...
6) What is BOM?
BOM stands for Browser Object Model. It provides interaction with the browser. The default
object of browser is window.
More Details: Browser Object Model
More details...
function function_name(){
2.
//function body
3.
}
More details...
emp={id:102,name:"Rahul Kumar",salary:50000}
More details...
var emp=["Shyam","Vimal","Ratan"];
More details...
1.
<script>
2.
window.document.body.style.cursor = "wait";
3.
</script>
Alert Box
Confirm Box
Prompt Box
The navigator.appVersion string can be used to detect the operating system on the client
machine.
2.
3.
4.
</form>
5.
<script type="text/javascript">
6.
function submitform()
7.
8.
document.myform.submit();
9.
10.
</script>
<script type="text/javascript">
2.
document.body.bgColor="pink";
3.
</script>