Subj : Re: good afternoon asking about baja and menu shells
To   : Gamgee
From : Nightfox
Date : Tue Jul 09 2024 10:33 am

 Re: Re: good afternoon asking about baja and menu shells
 By: Gamgee to Nightfox on Mon Jul 08 2024 09:39 pm

Ni>> When you say "non-JS-programmer", are you already familiar with
Ni>> programming in other languages?

Ga> Effectively, no.  I dabbled with Turbo Pascal many years ago, and have
Ga> brushed my fingers across C more recently, but not remotely close to being
Ga> proficient.

Ga> So, my question remains...  :-)

I suppose it would be good to find a JavaScript tutorial that explains things like general syntax, control flow structures & syntax, etc.  And the thing with JavaScript is that a lot of the tutorials will probably be oriented toward web programming, since JavaScript is often used in a web context, so be aware that anything referring to the DOM or other interactions with a web page won't work with Synchronet's JS.  For anything outputting a string, you can use console.write() if your script is to be used while logged onto telnet, or just write() if you're running your script with jsexec on the command line.

This is an older Synchronet documentation page about JavaScript:
https://www.synchro.net/docs/js.html

There's a link there to this core JavaScript reference:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference

Once you're familiar with JavaScript a bit, this is the documentation for Synchronet's JavaScript object model, which exposes the Synchronet functionality via JavaScript:
https://www.synchro.net/docs/jsobjs.html

Nightfox

---
� Synchronet � Digital Distortion: digitaldistortionbbs.com