Consider the below div tag content statement, how to print the value of "UserName"?
<div ng-app=" ng-init="firstName='John'"> <p>Input something in the input box:</p> <p>Name: <input type="text" ng-model="UserName"></p> <p>You wrote: _____________</p> </div>
Which of the following code is most efficient?
Code 1 for(var number-10;number>=1;number--) { document.writeln(number); } Code 2 var number=10; while(number>=1) { document.writeln(number); number++ }
What will be the output of the following JavaScript code ?
<p id="demo"></p> <script> var js = 5; js*=10; document.getElementByld("demo").innerHTML = js; </script>
What will happen in the following case ?
h1 {color: red text-decoration: underline; font-style: italic;}
What type of value gets printed if we add the following two variables ?
var a = "10"; var b =50;