stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
JavaScript Flashcards | StudBud
Explore
/
JavaScript
JavaScript
10 terms
·
StudBud Administration
·
56 plays
Imported from external platform
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
Why is JavaScript essential in web development?
A. To style web pages
D. To increase the loading time of web pages
C. To add user interactivity
B. To add database functionality
2
What is the purpose of conditional statements in JavaScript?
C. To execute a block of code based on certain conditions
D. To enhance the speed of code execution
B. To declare variables
A. To repeat a block of code multiple times
3
What are variables used for in JavaScript?
C. Connecting to a database
A. Storing data values
B. Increasing the loading time of a webpage
D. Styling HTML elements
4
What can be used to handle repetitive tasks in JavaScript?
C. Functions
D. Arrays
B. Loops
A. Conditional statements
5
How can JavaScript improve user experience on a website?
B. By enabling offline access to the website
C. By allowing user interactions to be more dynamic and responsive
A. By decreasing website security
D. By making the website's graphics less intense
6
What does JavaScript primarily manipulate in a webpage?
D. The website’s URL
C. The HTML code for a webpage
B. The CSS files
A. Improve performance
7
Which of the following loops can be found in JavaScript?
C. foreach
A. repeat-until
D. while-until
B. while
8
Which of the following is NOT a capability of JavaScript on the frontend?
C. Directly manipulating server databases
A. Changing HTML content
B. Modifying CSS styles
D. Responding to user events
9
Which of the following is a valid variable declaration in JavaScript?
C. float number = 5.0
A. int number = 5
D. string text = "Hello"
B. var number = 5
10
Which statement about JavaScript is true?
D. It cannot interact with web APIs
B. It can only modify HTML, not CSS
A. It is primarily used for backend development
C. It is executed on the client-side