See? Javascript can do everything (except take input which is still annoying)
There’s prompt()
for that, but its ugly and you can just click cancel.
Except reading and writing to files (Maybe NodeJS can do it but I wish vanilla JS could)
Vanilla JS can!
Bit misleading, vanilla JS, sorta can lol
You mean in Node? Because imo it’s not that hard to just import readline-sync and then do readline.question (or even import readline.question as input to make it simpler).
Yeah I wish we had more customizable alert/prompt/confirm
I know that titles would be used by scammers but it would be great.
yeah but in python you don’t have to import input but in nodejs you have to do stuff
you could use html and use a text thing but that doesn’t work for nodejs
No, vanilla JS usually refers to JS in your browser. (Edit: misunderstood who the reply was to lol)
They didn’t say vanilla JS. They just said JavaScript. And since vanilla JS DOES have a function to accept input, I am pretty confident that they meant Node.js (not vanilla JS).
Matt probably thought you were replying to 9pfs.
process.stdin.on("data", (data) => {})
does it though.
really?
I had no idea you could do that, and I have ~3 years of experience…I only ever used readline-sync for it
Can’t you use prompt
for frontend, and then if you wanna figure it out, use process.stdin
?
Or you know, just
(almost repeated myself is why I just requoted lol)
Edit: A LOT of regurgitated information in this reply, so skim over it