2value
first-name
var
_totalAmount
getElement(id)
getElementById(id)
getElementById()
elementById(id)
What will be the output of the following JS code snippet?
var a = 1; var b = 0; while (a <= 3) { a++; b += a * 2; print(b); }
1,2, 3
1,4, 7
error
4, 10, 18
Access databases directly
Reduce server load and increase interactivity
Compile HTML code
Replace server-side scripting
wait()
pause()
setTimeout()
setInterval()
The with value let cannot of a variable declared with var can be changed while the value of a variable declared be changed
var defines a variable while let defines a constant
var declare function scoped variable while let declare block scoped variable
All of the options
/* .......*/
//......
#......
$.........$
Document Object Model
Document Object Manipulation
Document Oriented Model
None of the options
<js>
<code>
<scripting>
<script>
event target
event type
both event type and event target
interface
What will be the output of the following JavaScript snippet?
console.log("5" + 3);
53
8
2
Error
var a = true + true + true * 3; print(a)
0
3
5