If you multiply 2 with a string "2" then you will get a 4 ! Unlike Ruby, where any last expression inside a function is by default the return value if return is not explicitly defined, Javascript on the other hand NEEDS you to have a return keyword ...