Question: 1. Consider the following code snippet, when executed on a browser, how many times Welcome will be printed? Justify your answer. alert(Welcome) Welcome 2.
1. Consider the following code snippet, when executed on a browser, how many times "Welcome" will be printed? Justify your answer. alert("Welcome") Welcome 2. Fill in the blanks in the following is script to get the following effect. Whenever the button (see the image on the right) is clicked the text on the button should toggle between 0 and 1. function toggle() { var t = document.getElementById( __).innerHTML; t=1: t= 0; // tertiary conditional operator t == 0 } 0 MF X 03 C Apps Su 0 1. Consider the following code snippet, when executed on a browser, how many times "Welcome" will be printed? Justify your answer. alert("Welcome") Welcome 2. Fill in the blanks in the following is script to get the following effect. Whenever the button (see the image on the right) is clicked the text on the button should toggle between 0 and 1. function toggle() { var t = document.getElementById( __).innerHTML; t=1: t= 0; // tertiary conditional operator t == 0 } 0 MF X 03 C Apps Su 0
Step by Step Solution
There are 3 Steps involved in it
1 alertWelcome Welcome Here Welcome will be printed only once In case of browsers that do not suppor... View full answer
Get step-by-step solutions from verified subject matter experts
