• JavaScriptCoff1 Profile Picture

    JavaScript➕Coffee🦙Faye 🇺🇦 @JavaScriptCoff1

    5 years ago

    I don't understand 'this' RT if you don't understand either....we need answers!!

    16 4 22 0 0
    Download Gif
  • kelvinmai Profile Picture

    Kelvin Mai @kelvinmai

    5 years ago

    @JavaScriptCoff1 Hardest concept of JS imo. I didn't get it until I was fully comfy with OOP... Good news is that modern JS practices is this-less

    1 0 1 0 0
  • pasoevi Profile Picture

    Sergi Pasoevi @pasoevi

    5 years ago

    @JavaScriptCoff1 Javascript The Good Parts has good explanations. But I saw some tweets from @IrenSayWhen with tl;dr on how this works depending on how you invoke the function

    1 0 3 0 0
  • kyla_Christin_e Profile Picture

    Kyla Gregory @kyla_Christin_e

    5 years ago

    @JavaScriptCoff1 youtu.be/Bv_5Zv5c-Ts Maybe this will help?

    0 0 2 0 0
  • grantdotdev Profile Picture

    Grant | Dev @grantdotdev

    5 years ago

    @JavaScriptCoff1 First get your head around scope. Learn functions scope. Once you duly understand scope. Learning about *this* will be a lot easier. Dealing with functions *this* is the scope within the function. This chs he's when using arrow functions.

    0 0 1 0 0
  • RoccoSangellino Profile Picture

    Rocco Sangellino @RoccoSangellino

    5 years ago

    @JavaScriptCoff1 this" can reference a different object depending on where/how it's used. In class-based components "this" refers to the "instance" of the object that is created when you use the new keyword. In other words, it's the object you are currently working in.

    RoccoSangellino tweet picture

    2 0 1 0 0
    Download Image
  • yuetsu Profile Picture

    yuetsu 🇺🇦 ☮️🖖☯️ he/him #BlackLivesMatter @yuetsu

    5 years ago

    @JavaScriptCoff1 Some videos to help along (i love YouTube coding explanation videos, as you know) — • youtube.com/watch?v=NV9sHL… • youtube.com/watch?v=AOSYY1… • youtube.com/watch?v=GhbhD1… • youtube.com/watch?v=AYVYxe… (when/how to use call(), add() & bind() with `this`) ...hope all this helps! 4/done.

    0 0 0 0 0
  • yuetsu Profile Picture

    yuetsu 🇺🇦 ☮️🖖☯️ he/him #BlackLivesMatter @yuetsu

    5 years ago

    @JavaScriptCoff1 (cont'd.) ...to declare your vars & functions, then those have BLOCK Scope, and their `this` in a browser window in the Window Object itself, which, unless you know EXACTLY where your code is at when it runs and how to get where you want to go, is *not* what you want. ... 3/

    0 0 0 0 0
  • yuetsu Profile Picture

    yuetsu 🇺🇦 ☮️🖖☯️ he/him #BlackLivesMatter @yuetsu

    5 years ago

    @JavaScriptCoff1 (cont'd.) ...so if you're accessing `record.name,` the `this` is `record.` in a browser window DOM tree, it's whatever is the parrent object of the DOM node you were in when the JS ran. • if you use the more modern `const,` `let` or arrow functions `() => {}` ... 2/

    0 0 0 0 0
  • yuetsu Profile Picture

    yuetsu 🇺🇦 ☮️🖖☯️ he/him #BlackLivesMatter @yuetsu

    5 years ago

    @JavaScriptCoff1 here's the main thing you need to understand, and again, it has to do with JS Scope & Hoisting - • if you declare vars & functions with `var` & `function` keywords, their `this` is what is directly to the LEFT of the Object dot. ... 1/

    0 0 0 0 0
  • TIBoine Profile Picture

    BOINE @TIBoine

    5 years ago

    @JavaScriptCoff1 this points to --> this <--? IDR

    0 0 0 0 0
  • timo__tech Profile Picture

    Timo Heman @timo__tech

    5 years ago

    @JavaScriptCoff1 After rewatching tutorials and reading quite a bit.. I think I can say I understand 'this' by a descent amount

    0 0 0 0 0
  • Download Image
    • Privacy
    • Term and Conditions
    • About
    • Contact Us
    • TwStalker is not affiliated with X™. All Rights Reserved. 2024 www.instalker.org

    twitter web viewer x profile viewer bayigram.com instagram takipçi satın al instagram takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al sosyalgram takipçi satın al instagram ücretsiz takipçi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al metin2 metin2 wiki metin2 ep metin2 dragon coins metin2 forum metin2 board popigram instagram takipçi satın al takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al buyfans buy instagram followers buy instagram likes buy instagram views buy tiktok followers buy tiktok likes buy tiktok views buy twitter followers buy telegram members Buy Youtube Subscribers Buy Youtube Views Buy Youtube Likes forstalk postegro web postegro x profile viewer