learning JS with FCC, trying to understand something.
As title says i’m learning JS through FCC to understand syntax and for some explanation without having to google everything yet. In the attached photo it’s taking a variable and running it through 2 functions. What i don’t understand is the “global” “local” supposedly things inside the function are local so how is this code taking the sum of the first function and running it through the second when there wasn’t any return. Also why is it showing in console as “undefined” i know it’s because it isn’t asked to return the value but i feel like i’ve saw things before with no return and it’s done the simple math and output a number. Sorry for the phone pic as printscreen isn’t working.

