@Vandesm14/

InfamousIdolizedHashmaps

Nodejs

No description

fork
loading
Files
  • index.js

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.7464053273637334","path":"index.js","file":{"path":"index.js","content":{"asEncoding":{"base64":"Ly8gRXhlcmNpc2UgT25lOgovLyBTdGVwIE9uZTogQ3JlYXRlIGEgZnVuY3Rpb24gY2FsbGVkICdwYXJhbWV0ZXJzRXhlcmNpc2UnLgovLyBTdGVwIFR3bzogVGhpcyBmdW5jdGlvbiB3aWxsIG5lZWQgdG8gdGFrZSB0d28gcGFyYW1ldGVycywgY2FsbCB0aGVtICdwYXJhbTEnIGFuZCAncGFyYW0yJwovLyBTdGVwIFRocmVlOiBUaGUgZnVuY3Rpb24gc2hvdWxkIGNvbnNvbGUgbG9nIHRoZSBzZWNvbmQgcGFyYW1ldGVyLgoKLy8gRE8gTk9UIENIQU5HRSBBTllUSElORyBPTiBUSEUgTkVYVCBGT1VSIExJTkVTIQpmdW5jdGlvbiBleGVyY2lzZVR3bygpIHsKCWZ1bmN0aW9uIHNheU15TmFtZShwYXJhbWV0ZXIxKSB7CgkJY29uc29sZS5sb2cocGFyYW1ldGVyMSk7Cgl9CgoJLy8gQ29udGludWUgYmVsb3cgdGhpcyBsaW5lOgoJZnVuY3Rpb24gcGFyYW1ldGVyc0V4ZXJjaXNlKHBhcmFtMSwgcGFyYW0yKSB7CgkJY29uc29sZS5sb2cocGFyYW0yKTsKCX0KCgkvLyBWQU5ERVNNMTQ6IEFkZGVkIGEgcGFyYW0gZm9yIHRoZSBmdW5jdGlvbiBiZWxvdwoJcGFyYW1ldGVyc0V4ZXJjaXNlKCdGb28nLCAnSGVsbG8gV29ybGQnKTsKCgkvLyBFeGVyY2lzZSBUd286CgkvLyBTdGVwIE9uZSBjcmVhdGUgYSB2YXJpYWJsZSBjYWxsZWQgJ215TmFtZScgYW5kIGFzc2lnbiBpdCB0aGUgYSBzdHJpbmcgb2YgeW91ciBuYW1lLgoJLy8gU3RlcCBUd286IENhbGwgdGhlIGZ1bmN0aW9uIGNhbGxlZCAic2F5TXlOYW1lIixwYXNzaW5nIHRoZSAnbXlOYW1lJyB2YXJpYWJsZSBhcyBpdCdzIG9ubHkgYXJndW1lbnQuCgkvLyBOT1RFOiBZb3UgZG8gTk9UIG5lZWQgdG8gY3JlYXRlIHRoZSBmdW5jdGlvbiAoc2F5TXlOYW1lKSwgZG9pbmcgc28gd2lsbCBicmVhayB0aGUgdGVzdC4KCS8vIEl0IGhhcyBiZWVuIGNyZWF0ZWQgZm9yIHlvdS4KCWxldCBteU5hbWUgPSAiUmVpbmllciI7CglzYXlNeU5hbWUobXlOYW1lKTsKfQpleGVyY2lzZVR3bygpOw=="},"asBuffer":null},"loaded":true}}
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();
node v10.16.0