You can pass data into a function, and then those arguments become variables
function printSomeStuff(name, age) {
console.log("The variable name = ", name);
console.log("The variable age = ", age);
}
printSomeStuff("bob", 42);
Calling the function determines the values of the arguments.
The tests are going to call checkObj and set the values of obj and checkProp for that function call. But, the specific values that the test suite will use have nothing to do with the code you have to write for this challenge. Your code needs to work for any object obj and property name checkProp.
Roughly speaking, the site is calling your function with different inputs and check corresponding outputs to determine if they are correct. And if they are, then you pass the challenge.
I know they store data, I know they can be declared. I know the difference between const, var and let–and how that makes them subject to change or not.
I just can’t get my brain to put these things together when the lessons get complex. Or if something is phrased differently.
I don’t think I can do this lesson sorry.
It turns out I can’t do Passing Values to Functions with Arguments that I need to understand to do this lesson.
I think I was thinking of another lesson that I managed to complete.
I’m not ready for this one and can’t do it sorry for using everyone’s time again.
I’m not trying to be annoying or waste time I just really find Javascript hard and keep over estimating how much I can do or am ready for.
This stuff is hard. The whole reason why people come to this forum is to learn and help people learn. Asking and answering questions is never a waste of time - its the whole purpose