Introduction to JavaScript

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/9

flashcard set

Earn XP

Description and Tags

Flashcards covering key concepts, facts, and details from the lecture notes on JavaScript.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

What is JavaScript primarily used for?

JavaScript is primarily used to make websites interactive and dynamic.

2
New cards

What are the three keywords used to declare variables in JavaScript?

var, let, const.

3
New cards

What is the difference between undefined and null in JavaScript?

Undefined means a variable has been declared but not assigned a value, while null is an intentional absence of any object value.

4
New cards

What are the main types of JavaScript data types?

String, Number, Boolean, Undefined, Null.

5
New cards

What is the purpose of console.log() in JavaScript?

console.log() is a built-in function that outputs the value inside the parentheses to the console.

6
New cards

What is an anonymous function in JavaScript?

An anonymous function is a function that does not have a name.

7
New cards

What is an arrow function in JavaScript?

Arrow functions provide a concise syntax for writing functions and are especially useful in callbacks.

8
New cards

How do you declare a constant in JavaScript?

You declare a constant using the const keyword.

9
New cards

What is a for loop typically used for in JavaScript?

A for loop is typically used when you know beforehand how many times you want to repeat a block of code.

10
New cards

What are the types of control statements in JavaScript?

Conditional Statements, Looping Statements, and Jump Statements.