You write code as statements, where each statement is one instruction:
let x = 5
console.log(x)
Semicolons mark the end of statements. You don't have to type them because JavaScript adds them automatically (called ASI). Many developers skip semicolons entirely. Others add them for clarity. Both styles work. Pick one and stay consistent throughout your code.