-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
- At first, it looks like you are trying to teach the entire syntax by showing code with all the language features.
There should be a note that says this is a quick preview of the language, and look how similar it is to Java. enum, class, interface all work as you would expect. More details on each element are explained later in the document.
- Add a function call that prints something out. This would give the user a starting point to add code and play with it.
For example, under "enum", this would confirm that integers are sequentially assigned for enums as it is done in Java.
function main() {
console.log( Color.White=${Color.White} );
console.log( Color.Black=${Color.Black} );
console.log( Color.Red=${Color.Red} );
}
main();
Reactions are currently unavailable