Codecademy Forums

Https://www.codecademy.com/paths/web-development/tracks/web-dev-js-arrays-loops-objects/modules/learn-javascript-scope/projects/training-days

const event2 = getRandEvent();
const days2 = getTrainingDays(event2);
const name2 = 'Warren';

logEvent(event2, name2);
logTime(days2, name2);

I think in this project the passed arguments event2 name2 are flipped. It should be logEvent(name2, event2);

Blockquote

Blockquote

Hello :slight_smile:

You’re right, the instructions are inconsistent when it comes to the order of the parameters. Good catch! Thank you very much, I will report this bug.

1 Like

Also, I feel like this exercise is not a good example when it comes to show the difference between input parameters and variables. Naming the input variables at a function definition the same as the variables you use is very confusing and should not be common practice.

I find myself and others explaining course students the differences way too many times.

1 Like

Yes, that is very confusing. The whole excersise got my brains frying.

1 Like