---
title: "Discussion on \"Secrets you won't know: JavaScript\" | Hashnode"
description: "Discussion on \"Secrets you won't know: JavaScript\". Javascript Secrets that will blow your mind."
url: "https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7"
---

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

Discussion

# [Secrets you won't know: JavaScript](https://jesssica.hashnode.dev/secrets-you-wont-know-javascript?utm_source=hashnode&utm_medium=feed)

Javascript Secrets that will blow your mind.

Apr 20, 2021 · 3 min read · jesssica.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Jessica Carter](https://hashnode.com/@jesssica)

@jesssica · New Mexico, US

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

I code and dream. About Life and Health

## Responses 10

Markdown supported · ⌘↵ to post

[Don Vest](https://hashnode.com/@AD-6SkyRaider)

[Sep 1, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/612f879ec21ac123ca377786)

Just beginning my web dev journey. Coming out of CSS and this was a nice preview. Btw, I've found a couple of your cheat sheets. My instructor really liked your box model. Do you have these somewhere online?

[Eleftheria Batsou](https://hashnode.com/@eleftheriabatsou)

[May 7, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/6094d0eca7a3827bb64ced47)

Hi Jessica, your article provides value to the JS community, thank you!

I wanted to let you know your Twitter handler leads to an empty page.

[Sanath Kumar U](https://hashnode.com/@sanathkumar)

[Apr 27, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/608773cbc126f30b01abe448)

The code mentioned above is incorrect:

```
var value =" Hello World";
     setTimeout( (function( randomValue) {
          return function() { console.log( randomValue); }
         }) ( randomValue), 1000);
      value =" End";
```

It should have been :

```
 var value =" Hello World";
     setTimeout( (function( randomValue) {
          return function() { console.log( randomValue); }
         }) (value), 1000);
      value =" End";
```

[Maciej Wira](https://hashnode.com/@wirage)

[Apr 25, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/6084fe1ae1555b2a98aaa8c2)

Hi, interesting read! But you have a typo I think:

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1619328442532/t6q9dPO3h.png)

The argument passed to an SEF should be _value_, not _randomValue_.

[Yoram Gondwe](https://hashnode.com/@yoramg)

[Apr 23, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/60821b48fea38e52a9c5932b)

The self executing function really hit home for me... I was wondering what someone was wrote in their code but this explains it really well

[Jessica Carter](https://hashnode.com/@jesssica)

[Apr 23, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/60821b48fea38e52a9c5932b#reply-60825e3afea38e52a9c597c3)

Thanks a lot.

[Rudra Kaniya](https://hashnode.com/@lameCodes)

[Apr 22, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/60819de2fea38e52a9c58a02)

I'm definitely going to flex with BaNaNa in my circle from now onwards 😅, It was a good read!!

[Jessica Carter](https://hashnode.com/@jesssica)

[Apr 23, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/60819de2fea38e52a9c58a02#reply-60825e57ff5fc65284a7754f)

Haha, there are some other tricks too.

Thanks a lot for Reading.

[Shaima Haque](https://hashnode.com/@Shaima)

[Apr 22, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/6080fb4fc99e200d08f83d0f)

This was new to me ! Thanks👍

[Jessica Carter](https://hashnode.com/@jesssica)

[Apr 23, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/6080fb4fc99e200d08f83d0f#reply-60825e23fea38e52a9c597bc)

Thanks a lot.

[Sourav Dey](https://hashnode.com/@Souravdey777)

[Apr 21, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/607f9b03c99e200d08f817af)

This is pretty cool. I was not aware we can assign values to undefined. 🤯

[Jessica Carter](https://hashnode.com/@jesssica)

[Apr 21, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/607f9b03c99e200d08f817af#reply-607fa0bfc99e200d08f817e4)

Yup, Javascript is Really Amazing for a lot of Reason.

[Hemant Joshi](https://hashnode.com/@mayhemant)

[Apr 20, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/607ef80cc99e200d08f80c66)

Banana was really new to me, thanks a lot

[Jessica Carter](https://hashnode.com/@jesssica)

[Apr 20, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/607ef80cc99e200d08f80c66#reply-607efc3eeb2bd30d2d22b8d0)

Thanks a lot for Reading.

[Kelly Nichols](https://hashnode.com/@syed667)

[Apr 20, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/607ef020c99e200d08f80b33)

Interesting read! Thanks for sharing.

[Jessica Carter](https://hashnode.com/@jesssica)

[Apr 20, 2021](https://hashnode.com/posts/secrets-you-wont-know-javascript/607eeec5c99e200d08f80ac7/comment/607ef020c99e200d08f80b33#reply-607efc33c99e200d08f80d59)

Thanks a lot for your review.
