JavaScript Basics: Variables
Sep 1, 2018 · 3 min read

JavaScript is loosely typed programming language. This means there are variables and types but these aren’t very strict and we can easily swap them around. For example, a variable can hold a number value and then we can assign a string to the same variable:
var age = 18; // Assign a number
age = 'eighteen'; // Assign a string
