---
title: "Discussion on \"A 30 sec read that any Javascript beginner will find to be good to know\" | Hashnode"
description: "Discussion on \"A 30 sec read that any Javascript beginner will find to be good to know\". If you multiply 2 with a string \"2\" then you will get a 4 !\nUnlike 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 ..."
url: "https://hashnode.com/posts/a-30-sec-read-that-any-javascript-beginner-will-find-to-be-good-to-know/6271a85fd64dcf11c4fb5ee4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A 30 sec read that any Javascript beginner will find to be good to know](https://sunit.hashnode.dev/a-30-sec-read-that-any-javascript-beginner-will-find-to-be-good-to-know?utm_source=hashnode&utm_medium=feed)

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 ...

May 3, 2022 · 1 min read · sunit.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners-learningtocode-100daysofcode](https://hashnode.com/tag/beginners-learningtocode-100daysofcode)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#beginner](https://hashnode.com/tag/beginner)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)

## Written by

[Sunit Choithani](https://hashnode.com/@sunit30)

@sunit30

  
[View profile](https://hashnode.com/@sunit30)

I am a developer learning new technologies on the App Academy open platform.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
