WorksheetsHTML CSS JS Review
Total questions: 15
Worksheet time: 9mins
A variable:
tests a condition and runs code if it is true
A function:
tests a condition and runs code if it is true
A string:
is a type of variable holding numbers only
What type of variable is apple?
var apple = " Fuji "
string
Boolean
array
number
Which attribute is used to define the language of a HTML element?
(a)
Which tag is used to create a hyperlink?
(a)
Which property is used to extract the length of a string?
(a)
What is the correct way of finding the length of the variable myVar?
myVar.length
myVar.length()
length(myVar)
myVar(length)
Which method returns the character at a specified index (position) in a string ?
charAt()
replace()
substr(start, length)
toUpperCase()
How do we call a HTML element that starts on a new line and takes up the full width of the page?
(a)
How do we call the space between an element's content and its border?
(a)
Class, id, lang are examples of which type of attribute?
(a)
Which of these is an example of method?
length
innerHTML
document
getElementById()
