Side effects are changes outside the function:
let count = 0
function increment() {
count++ // Side effect: modifies external variable
console.log(count) // Side effect: outputs to console
}
Side effects aren't always bad. Logging and saving data require them. But minimize side effects in calculation functions. Keep them at the edges of your program.