Message from JavaScript discussions

November 2020

— How to start with javascript? I mean which software?


(9 + 3) Abudhabibruu, please, send the solution to the arithmetic operation provided within the time amount specified to this group, otherwise you will be kicked. Thank you! (60 sec)
Powered by Todorant

— 12

— Brain teaser question for everyone

— I'm guessing 2021, the extra (()) means that (2020, 2021) is evaluated before calling the function and by definition (a, b, ..., x) === x

Message permanent page

— Awesome answer👍


— No output, return doesn't output anything. It would be "Twitter" if it did

— Why do u think it won't return anything? That's destructuring

— Your title needs to be a bit more specific ;)
return doesn't output anything to the console.
If at all, return "returns" a value. The function has an "outcome/result".

Message permanent page

— I usually use readline for simple things:

const { createInterface } = require('readline');
const rl = createInterface(process.stdin);
for await (const line of rl) {
// do stuff with line
rl.close(); // stop accepting lines

Message permanent page

— Readline-sync if you're into sync stuff