Myndi
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
thank you for your help ^_^
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
I know it's 200 because of the return, but what happpenedto the logs?
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
what happens with the console.log(z)
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
or they get sent to the void?
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
but ignores the console.logs?
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
and when you assign it to Z, Z assumes the value of 200
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
because it's not being told to exist anywhere else
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
it returns 200, ends the function, but nothing happens with it
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
I guess what throws me off is the return at the end
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
but in this case you type abc(x,y) = z (to write it in another way)
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
Yeah, I assume you could just type abc(x,y)
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
that's why I asked my order vs the answer's order
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
I get everything else
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
What I don't get is why the console log from inside the function is logged, before the function is called. That's what I don't understand
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
okay, the function by itself does nothing until being called, when Z is declared it also calls and runs the function, right?
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
but you just said it was an assingment
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
and not
10 20 20 30 200
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
why is
20 30 10 20 200
the correct answer82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
aha, and it goes back to my question
82 replies
KPCKevin Powell - Community
•Created by Myndi on 10/10/2023 in #front-end
JS logic question
then why the heck does it show the 2 logs inside Z first
82 replies