@Lady why not just blocks then?
@aescling const has block scope and can’t be reassigned, so you have to use an IIFE plus a return if you want the value of a const to be determined within a block but available outside of it. this is in fact one of the the only reasonable applications of IIFEs in modern javascript code, but it’s very useful.
// Doesn’t work:—
{
const foo = "🎱"
const bar = `${ foo }ball`
}
console.log(bar)
// Works:—
const bar = (() => {
const foo = "🎱"
return `${ foo }ball`
})()
console.log(bar)
@Lady right
@aescling so no, it isn’t advancing, but it isn’t abandoned