---
title: "Discussion on \"You don't know JS: Summary - Chapter 1 and Chapter 2 (this and Prototype)\" | Hashnode"
description: "Discussion on \"You don't know JS: Summary - Chapter 1 and Chapter 2 (this and Prototype)\". The best approach to avoid the use of anonymous functions altogether requires a self-reference, and instead uses a named function. \n\nusing call(..), we ensure the \"this\" points at the function object itself.\n\nInternally scope is like an object with p..."
url: "https://hashnode.com/posts/you-dont-know-js-summary-chapter-1-and-chapter-2-this-and-prototype/60487625fbdf335705c011ae"
---

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

Discussion

# [You don't know JS: Summary - Chapter 1 and Chapter 2 (this and Prototype)](https://innovativecoder.hashnode.dev/you-dont-know-js-summary-chapter-1-and-chapter-2-this-and-prototype?utm_source=hashnode&utm_medium=feed)

The best approach to avoid the use of anonymous functions altogether requires a self-reference, and instead uses a named function. using call(..), we ensure the "this" points at the function object itself. Internally scope is like an object with p...

Mar 10, 2021 · 3 min read · innovativecoder.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#web](https://hashnode.com/tag/web)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Innovative Coder (Jasneet Sawhney)](https://hashnode.com/@Innovativecoder)

@Innovativecoder

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

Web Developer and Renaissance polymath

## Responses 1

Markdown supported · ⌘↵ to post

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Mar 10, 2021](https://hashnode.com/posts/you-dont-know-js-summary-chapter-1-and-chapter-2-this-and-prototype/60487625fbdf335705c011ae/comment/604882f293d9dd5b237597f1)

One of the best JS resources. 👏

[Innovative Coder (Jasneet Sawhney)](https://hashnode.com/@Innovativecoder)

[Mar 12, 2021](https://hashnode.com/posts/you-dont-know-js-summary-chapter-1-and-chapter-2-this-and-prototype/60487625fbdf335705c011ae/comment/604882f293d9dd5b237597f1#reply-604b2535ad1cac7d577e04c5)

My first blog, and comment from god himself. This is so motivating :)

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Mar 12, 2021](https://hashnode.com/posts/you-dont-know-js-summary-chapter-1-and-chapter-2-this-and-prototype/60487625fbdf335705c011ae/comment/604882f293d9dd5b237597f1#reply-604b302dad1cac7d577e0650)

Haha, thank you [Jasneet Sawhney](https://hashnode.com/@Innovativecoder)! 🙏
