What is the output of the following code?
How many standard pop-up dialog boxes are available in JavaScript?
What will be the output of the following code if res = 56?
Which of the following is the correct syntax to display “Abekus” in an alert box using JavaScript?
Which function among the following allows you to register a function to be invoked repeatedly after a certain time interval?
How can we implement a feature in a function to accept a variable number of parameters?
What is the purpose of using the async attribute in the <script> tag?
<script>
var my_string = "HELLO, LOOK AT YOU!";
var my_pattern = /\bLO/;
var result = my_string.search(my_pattern);
document.getElementById("demo").innerHTML = result;
</script>
What will be the output of the following JavaScript code?
function myFunction()
{
var str = "Visit W3Schools. Hello World!";
var patt1 = /\u0057/g;
var result = str.match(patt1);
if(result)
result=true;
else
result=false;
document.getElementById("demo").innerHTML = result;
}