SkillSeevaSkillSeeva
HomeResourcesScheduleRoadmapTeam
Back to Categories
Current Path
JavaScript
Syntax & VariablesOperatorsFunctionsObjectsEventsString MethodsArrays & MethodsDate & MathLogic (If/Switch/Loops)DOM ManipulationES6+ FeaturesScope & HoistingThe 'this' KeywordJS ModulesClassesAsync/Await & PromisesDebuggingWeb APIs (Fetch, Storage)JSON
Jump to topic:
Syntax & VariablesOperatorsFunctionsObjectsEventsString MethodsArrays & MethodsDate & MathLogic (If/Switch/Loops)DOM ManipulationES6+ FeaturesScope & HoistingThe 'this' KeywordJS ModulesClassesAsync/Await & PromisesDebuggingWeb APIs (Fetch, Storage)JSON

Syntax & Variables

JavaScript variables can be declared in 4 ways: automatically, var, let, and const.
javascript
var x = 5;
let y = 6;
const z = x + y;

// String
let name = "John";
// Number
let pi = 3.14;
1 / 19