Snippets Collections
//decalring multiple variables at once
let a, b, c;
a = "days of summer";

const d = 10,
  e = 20,
  f = 30; // cannot be reassigned but used as an initial value for something

const baseNumber = d;

function getNumber(baseNumber, str) {
  return `${baseNumber} ${str}`;
}

console.log("get Number => ", getNumber(d, a));
star

Sat Apr 20 2024 22:09:02 GMT+0000 (Coordinated Universal Time)

#variable #declaration

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension