0% found this document useful (0 votes)
16 views2 pages

Mod 13

Uploaded by

remon.youssef317
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

Mod 13

Uploaded by

remon.youssef317
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Flashcards
Front: What is the purpose of a JavaScript variable?
Back: To store and manage data, allowing developers to use and manipulate that
data in their scripts.
Front: What are the basic data types in JavaScript?
Back: Numbers, Strings, and Booleans.
Front: What is a JavaScript expression?
Back: A combination of variables, literals, and operators that produces a value.
Front: What does the var keyword do?
Back: Declares a variable in JavaScript.
Front: What is the use of parentheses in expressions?
Back: To change the precedence of operations, ensuring certain calculations are
performed first.
2. Explain [Concept] in Simple Terms with Examples
Concept: Variables
Explanation: Variables are like labeled storage boxes for data. You can put a
number, text, or true/false value inside.
Example:
javascript
Copy code
var name = "John"; // A variable holding a text
var age = 30; // A variable holding a number
var isStudent = true; // A variable holding a true/false value
3. What are the Most Important Points I Need to Remember About [Topic]?
Topic: Operators
 Operators perform operations on variables and values.
 Arithmetic operators: +, -, *, /, %.
 Logical operators: && (and), || (or), ! (not).
 Strings can be concatenated using +.
4. What are the Key Terms and Their Definitions in [Chapter/Topic]?
Topic: Expressions and Operators
 Expression: A statement that produces a value (e.g., 5 + 3).
 Literal: A fixed value, like a number (7), a string ("Hello"), or a boolean
(true).
 Operator: A symbol that performs an operation (e.g., +, -).
5. Ask Me Quiz Questions About [Topic]
Topic: Variables
1. What is the correct way to declare a variable in JavaScript?
A) var x
B) declare x
C) create x
D) set x
Answer: A
2. Which of the following is a valid string variable?
A) var 123name = "John";
B) var name = "John";
C) var name-1 = "John";
D) var name$1 = John;
Answer: B

You might also like