JavaScript
Daniel Christian
June 25, 2026
Variables and Data Types
JavaScript is a lightweight, interpreted, high-level programming language
primarily used to make web pages interactive and dynamic.
Variables
A variable is like a box that stores information!
let name = "Alex"
Part Meaning
let Create a new variable
name The variable name
= Assign a value
”Alex” The value stored
Think of it like a labeled box:
• let = get me a box
• name = label it ”name”
• = ”Alex” = put ”Alex” inside!
1
Data Types
Thing Name Explanation
function Keyword Tells JavaScript ”I’m creating a function”
addNumbers Function name What you call the function
(a, b) Parameters Input placeholders inside the function
{} Function body The code that runs return
Return statement Sends value back out