How can i declare and initialize a variable in javascript?

In JavaScript, you can use `let`, `const`, or `var` (less recommended) to declare a variable. Initializing is the act of assigning a value to it for the first time. Example:

let age = 25;
const pi = 3.141592653589793;
var name = 'John';
Remember that `const` makes the variable immutable, meaning you can't reassign it after the initial assignment.

Beginner's Guide to JavaScript