-
Notifications
You must be signed in to change notification settings - Fork 0
Prompt command
Alvin Cheng edited this page Feb 2, 2023
·
1 revision
Every programming language/computer system must have a way to BOTH input and output data/a signal, this is exactly what this command is for! Particularly inputting data!!! Anyhow, let's get down to business! So, The prompt command uses the built-in standard terminal input from nodeJS to allow users of your program to input plain-text data. This command will take 2 arguments, the first argument is for the text to prompt the user. And the second argument for the variable to return the inputted data. Here is a working example below 👇
$VARIABLE = (prompt "<PROMPT>");
Nice and simple!! Let's go!
- Home
- Setup
- Print command
- Variables and set command
- Append command
- Array command
- Call command
- Clear command
- Compare command
- Concat command
- Create command
- Delay command
- Delete command
- Disable command
- Enable command
- Exit command
- Export command
- Fetch command
- Functions and the function command
- Get command
- If statements
- Import command
- Length command
- Load string command
- Object command
- POST command
- Prompt command
- Read command
- Remove command
- Repeat command
- Shell command
- Write command
- Calculate command
- Sin cos and tan commands
- PI command
- Rand command
- Round command
- Sqrt command
- Delete message command
- Get messages command
- Follow user command
- Get public rooms command
- Get rooms command
- Join room command
- Login command
- On message command
- Remove room command
- Room exists command
- Send message command
- Signout command
- Final words&thoughts