JavaScript ES6 Tutorial #8 - Object Literal Enhancements

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 18

  • @Arillaxe
    @Arillaxe 8 років тому +8

    In this playlist #8 goes before #7.Btw awesome tutorials!

    • @ezekielsaturday2637
      @ezekielsaturday2637 7 років тому +1

      i think the playlist was reviewed...when i checked in and downloaded the videos about a week ago...
      it was cool...
      Nice work netninja

    • @loot6
      @loot6 5 років тому +1

      2 years by and the playlist still has the same error lol.

    • @fffhshf345
      @fffhshf345 5 років тому

      @@loot6 dude it is 2019 :)

    • @loot6
      @loot6 5 років тому +1

      @@fffhshf345 That's even worse then

    • @inovexa4039
      @inovexa4039 4 роки тому +1

      @@loot6 damn its 2020 ,, got the same error! :|

  • @rohitmaharjan2162
    @rohitmaharjan2162 6 років тому +1

    Awesome Series...Also, that "Whoah!!!" gets me everytime lol

  • @fionna
    @fionna 8 років тому +15

    Line 13 should be ninja.chop(5); otherwise we get undefined for console.log-ging the calling of fn chop() :)

    • @NetNinja
      @NetNinja  8 років тому +3

      You are correct :). Thanks!

    • @iquahs
      @iquahs 4 роки тому +1

      Man i was hoping the comments section had an explanation for the undefined. Thank you!

    • @ManuelJordan317
      @ManuelJordan317 3 роки тому

      Good catch!

    • @ravisagar434
      @ravisagar434 3 роки тому

      Thanks Fionna to clarify

  • @emmanueleban1096
    @emmanueleban1096 7 років тому

    nice work man you should talk about prototype too

  • @mohammadsamir2713
    @mohammadsamir2713 5 років тому

    always force me to put like for your videos

  • @bilalawandxb
    @bilalawandxb 6 років тому

    Normally with Object literal we mostly encapsulate the member variables with the Object Literal. e.g.
    var Ninja = {
    name:"Crystal",
    belt: "Black",
    show: function() {
    console.log(`${this.name} attained ${this.belt} belt`);
    }
    };
    Ninja.show();
    So to get a bit of encapsulation. For understanding what do you think the difference in both approaches and how ES6 might be better?

  • @mahsam7975
    @mahsam7975 6 років тому

    hi is there any github link you save these codes there?tnx