jscript.write("Sky is blue")
document.write("Sky is blue")
print("Sky is blue")
jscript.print("Sky is blue")
What type of value gets printed if we add the following two variables ?
var a = "10"; var b =50;
Long
Text
Integer
Number
it is an ordered list of values
It is an ordered list of objects
It is an ordered list of string
It is an ordered list of functions
To style HTML Pages
To perform server-side scripting operation
To execute query related to DB on server
To add interactivity to HTML Pages
What is the output of the following JavaScript code?
<script> var a; document.getElementByld("demo").innerHTML = a+1; </script>
0
undefined
1
NaN
var
let
const
none of the above
keyword
function
Declaration Statement
Data type
CSS
Python
HTML
JavaScript
onclickmouse
onmouseover
onmouseout
onmouseup
onclick
onmousehover
onmouseclick
Read the following script what is 'function' in this code:
function myFunction(){ alert("you have successfully defined the function!");}
Identifier
Operator
None of these
var defines a variable while let defines a constant.
There is no such major difference between them
The value of variable declared with let cannot be changed
var define function scoped variable while let define block scoped variable
let and const are block-scoped, while var is function-scoped
var and let are block-scoped, while const is function-scoped
const and var are block-scoped, while let is function-scoped
They are all function-scoped
Displays a message in an alert box
Prints output to the console
Writes data to a file
Logs an error in the browser console
//This is a comment
<!--This is a comment-->
/* This is a comment */
Both A and C
Checks for equality and ignores the data type
Checks for equality, including data type
Assigns a value to a variable
Compares two values and returns true if they are not equal
document.getelementbyid()
document.getElementbyid()
document.getElementByid()
document.getElementById()
Declares a variable
Defines a loop
Creates a function
Represents a conditional statement
Converts a string to an integer
Parses a JSON object
Finds the position of a substring in a string
Calculates the square root of a number