//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));
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter