Dear candidates you will find MCQ questions of JavaScript here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
<script>
var article = {
"main title": "How to learn JavaScript",
'sub-title': "The Definitive Guide",
"for": "all audiences",
author: {
firstname: "Scott",
surname: "McCall"
}
}
</script>
article[datatype]=assignment_value;
functionx(){};
var string1 = "40"; varvalueinit=50; alert( string1 +intvalue);
var text ="testing: 1, 2, 3";// Sample text var pattern =/\d+/g// Matches all instances of one or more digits.