repl.it
@Vandesm14/

InfamousIdolizedHashmaps

Nodejs

No description

fork
loading
Files
  • index.js
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Exercise One:
// Step One: Create a function called 'parametersExercise'.
// Step Two: This function will need to take two parameters, call them 'param1' and 'param2'
// Step Three: The function should console log the second parameter.

// DO NOT CHANGE ANYTHING ON THE NEXT FOUR LINES!
function exerciseTwo() {
	function sayMyName(parameter1) {
		console.log(parameter1);
	}

	// Continue below this line:
	function parametersExercise(param1, param2) {
		console.log(param2);
	}

	// VANDESM14: Added a param for the function below
	parametersExercise('Foo', 'Hello World');

	// Exercise Two:
	// Step One create a variable called 'myName' and assign it the a string of your name.
	// Step Two: Call the function called "sayMyName",passing the 'myName' variable as it's only argument.
	// NOTE: You do NOT need to create the function (sayMyName), doing so will break the test.
	// It has been created for you.
	let myName = "Reinier";
	sayMyName(myName);
}
exerciseTwo();