What is THIS keyword in JavaScript? - Tutorial for beginners

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 302

  • @ColorCode-io
    @ColorCode-io  3 года назад +53

    JavaScript THIS keyword explained - A deep dive 👨🏻‍💻

    • @arod3295
      @arod3295 3 года назад +2

      So I have a very important question. PLEASE help. So there must be more to the layers of seniority I should say to the concept of front vs backend…there’s more job titled for a coder of all levels. What are those many titles called?
      Web developer
      Front end
      Back end
      Web designer
      Programmer (which idk if that’s just another word for web dev or if that’s a proper title)
      Junior developer (idk if that’s another word for entry front end)
      What other titles are there? Knowing this would help people find a proper path to get started instead of aiming high like “I want to be a software developer” like I did 3yrs ago. Now I’m aiming for front end (if that’s right) and design web logic to interact with smart contracts (I want to work in the blockchain industry and a lot of the work is programming websites to interact with the contracts)
      Thank you

    • @starkxz
      @starkxz Год назад

      @@arod3295
      There are many job titles and roles within the world of software development. Here are some common ones:
      Full-stack developer: a developer who can work on both the front-end and back-end of an application.
      Mobile developer: a developer who specializes in building applications for mobile devices.
      Game developer: a developer who specializes in building video games.
      DevOps engineer: a developer who works on the development and deployment of software through collaboration with software developers and IT professionals.
      Software engineer: a developer who designs, builds, and tests software applications.
      QA engineer: a developer who is responsible for testing software applications to ensure that they function properly.
      UX/UI designer: a designer who specializes in creating user interfaces and experiences for software applications.
      Product manager: a professional who oversees the development and management of a software product.
      Technical writer: a professional who creates documentation and user guides for software applications.
      It's important to note that some of these roles may require more specialized knowledge or experience in a particular area. For example, becoming a mobile developer may require knowledge of specific programming languages and frameworks, as well as experience with mobile app development.
      Ultimately, the best way to determine which role is right for you is to explore the different areas of software development and see which ones interest you the most. Consider taking online courses or tutorials, attending meetups or conferences, and talking to professionals in the field to learn more about the different roles and how you can get started in your desired career path.

  • @cleanocavalcante
    @cleanocavalcante 3 года назад +85

    Dear RUclips's Algorithm gods, please bless this channel with a million views per episode 🙏🏼😁. This content is absolutely gold. I've been learning JS for the past 2 months and I'm really benefitting from all this knowledge. Thank you so much, and keep up the fantastic work! Cheers from Brazil!

    • @ColorCode-io
      @ColorCode-io  3 года назад +11

      Haha this is the best comment I ever got. Thank you. I'm glad these videos are helping. Message me on instagram if you have questions.

    • @cleanocavalcante
      @cleanocavalcante 3 года назад +1

      @@ColorCode-io You 100% deserve it!

    • @omersoncruz1081
      @omersoncruz1081 Год назад

      Amen!

    • @uzgurCoder
      @uzgurCoder Год назад +1

      Your wish granted😁😅😅

  • @jorgecruz8342
    @jorgecruz8342 23 дня назад +2

    An easy way to remember call and apply is: call begins with c, so, coma separated, apply begins with a, so array of parameters. Great tutorial by the way!

  • @darksoulgamer5837
    @darksoulgamer5837 3 года назад +50

    This is an underrated channel! The explanation is mind blowing not confusing at all, please keep making videos on JS 🙏

    • @ColorCode-io
      @ColorCode-io  3 года назад +5

      Great to hear that! More videos coming soon.

    • @redeye8536
      @redeye8536 5 месяцев назад

      @@ColorCode-io lol i really like this thank you lolllll xddddd

  • @axkongkong2819
    @axkongkong2819 2 года назад +5

    I watched your video on THIS...didn't understand anything......then i watched 10 other random videos on RUclips about THIS....did not understand anything. I gave up and went on with my day. The next day your 1 min video on THIS popped up, i watched that, and that was clear as day!!!! I followed up by watching this 24 min video, and everything was so clear!! I don't know if its just the time it took for information to absorb over 24 hours or i re-watched your videos a few times like you said at the end, in order to get it. One thing is for sure, this is the best tutorial on THIS and i am pretty sure i watched them all. Love your teaching style, very good examples and slight humor sprinkled around. Subscribed!

    • @ColorCode-io
      @ColorCode-io  2 года назад +1

      That's awesome! Thanks for sharing and I'm glad it clicked.

  • @RossieeissoR
    @RossieeissoR 2 года назад +6

    Style, pace, music, explanation, effects, even typing sound... everything is perfect.

  • @atlas8133
    @atlas8133 2 года назад +15

    'This' video should have at least 100 times more views. Pure gold if you've ever been confused about the intricate applications of 'this' in different contexts. He also covers .bind, .call, .apply as a nice bonus. My favorite video about 'this', simple as 'that'!

  • @rohithaider
    @rohithaider Месяц назад +1

    I can't tell you how much grateful I am to you for making me understand this confusing 'this' keyword. You are such an amazing mentor. Love from Bangladesh ❤

  • @digitalfragrant
    @digitalfragrant 8 месяцев назад +5

    The most underrated educator on YT. Production quality is also insane. Keep it up man!

  • @randymartin9040
    @randymartin9040 2 месяца назад +1

    I love this series, thank you so much for it! I love learning the fringe case type scenarios, and you don't edit out your mistakes which is fantastic. It actually helps a ton because we make the same mistakes while learning and often don't know how to solve it. It leads to a very comprehensive understanding of each concept. I really appreciate it!

    • @ColorCode-io
      @ColorCode-io  Месяц назад

      That's great feedback. Thank you.

  • @stepanterechshenko5435
    @stepanterechshenko5435 2 года назад +1

    best explanation of "this" I have found and I was looking in 3 different languages on YT

  • @ebcoutinho
    @ebcoutinho 9 месяцев назад +1

    These videos are helping me to fill the knowledge gaps I have

  • @alainkaiser2697
    @alainkaiser2697 Год назад +1

    this is better than 99% of the blog posts out there trying to explain core concepts like this!

  • @neria15
    @neria15 10 месяцев назад +1

    this playlist need to be everywhere !
    Thank you Sina!

  • @himanshuarora1910
    @himanshuarora1910 Год назад +1

    i really liked it when i can see the person who is teaching ,great work

  • @nnex5
    @nnex5 Год назад +1

    This channel and Web Dev Simplified are the most helpful channels for Web Developers. Thank you!

  • @towhid6476
    @towhid6476 Год назад +1

    Loved the video explanation. I was following a JS course for a month and this one dominates all

  • @myashkov1975
    @myashkov1975 2 года назад +1

    Simple, clear and perfect for beginners explanation of 'this' keyword, thanks, man!

  • @MuhammadUsman-fl7lo
    @MuhammadUsman-fl7lo 2 года назад +1

    The channel needs more support !

  • @RAJVEERBIRADAR360
    @RAJVEERBIRADAR360 5 месяцев назад +1

    i was confused in this from aproximately 1yr i was just asuming it not understanding it true meaninig. thanks to you i was completely able to understand the topic this, (same concept self in python)

  • @dipankarsahoo7119
    @dipankarsahoo7119 2 года назад +1

    i watched a single video of yours and fell in love with your way of teaching, the background music, the humor everything loved it ..! subscribed

  • @chrismills5307
    @chrismills5307 Год назад +1

    Amazing video, clear explanation, great communication and presentation skills, and covers all the ins and outs without making it overly complex.

  • @MarstonH
    @MarstonH Год назад +1

    dude you are so real and good at explaining. this has helped a lot

  • @starkxz
    @starkxz Год назад +1

    This channel is the best when it comes to JS. Honestly it needs more views. Thanks Sina, keep up the fantastic work.

  • @Fred-my9er
    @Fred-my9er 2 года назад +1

    This was so well explained with good examples. I probably need to rewatch it to remember everything but I understood it all.

  • @DeepakSharma-ue3pn
    @DeepakSharma-ue3pn 3 месяца назад +1

    This video is the perfect summarisation of chapter "this all makes sense now"

  • @Flipping_myFinds
    @Flipping_myFinds 3 года назад +4

    Always liked creating and designing. Programming is a new journey that I’m taking (haven’t had really good inexpensive sources to learn from)and I’m super glad I found you and I know your videos and courses will guide me finally the right way

    • @ColorCode-io
      @ColorCode-io  3 года назад +2

      Great to hear! Best of luck in your journey and reach out to me if you have questions.

  • @umarkhankhodjaev
    @umarkhankhodjaev 4 дня назад

    Incredibly good lesson

  • @anuragsingh-ts3nb
    @anuragsingh-ts3nb 2 года назад +1

    best instructor which u cannot even get on paid course, after watching this i became his big FAN!!😊

  • @jatilyadav4000
    @jatilyadav4000 Год назад +1

    Content is just amazing I could'nt stop watching

  • @namanjoshi5089
    @namanjoshi5089 Год назад

    gold mine which isn't known by many .. love this channel

  • @kurisu26
    @kurisu26 Год назад

    Best "this" tutorial I found. Thanks

  • @nynzxoxo
    @nynzxoxo 3 года назад +3

    You deserve so many more views and subs! This content is gold

  • @prakharpaw-de7vh
    @prakharpaw-de7vh Год назад +1

    came here looking for explanation on the original f***ing a**hole of JavaScript, aka the this keyword. Ended up watching the entire series.
    Thank you

  • @HarelYeh...
    @HarelYeh... Год назад +1

    Really thanks for all the effort, it's really fun to watch and learn from you, you convey it in a pleasant way and not like a robot or excessive seriousness, just a pleasure.

  • @sudiptasaha8905
    @sudiptasaha8905 Год назад +1

    Hey, your content really adds value to my skillset. Please do make more videos. Love from India ❤

  • @salamina_
    @salamina_ 3 года назад +1

    Excellent explanations on subjects have always been a mystery to me. Thank you for making these tutorials, really insightful and entertaining.. dig your teaching
    style. Keep them coming!

    • @ColorCode-io
      @ColorCode-io  3 года назад

      I appreciate that. Thank you 👍

  • @andresfelipeladinoespitia
    @andresfelipeladinoespitia Год назад +1

    Thank you very much man. I had to watch it a couple of times, but I finally got the whole *this* concept. Also, you sound 100% like Edward Snowden.

  • @edhead76
    @edhead76 9 месяцев назад

    Is bind only used with the keyword 'this'? This is a great explanation, but I had to pause and rewind several times to grasp the concept more fully. Actually, to clarify, this is the BEST explanation I've come across, and I have been searching for the correct way to use 'this' for quite some time!

  • @syedaun5410
    @syedaun5410 3 года назад +1

    Please keep going with your videos.
    You are really easy to understand and fun to watch.

  • @BigSmoke-r9w
    @BigSmoke-r9w 8 месяцев назад

    Best explanation! I swear to god, this is amazing

  • @abhijeetbajpai1022
    @abhijeetbajpai1022 10 месяцев назад +1

    Dude, I really love the way of teach things, Really Awesome !! The hat's off to you.

  • @dineshreddy8915
    @dineshreddy8915 Год назад +1

    perfect, everything is perfect....
    The concept , the video, editing , making us attracted, every thing is perfect
    expecting more video from you (react if possible)

  • @mohammadadeeb1341
    @mohammadadeeb1341 Год назад +2

    Dude make an full JavaScript course you will nailed it man🔥🔥🔥🔥

  • @tetianazhuchenko2182
    @tetianazhuchenko2182 Год назад +1

    Your expectations are great 👍 Thanks

  • @by2313
    @by2313 3 года назад +3

    I really like your classes. I'm using them in conjunction with a UDemy course and learning it from a couple folks is helping it sink in a bit more. I hope you do one on the Reduce method.

    • @ColorCode-io
      @ColorCode-io  3 года назад +1

      Awesome. I may do one in August

    • @davidmmadden
      @davidmmadden 3 года назад

      @@ColorCode-io would also love one on reduce!

  • @rahulmp7109
    @rahulmp7109 2 месяца назад +1

    Your presentation style is really awso🎉🎉🎉🎉

  • @darksoulgamer5837
    @darksoulgamer5837 3 года назад +2

    Love these videos, but could you also share some real world use cases? Like for call, apply,bind etc. Even for this, why do we really need it

  • @erickchavez4551
    @erickchavez4551 Год назад

    Nicely explained! thanks for the amazing quality of your videos. Took a bunch of notes to review after watching the video.

  • @asadmoosvi
    @asadmoosvi 3 года назад +4

    Love these videos! You explain concepts really well and in great detail.

  • @slaincore
    @slaincore Год назад +1

    You are just awesome explainer/teacher! Keep going my friend!

  • @longingbydesign
    @longingbydesign 3 года назад +1

    Thank you for your amazing videos. Please consider dropping the use of the non-standard innerText in favor of the standard textContent as many of your less experienced viewers will pick up that otherwise. innerText has its place (preserving linebreaks and whitespace), but in your examples its really all about textContent.

    • @ColorCode-io
      @ColorCode-io  3 года назад +1

      Thanks for the comment. You obviously pay close attention to detail :)

  • @michaelnorton9715
    @michaelnorton9715 Год назад

    Our WDD 330 Fundamentals of Web Development class at Brigham Young University - Idaho has this video as part of our notes! I like how you explained all of "this" ;) I enjoyed your video start and your energy throughout the video. I got lost on that last part where you set a time-out but I felt like I understand how to use "this" better than I did before. I need to watch your arrow function video. That's one thing that I get tripped up with. Thanks for all the time and work you put into making this video. Liked and subscribed!

  • @ivo_sa
    @ivo_sa 11 месяцев назад +2

    man, i love your videos ! they are incredibly informative and also funny to watch !

  • @nathanisong9393
    @nathanisong9393 2 года назад +1

    I love how you interact even though I am not still cool with it yet. But thanks

  • @IlPandax
    @IlPandax 9 месяцев назад +1

    As an italian brother, your italian is perfect! And also your Javascript! XD

  • @ayushdixit8993
    @ayushdixit8993 Год назад +1

    You are great man!!!!!!!... Very well explained....
    Thanks

  • @ann_uken
    @ann_uken Год назад +1

    Thank you for the video, very well explained! 💥

  • @programmingforfun4158
    @programmingforfun4158 Год назад

    I dont know how this type of content can only have 25k views

  • @thiagoneves50
    @thiagoneves50 3 года назад +2

    This is really good! I'm very grateful!

  • @szanka96
    @szanka96 Год назад +2

    I'm amazed that THIS can be explained without causing a headache. Hit the subscribe button. Thank you so much :)

  • @stevecrabtree9141
    @stevecrabtree9141 Год назад +1

    Just found your channel, you would be a blast to work with! I would be dying all day with your humor

  • @taunado
    @taunado 2 года назад +1

    Great production and all, thanks for sharing. +1 for providing purposeful and real-world use-case cases to provide the context for your teaching. My brain is constantly trying to work out the end goal and why what you're teaching has value, making it difficult to follow along.

  • @havefun5519
    @havefun5519 Год назад +1

    Cool explanation. BTW, the video quality is great, and the speed of the talk is good, like the clear accent.

  • @yarinvanzikri
    @yarinvanzikri 2 года назад +1

    love your content and attitude! am here just to say thanks!

  • @TheAmanpro
    @TheAmanpro 3 года назад +1

    Thank you so much! Beautifully explained. Keep posting

    • @ColorCode-io
      @ColorCode-io  3 года назад

      Thank you, Aman :) More coming next week.

  • @error0803
    @error0803 2 года назад +1

    Very good and very high quality video. Thank you. Learned a lot👍🏻

  • @MishraXE
    @MishraXE Год назад

    The best explanation of This 😍

  • @weiguo2297
    @weiguo2297 Год назад +1

    Nice video. Help me to solve my confusion about the meaning of this in JSX callbacks.

  • @劉奕德-o2s
    @劉奕德-o2s Год назад

    Great explanation! By the way, what actually is the favorite feature mentioned in 2:54 ?

  • @BHASKARARAOKONNA
    @BHASKARARAOKONNA Год назад

    Your explanation and presentation of the video are so good that I couldn't even wait to share this to my fellow learners and also SUBSCRIBED. Really, you should have got more views and subscribers. Keep up the good work 😀😎🙏

  • @Professor-eu1ll
    @Professor-eu1ll Год назад +1

    2nd best channel after ColorCode. Oh wait this is ColorCode

  • @AustinThomasFilms
    @AustinThomasFilms 2 месяца назад +1

    Subscribed instantly, your channel is amazing

  • @dream5.2
    @dream5.2 Год назад

    'This' is too good. I'll never choose that

  • @uncoding_with_raj
    @uncoding_with_raj Год назад +1

    Amazing tutorial man.

  • @irenashovel9244
    @irenashovel9244 Год назад

    this is amazing! thank you so much for this deep dive!

  • @YeetYeetYe
    @YeetYeetYe 2 года назад +2

    Great editing.

  • @deepaks9301
    @deepaks9301 Год назад +1

    How did u focus part of screen what is the software ??

  • @PatelBhaveshgo4glory
    @PatelBhaveshgo4glory 2 года назад +1

    Amazing explanation. Keep it up, sir!

  • @Kashan-Ali-1
    @Kashan-Ali-1 10 месяцев назад

    What a great job, you're doing!

  • @KhrystynaKlapushchak
    @KhrystynaKlapushchak Год назад +1

    Thank you very much:) love your sense of humor;)

  • @alirezarezaei7416
    @alirezarezaei7416 2 года назад +1

    Thanks a lot. after a lot of exhausting search, i realized this keyword.

  • @santhoshk9285
    @santhoshk9285 3 года назад +2

    keep rocking saanaaaaaaaa ... waiting for more 🔥

  • @TottiBln
    @TottiBln 3 года назад +1

    Thank You!!! Greetings from Germany, Berlin!

  • @mohamedmahmoud-nj1uh
    @mohamedmahmoud-nj1uh 10 месяцев назад +1

    your videos are amazing , you give tricky tips when you code , in a smpile ways , please make it 100 things you might don't knoOoOoOow in JS

  • @soniablanche5672
    @soniablanche5672 Год назад

    I really wish arrow functions throwed an error if you tried to use the "bind" method on it. It would be a good way to detect if the programmer passed an arrow function instead of regular function as a callback.

  • @Jmaster547
    @Jmaster547 Год назад

    Hey idk if this is a stupid question. but in the example at 5:54, when I use return `I am ${name}` instead of this.name, I still get the same output for you.talk() and me.talk(). Was wondering why this still works.

  • @oneofone_1333
    @oneofone_1333 3 года назад +1

    Man i stubbled on your content, love it!!!! Greetings from Switzerland

    • @ColorCode-io
      @ColorCode-io  3 года назад +1

      Awesome. Thank you. One of my favorite places 🇨🇭

    • @oneofone_1333
      @oneofone_1333 3 года назад

      @@ColorCode-io Ma man!

  • @raziyehjed362
    @raziyehjed362 6 месяцев назад

    in the 11th minute, you said this " if( lang === "en" )" is very breakable so what do you perefer to do ?

  • @Chris2phaBrown
    @Chris2phaBrown 3 года назад +2

    Looking forward to the arrow function gotchas

  • @surf2553
    @surf2553 2 года назад +1

    Yep, super helpful!

  • @gerardomonzione6766
    @gerardomonzione6766 3 года назад +1

    Thanks your tutorial is perfect i ' am so glad you did these classes ,please keep doing them.
    By the way , ciao bella is not polite , 😂😂 is informal you can't use with people you don't know 😂😂 i'm italian

  • @taylorwade1537
    @taylorwade1537 2 года назад +1

    .this is awesome and THIS is awesome. Thank you so much!!

  • @jaswanthreddybora740
    @jaswanthreddybora740 2 года назад +1

    Do make a series of JS videos for beginners

    • @ColorCode-io
      @ColorCode-io  2 года назад

      Yep. Coming this fall. Sign up on ColorCode.io

  • @WaseemAbbas-lv5xm
    @WaseemAbbas-lv5xm 8 месяцев назад

    Awesome i love this course ❤ . Also make a tutorial on React

  • @steelmantv
    @steelmantv Год назад

    Thank you! So helpful

  • @nathalianobrega6917
    @nathalianobrega6917 2 года назад +1

    this is such a great video, thanks!

  • @jimkk159
    @jimkk159 Год назад +1

    So good, help me a lot!!

  • @Salah-YT
    @Salah-YT 2 года назад +1

    Hello bro thank u so much for all ur nice videos I Love all ur videos but I work with javascript nearly a year now I'm still struggling so even I cant sort it one simple challenge in the CodeWar website so because I work hard on JS I nearly forgot HTML and CSS so please do some video on CodeWar problem solving so people will love the logic and sorting problem please thank u so much

  • @randy-rndr
    @randy-rndr 2 года назад +1

    instant subscribe, this channel is really emazing