r/shittyprogramming • • Apr 12 '16

Easy JavaScript game loop

Post image
277 Upvotes

37 comments sorted by

View all comments

Show parent comments

4

u/Darksonn Apr 12 '16

No, but they don't have return types either, so it's fine.

4

u/Niriel Apr 12 '16

They don't have a return value, but they do have a return type. Bottom is a type with no value. https://en.m.wikipedia.org/wiki/Bottom_type

6

u/whatIsThisBullCrap Apr 12 '16

Javascript is dynamically and weakly typed. It doesn't matter what the type is