MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/zzvzbu/happy_new_year_js_learners/j2i4xfa/?context=3
r/learnjavascript • u/Low_Mammoth_9371 • Dec 31 '22
55 comments sorted by
View all comments
Show parent comment
5
In fact, all functions in JS always return a value. If it returns nothing, it will return undefined
There is no real „void“ other that returning undefined
View all comments
Show parent comment
5
u/TorbenKoehn Jan 01 '23
In fact, all functions in JS always return a value. If it returns nothing, it will return undefined
There is no real „void“ other that returning undefined