Javascript Day 1

0.0(0)
studied byStudied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/4

flashcard set

Earn XP

Description and Tags

Learning fundamentals of javascript

Last updated 6:23 AM on 1/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

5 Terms

1
New cards

Javacript Literals

The fixed values like Strings, numbers that can be decimals or integers.

2
New cards

Javascirpt Identifiers

The name given to variables are called identifiers. They can start with letter, underscore or $. Case sensitive and cannot be reserved keyword.

3
New cards

Javascipt Variable Declaration

  1. After declaration there is no value in variable, its undefined.

  2. Always use const if the type should not be changed (Arrays and Objects)

  3. Variables declared with let have Block Scope

  4. Variables declared with let must be Declared before use

  5. Variables declared with let cannot be Redeclared in the same scope

  6. Variables declared with the var always have Global Scope.

  7. Variables defined with var can be redeclared.

  8. Redeclaring a variable inside a block will also redeclare the variable outside the block

  9. Redeclaring a variable using let inside a block will not redeclare the variable outside the block

  10. Const defines a constant reference to a value

4
New cards

Javascript Datatypes

  1. String, Number, BigInt, Boolean, Null, Undefined, Object, Symbol

  2. You can use quotes inside a string, as long as they don't match the quotes surrounding the string

  3. Undefined: "I don't know this yet"

  4. A function that doesn't explicitly return anything will return undefined by default.

  5. Null: "I intentionally made this empty"

  6. The type of null is "object" (this is a famous, historical bug in JS).

  7. null==undefined —> true

  8. null===undefined —→ false

5
New cards