- www.mycodingclasses.com
Arrays count from 0 so colors[0] is the first item.
- www.mycodingclasses.com
Useful for grids or comparing arrays.
- www.mycodingclasses.com
Objects store key-value pairs like {name:"Max",age:12}.
- www.mycodingclasses.com
Functions bundle tasks so you can call them whenever needed.
- www.mycodingclasses.com
Use student.name to read the value of name.
- www.mycodingclasses.com
student["name"] lets you use variables or strings as keys.
- www.mycodingclasses.com
Parameters are variables inside the function definition.
- www.mycodingclasses.com
if statements run code when a condition is true.
