DRAKON.SU
https://forum.drakon.su/

How to generate JavaScript source code with Drakon.Tech
https://forum.drakon.su/viewtopic.php?f=218&t=6583
Страница 1 из 1

Автор:  Владимир Паронджанов [ Суббота, 01 Июнь, 2019 16:21 ]
Заголовок сообщения:  How to generate JavaScript source code with Drakon.Tech

How to generate JavaScript source code
with Drakon.Tech


https://www.youtube.com/watch?time_cont ... Co9DzjrgvQ
Цитата:
Опубликовано: 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.tech

https://drakon.tech/js/tutorials/how-to-generate
Цитата:
How to make a JavaScript file

1. 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 function

1. Create a DRAKON flowchart inside the module.

How to add arguments to the function

1. 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 async

Put the keyword "async" in the first line of the "Parameters" icon.

An async function:
Изображение

Страница 1 из 1 Часовой пояс: UTC + 3 часа
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/