let x = 5; let y = 3; function sum() { console.log(x + y); } sum(); //outputs 8 in JavaScript,
$x = 3; $y = 5; function sum() { echo $x + $y; } sum(); //outputs error unless declaring variables
Pro tip: use ```triple backticks around text``` to write in code fences