JS Assignment 7: Arguments and Parameters
ReinierB (15)

JS Assignment 7: Arguments, I do not know what is going on, The console is printing what they asking for to be undefined, but I still get an error? im passing the second exercise, but not the first. It is a bug or am I doing something wrong that i cant see? i check stackflow some people were having the same problems without solutions.
// 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.

function exerciseTwo(){
function sayMyName(parameter1){

// Continue below this line:
function parametersExercise(param1, param2) {


// 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";

You are viewing a single comment. View All
KN103 (1)

I figure it out. You're supposed to put it below the comment for exercise 1. not after //continue below this line
the reason is in the notes before. "...If an argument is not given for a parameter, the parameter will be equal to undefined."
maybe...idk if its that reason but yeah, sounds legit to me. took a while to figure out tho still.

Sorry, I should've got in here earlier. i just recently joined Lambda School and was working on the other stuffs.

ArsenalFc0923 (0)

@KN103 currently stuck here at the moment, glad you replied. How are the classes going?

KN103 (1)

@ArsenalFc0923 Sadly, I'm a slow and lazy person so I'm still on the prep, but I'm close to finishing tho. like 80 something percent done...