All Topics
Topic13 questions

JavascriptQuestions & Answers

Practice 13 Javascript questions with detailed answers and explanations. Tap any question below to study the full solution.

Javascript question list

Choose the correct JavaScript statement which helps you to write "World of JavaScript" in a web page.Which of the below is the correct syntax for exectuing some code if "amt" is equal to 5000?Polson needs to extract every character from a text string for email validation. Which JavaScript method is best suited?Ram's banking website has a 'Check Interest Rates' button that should redirect users to a separate page. Which JavaScript code acc…Predict the output of the following JavaScript code: <html> <head> <script> var txt= "pass 70% fail 30%"; var pattern = /\D/g; var…What is the output of the below code snippet <script type="text/javascript"> amt=55+"55"; document.write(amt); </script>The parseInt() method converts the string to a integer. Before applying this function, Ram wants to know the type of the argument …When a user views a page containing a JavaScript program, which machine actually executes the script?David, a beginner in web development trying to perform one particular operation using client side JavaScript. Choose the correct o…When you want to enclose; some JavaScript statements to an HTML file, which is the correct tag you have to use?Which of the below statements are used to comment a line in JavaScript file?Sita wishes to greet the user when the user clicks on "Greet Me" button. In which event does she need to write the JavaScript code…Which of the below java script code helps to change the content of the paragraph tag dynamically? <p id="pid1">Aim Higher.. Sky is…

Practice more topics

PrimerPrep has independently reviewed practice questions and coding exercises — all free.