Show newer

@vaporeon_ @monorail if my web page loaded two javascript files, (lets call them one.js and two.js)

and one.js defines a function

function globalFunc() {
console.log('I am global');
}

then two.js can use that function

@monorail this doesn't work in node.js for whatever reason, shittyRandom1 is not added to global scope

@monorail function declarations create global variables because javascript sucks

@monorail also, reported a second time for using a function declaration

Somebody immediately liking and boosting my toots will fix me

@lapis I've done enough at this point to where that won't be necessary, but I will use this wisdom in the future

@lapis I finished the driving and got all of the boxes in the house! But now I need to carry things up the stairs 😵‍💫

Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.