What is JavaScript primarily used for?

Week 10-11 JavaScript Multiple Choice Quiz

Quiz
•
Computers
•
University
•
Medium
Art Magpantay
Used 1+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Defining page layout
Programming page behavior
Storing data
Styling HTML pages
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can JavaScript manipulate?
HTML only
CSS only
HTML and CSS
HTML, CSS, and data
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to find an HTML element by ID?
getId()
getElement()
getElementById()
querySelector()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does JavaScript change the content of an HTML element?
innerCode
innerData
innerHTML
textData
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which quotation marks can be used in JavaScript strings?
Single quotes only
Double quotes only
Backticks only
Single or double quotes
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What JavaScript property is used to change the src of an image?
imageSource
value
src
href
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you increase the font size of an HTML element with JavaScript?
fontWeight
fontSize
changeStyle
textSize