Not all coding is easy. Well, that challenge is about to get easier with Visual JavaScript 25.
The page covers:
Let's learn the basics of Visual JS. This docs page aims to cover every aspect of the lang as possible, but not all of them may be listed.
script.echo()
script.echo
prints ("string")
to the console. It's a simple way, yet minimalist, to start making a program.
script.echo("Hello, world!")
let [name] = [value]
let
lets the user modify a variable. The variable can be assigned anytime on the program, as it can be modified anytime later, unlike a const
in regular JavaScript, that is fixed to a value.
let name = "Jones"
script.echorich("Hello, "+name+"!")
script.echorich()
script.echorich
prints ("string"+myvar)
to the console. Unlike standard script.echo()
, which is limited to regular strings only, it supports variable printing. Usage already exists.
script.perms.reqajs
script.perms.reqajs
is a permission expression that asks the user to allow arbitrary JavaScript to run on the Visual JavaScript program. Although risky, may come with benefits, but is not recommended. No usage exists because the object does not have parameters.
script.shell.popups()
This function on Visual JavaScript allows you to make a new popup window. Tested on Chrome, it works perfectly. Usage: script.shell.popups("example.com")
Visual JavaScript was made by GitHub user impostor1472, as an effort to revive Microsoft Small Basic. It has roots on JScript, Visual Basic 6.0 and Small Visual Basic. The project was made in a a collab between "sm4llprogrammer2008" and impostor1472.
Our vision for creating Visual JavaScript was because of the verbosity of the computer languages we have today, and even the language that most resonated with beginners, Small Basic, no longer saw updates. We were aware that even documentations, courses and interactive lessons sometimes never made it to teach people the necessary.
For this, I (impostor1472) decided to open-source Visual JavaScript 25, but it's still closed-source as it is a work-in-progress (wip)
I plan to make 2 versions of the project; the Tauri.js binary and the web version. The Tauri.js binary is more free on the system, while the web version has security constraints.
Tauri has a smaller footprint than Electron.js and React Native requires SDKs for the platforms we target, so we decided to go ahead with Tauri.js, also embracing it's Rust backend.
We tried to keep the rhythm as it was on Small Basic, the simple object references, IntelliSense for suggestions and more. Designing the interpreter was the simplest, just like our vision for the language, we also decided to build upon reducing verbosity while still keeping the language type-safe.