Today's Learning: JavaScript Basics
I am currently revising core JavaScript concepts and created a quick reference note! Here is a summary of the fundamentals
1. Data Types (Primitive):
JavaScript has essential primitive data types to handle different kinds of values:
Number
BigInt
String
Boolean
Undefined
Null
Symbol
2. Anatomy of a Variable:
Example: age = 25;
age ➔ Variable
= ➔ Assignment Operator
25 ➔ Value
3. Variable Declarations (var, let, const):
let: Used when declaring a variable for the first time (let age = 35;).
const: Used for fixed values that shouldn't be reassigned (const Pi = 3.14;).
var: Traditional variable declaration (var age = 30;).
Top comments (0)