Subj : Javascript for dummies like me To : Sys64738 From : echicken Date : Mon Dec 06 2021 03:41 pm Re: Javascript for dummies like me By: Sys64738 to echicken on Mon Dec 06 2021 08:02:23 Sy> "dated" knowledge. Sure, it won't be spot-on accurate, but at least it Sy> will give me a starting point and I can troubleshoot from there. The inaccuracy here is going to be stuff like: const num = n => Promise.resolve(n); function addNums([a, b]) { return a + b; } async function three() { let a = await num(1); let b = await num(2); let c = addNums([a, b]); console.log(c); } three(); Admittedly this is a stupid example, but it would work in eg. a modern browser but not in our environment. We don't have Promises, we don't have 'async', 'await', 'let', array destructure, or 'console.log', and if memory serves even our 'const' behaves a bit differently than today's. Sy> That's understandable since Javascript was original purpose was intended Sy> to be used in conjunction with HTML. Though to be clear, JS is just a language and there's nothing inherently web-browserey about it. You'll see mention out there that JS is "event driven" and "asynchronous by nature" and this isn't strictly true. All of it comes down to the implementation. Just be mindful that most of what's written about JS is written with browsers or node.js in mind, by people who never needed to look beyond that space. --- echicken electronic chicken bbs - bbs.electronicchicken.com --- þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com .