We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Diving into Z-S's SB.js web program
#1
Z-S shared me a project while I started to create SBJS, and I think it's fast enough, very well engineered.
First I tried this:
Code:
textwindow.writeline("hello, world!");
It probably made sense to include a semicolon, because it maybe was just custom JS objects + classes running with eval() on the background.
Then went on to test some classic SB syntax:
Code:
for i=1 to 5
textwindow.write("Hello, world! ");
endfor
Surprisingly, it worked.
Then tested this:
Code:
uinput = textwindow.read();
textwindow.writeline(uinput);

Also it used the browser's native input box dialog instead of a text cursor within the console.
Then tested JS multiline notes:
Code:
/* Multiline notes
on SB.js */
It was ignored. Didn't throw any errors.
It probably supported my belief of custom JS objects + classes on the background running with eval(). Z-S is truly a web mastermind, and I appreciate that.
Anyway you can try Z-S's SB.js at https://www.zs.rf.gd/SBJS/
[-] The following 1 user Likes sm4llprogrammer2008's post:
  • litdev
Reply


Messages In This Thread
Diving into Z-S's SB.js web program - by sm4llprogrammer2008 - 06-25-2025, 01:48 PM
RE: Diving into Z-S's SB.js web program - by z-s - 06-26-2025, 08:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)