
JavaScript Fundamentals – Variables and Input Function
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Liwayway Macatimpag
FREE Resource
Student preview

24 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is a variable in JavaScript?
Back
A variable is a container for storing data values. It can hold values or expressions.
2.
FLASHCARD QUESTION
Front
What are the rules for naming variables in JavaScript?
Back
1. Must begin with a letter. 2. Case sensitive. 3. Cannot be a reserved word. 4. Cannot use special characters except underscore (_).
3.
FLASHCARD QUESTION
Front
What are JavaScript keywords?
Back
Keywords are reserved words in JavaScript that have special meaning, such as 'break', 'case', 'catch', 'function', etc.
4.
FLASHCARD QUESTION
Front
What are the six data types in JavaScript?
Back
1. Numbers 2. Booleans 3. Strings 4. Objects 5. Null 6. Undefined
5.
FLASHCARD QUESTION
Front
What is the difference between global and local variables?
Back
Global variables are accessible anywhere in the code, while local variables are only accessible within the function they are declared.
6.
FLASHCARD QUESTION
Front
How do you declare a global variable in JavaScript?
Back
By simply assigning a value to it, e.g., globalVariable = 100;
7.
FLASHCARD QUESTION
Front
How do you declare a local variable in JavaScript?
Back
By using the 'var' keyword within a function, e.g., var counter = 0;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
16 questions
Hand Rules
Flashcard
•
12th Grade
15 questions
5.4 Costs Flashcards
Flashcard
•
12th Grade
15 questions
Flashcard - Unit Conversion and Practical Use
Flashcard
•
KG - University
15 questions
Earth's Crusty Forces 11.1 :)
Flashcard
•
11th Grade - University
14 questions
Used To
Flashcard
•
University
20 questions
Explorando el Pasado Simple
Flashcard
•
12th Grade
16 questions
Human Nervous System
Flashcard
•
12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade