+ 2

What is function?

10th Sep 2020, 2:18 PM
🌺🌷CHAMBI Patricia🌷🌺
5 Antworten
+ 4
A function is a block of code which only runs when it is called. You can pass data, known as parameters, into a function. A function can return data as a result.
10th Sep 2020, 2:24 PM
Aman Singh
Aman Singh - avatar
+ 4
Add correct revelant tag and mention languages also
10th Sep 2020, 4:14 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Function is a code which runs when it is called. It can be be called by either click event or any type of event handlers.
11th Sep 2020, 10:04 AM
KARTHIK
KARTHIK - avatar
+ 1
A function is like a machine. It takes input and gives an output. So it is a block of code which gives the output (returns data) depending on the input (also called the parameter). But not all functions return something or takes an input.
10th Sep 2020, 5:35 PM
Abhijnan Saraswat Gogoi
Abhijnan Saraswat Gogoi - avatar
- 1
.
10th Sep 2020, 2:19 PM
🌺🌷CHAMBI Patricia🌷🌺