let name = "Ali"; // String
let age = 20; // Number
let isStudent = true; // Boolean
console.log(name, age, isStudent);
Explanation:
let
andconst
are used for declaring variables.- JavaScript automatically detects data types (string, number, boolean, etc.).
Leave a Reply