JavaScript Quiz

JavaScript Quiz

Welcome to your JavaScript Quiz

Choose the correct JavaScript syntax to change the content of the following HTML code.
Which of the following is the correct syntax to display “GeeksforGeeks” in an alert box using JavaScript?
The external JavaScript file must contain tag. True or False?
Predict the output of the following JavaScript code.
"text/javascript">

a = 8 + "8";

document.write(a);

Which of the following is not a reserved word in JavaScript?
Predict the output of the following JavaScript code.

<script type="text/javascript">

var a="GeeksforGeeks";

var x=a.lastIndexOf("G");

document.write(x);

Name
Email

Register

[miniorange_social_login shape="longbuttonwithtext" theme="default" space="4" width="300" height="50" color="000000"]