Опубликовано: 7 мая 2019 г.
How to create a JavaScript program with Drakon.Tech:
- How to make a JavaScript source code file.
- How to add functions to the JavaScript file.
- How to add parameters to functions.
https://drakon.techHow to make a JavaScript file1. Create a module.
2. Set "JavaScript" as the language for the module.
3. Click on the "Build" button (Ctrl+B).
How to make a JavaScript function1. Create a DRAKON flowchart inside the module.
How to add arguments to the function1. Create a "Parameters" icon on the DRAKON flowchart.
2. Type into the "Parameters" icon the names of the arguments, one argument per line. Do not put any commas.
A function with parameters "left" and "right":
How to make a function asyncPut the keyword "async" in the first line of the "Parameters" icon.
An async function: