hasChildNodes()
childNodes
children
hasChildren()
document.getElementByTagName()
document.getElementsByTagName()
document.querySelectorAll()
document.tagName()
ondblclick
onclick
onmouseclick
onhoverclick
Microsoft
Sun Microsystems
Netscape
Oracle
classList.add()
classList.remove()
classList.toggle()
classList.replace()
onchange
onsubmit
oninput
onreset
round(7.25)
Math.rnd(7.25)
rnd(7.25)
Math.round(7.25)
if(a!=null)
if (!a)
if(a!null)
if(a!==null)
What type of value gets printed if we add the following two variables ?
var a = "10";var b =50;
Long
Text
Integer
Number
ng-model
ng-repeat
ng-bind
ng-app
JavaScript interpreter processes programs written in Java.
JavaScript interpreter processes commands in a script written in JavaScript.
Java and JavaScript are almost similar
JavaScript cannot be embedded in HTML.
keyword
function
Declaration Statement
Data type
<js>
<code>
<scripting>
<script>
==
=
===
!=
It checks if a value is a number
It checks if a value is not a number
It converts a value to a number
It checks if a value is undefined
innerHTML
innerText
textContent
All of the above
onkeydown
onkeypress
<!--This is a comment-->
//This is a comment
'This is a comment
#This is a comment
onmouseenter
onmouseover
onmouseout
onmove
element.addEvent()
element.addEventListener()
element.attachEvent()
element.onEvent()
onkeyup
onkeyrelease
element.getChildren()
element.childNodes
element.getElementsByTagName()
element.getChildNodes()
JavaScript must always be placed inside the <head> tag
JavaScript can be placed either in the <head> or <body> tag
JavaScript can only be placed in external files
JavaScript cannot be placed in the <head> tag
replaceNode()
replaceElement()
replaceChild()
replaceWith()
element.addEventListener("click", function);
element.addEventHandler("click", function);
element.attach("click", function);
element.on("click", function);
onscroll
onresize
alert("Hello World")
alertBox("Hello World")
msgBox("Hello World")
msg("Hello World")
ng-if
ng-show-only
ng-hide-if
ng-condition
<javascript>
<link>
<script src="script.js"></script>
<javascript src="script.js"></javascript>
<link href="script.js" rel="script">
<script href="script.js"></script>
Displays a message in an alert box
Prints output to the console
Writes data to a file
Logs an error in the browser console
::
?:
??
=>
CSS
Python
HTML
JavaScript
insertBefore()
insertPrevious()
appendBefore()
addBefore()
document. write()
console.log()
document.getElementById()
onclickmouse
onmouseup
getElementByTagName()
getElementById()
getElementByClass()
querySelector()
shift()
pop()
remove()
delete()
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
What is the output?
console.log(2+"2"*2);
44
12
6
Error
What will be the output of the following JS code snippet?
var a = true + true + true * 3; print(a)
0
3
error
5
<div ng-app="" ng-init="x=10">{{x*2}}</div>
10
20
100
22
4
2
syntax error
onblur
onfocus
Prints an exception error
Prints an overflow error
Displays “Infinity”
Prints the value as such
insertAfter()
appendChild()
prependChild()
It is the synchronization between the model and the view
ng-model directive is used to bind data from the model to the view on HTML controls
double brackets (( )) can be used to display content from the model
ng-bind directive is used to bind the inner HTML of the element to the specified model Property
document.createElement()
document.appendElement()
document.insertElement()
document.newElement()
<script> alert('Hello, World!'); </script>
<js> alert('Hello, World!'); </js>
<style> alert('Hello, World!'); </style>