Subj : Re: Javascript for dummies like me
To   : Sys64738
From : Tracker1
Date : Mon Dec 13 2021 06:28 pm

On 12/10/21 07:35, Sys64738 wrote:
>> The console object defined in Synchronet's JS API might have fairly
>> different requirements than for other contexts.  When developing JS
>> for a web browser, there is a 'console' object, but that's a totally
>> different thing. The JS console object for Synchronet is for the
>> text-based interface
>
> I understand what you're saying. Thanks for explaining.
>
> However, the concept of people making up their own commands seems like
> a taking a long walk on a short pier.

`console` isn't part of the JavaScript language... things like
`document.querySelector` aren't either.  They're part of the running
environment.  In the case of the prior two examples a Browser.

The BBS runtime environment(s) are different, and will have different
features defined.  What would you expect document.querySelector('body')
to do with a telnet user?  It's not the same...

That said...  for (var i=0; i< 10; i)) { ... }  ... ARE part of the
language definition.
--
Michael J. Ryan - [email protected]

---
� Synchronet � Roughneck BBS - roughneckbbs.com