- Aprint
- Bdisplay
- Crun
- Doutput
color = input("What color is rose?: ") print("Rose is", color)
Output
What color is rose?: red Rose is red
The "function" and "var" both are the Declaration statements.
The function and var keywords are both used to declare variables and functions in JavaScript.
For example:var y = 10;
This code declares a variable y and initializes it with the value 10.