Computer Fundamentals And Programming2D
Programming Basics - Theory & Concepts
A comprehensive guide to programming fundamentals, compilation vs. interpretation, data representation, syntax, variables, data types, operators, and input/output operations.
Open the complete lessonVariable Assignment
Memory Allocation
Code
let myScore = 10;
→
Memory Address: 0x00A1
10
Variable Name: "myScore"
When you assign a value to a variable, the computer allocates a space in memory to store that value and associates it with the variable's name.