There was an error while loading. Please reload this page.
1 parent 75a1cea commit 6d5afb7Copy full SHA for 6d5afb7
part5 (Functions)/AdvanceFunctions/09_parameters_&_arguments.js
@@ -0,0 +1,11 @@
1
+/*
2
+INFO: What are parameters and arguments ?
3
+1. Parameters: The variable listed is the function definition.
4
+2. Arguments: The actual values passed to the function when calling it.
5
+*/
6
+
7
+// Example
8
+function greet(name) { // name is a parameter
9
+ console.log(`Hello, ${name}`);
10
+}
11
+greet("Rafay"); // "Rafay" is an argument
0 commit comments