@iGNEOS Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@NickLim Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@user297904 Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
wow 27 people are following me on GitHub. what does following a guy do? you receive a notification everytime they do anything on GitHub?
holy shit @argentum47 @littlepootis you guys get a notification for my commits and issues and repos? O_O
and why is edge autocompleting things (even in incognito) and firing input events for it Without initial seed text? wtf anyone can just collect your emails and usernames for free?
If I submit this "attack" to Microsoft, they'd probably just mark it status-by-design-but-not-intended-to-be-revealed-in-public internally and tell me to wait with a long copy-paste thank you message. and I expected sort of the same from GitHub but it backfired. what do
@Global Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
@BartekBanachewicz Oh. So I need to use return equipmentchoice() inside body of gamePlay? Because this is supposed be looped every time player looses. Thought it was possible to call it directly within gamePlay
@BartekBanachewicz Okay. I'll try only use, intro(); and return equipmentChoice(); instead then. But how can I see the actual value in equipmentChoice outside the function? Like console.log, just to make sure it's not undefined.
@BartekBanachewicz As in, do you just tell them "your information is incorrect and what I am telling you is correct instead" or some other sophisticated way?
That's why most Java devs look at JS, think they can apply Java to it, fail, and never try again, denouncing JS as a "horrible language that no one should ever use"
@AwalGarg You seem to assume they trust the book blindly; the books have their own reasoning. Fighting simple facts is easy. Fighting bad logical reasoning is hard.
If you assume that functions are special things, and you don't pass them around, and you don't change them in runtime (because that's how you're used to with Java), and you keep using JS that way for months, then suddenly someone throwing that mental model you've developed over that period of time out of whack, it's hard to adjust
That's why when I experiment on new things, I experiment on disprove, not prove.
@Rain Write me a form that validates itself
The user can write their name, a subject and a message
The name and message are mandatory, the subject isn't
In this blog post, we look at problems that arise when template literals contain whitespace: Breaking up long lines Dedenting content Joining Arrays Indenting inserted content I’m using the library common-tags by Declan de Wet (with “useful template literal tags for dealing with strings in ES6”) to demonstrate solutions for some of these problems. Breaking up long lines Occasionally, you …
another one: if a function takes destructured parameters, then that destructured parameter is required. not passing it is a typeerror (effectively). but for regular ones, there are no parameter checks
@Ashley Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
ok last one before I go for cookies: Object.assign calls the internal Set function with the throwable flag, so if you give it a sealed object and one of the keys from sources is not present, it leaves the object in an inconsistent state with some keys written and some left as is.
@MadaraUchiha see? web stuff will always remain a silly copy of native tech. even in comics and jokes. that comic was originally based on tar commands.
Something like "you're given a page with the safe, your goal is to unlock the safe" and unlocking the safe includes understanding the code, finding what needs to be done and clicked and whatever
I'm not the one leading it, I was just asked to see if I could find someone who could do it.