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
#3
Let's go!!!!

Anyways this actually worked!
sub greet(name)
textwindow.writeline("Good morning, "+name+"!")
endsub

greet("sm4llprogrammer2008")

Another program cleverly worked:
sub greet(name)
textwindow.writeline("Good morning, "+name+"!");
endsub

greet("sm4llprogrammer2008");

sub repeat(times)
for i=1 to times
textwindow.writeline("Hello, I repeated "+i+" times!");
endfor
endsub

repeat(10)

Maybe improve conditional branching, adding stuff like if [x] = [y] then ... elseif [x] = [y] then ... endif
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)