Pages

October 12, 2020

10/12/2020: Powershell and Javascript treat the lack of return keyword in a function differently

TIL: Powershell and Javascript treat the lack of return keyword in a function differently

------------------------------------------------------------------------------------------

In Powershell, a function without the return keyword still returns the results of each statement. In Javascript, a function without the return keyword returns undefined, which means exactly what it says: the value was not defined anywhere.

------------------------------------------------------------------------------------------

Today's accomplishments:
23K+ steps
Bathe Athena
ContinueThinkful Javascript course
Sweep and mop kitchen + basement stairs
Start laundry
Follow up on Canyon payment
Follow up on Amazon return
Balance checking account
Start watching Critical Role Campaign 2 Episode 89
Stretch


No comments: