Back to Browse

JavaScript Variables | Lecture 2

16 views
Apr 29, 2026
3:00

JavaScript Basics for Beginners | Lecture 2 // variable = A container that stores a value. // Behaves as if it were the value it contains. let fullName = "Bro Code"; let age = 25; let isStudent = false; document.getElementById("p1").textContent = `Your name is ${fullName}`; document.getElementById("p2").textContent = `You are ${age} years old`; document.getElementById("p3").textContent = `Enrolled: ${isStudent}`;

Download

1 formats

Video Formats

360pmp42.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

JavaScript Variables | Lecture 2 | NatokHD