Object Literals and Constructors

  Рет қаралды 4,920

Steve Griffith - Prof3ssorSt3v3

4 жыл бұрын

This tutorial explains what an Object literal is and how it differs from the Object constructor. Also discussed is what happens when you pass different types of values to the Object constructor method.
Code Sample GIST: gist.github.com/prof3ssorSt3v3/c7832cc14976e8bfd224772615ce0844

Пікірлер: 20
@AbdoTech0
@AbdoTech0 4 жыл бұрын
your channel is a javascript HEAVEN 😍😂
@jungl3ist
@jungl3ist 6 ай бұрын
The tempo, the tone, the information, the examples were just perfect for me. I m just diving into Js, and you re my to go explanation channel on day one. Many thanks.
@dyracho6667
@dyracho6667 2 жыл бұрын
Thank you, steve. This really makes sense. But I have to this two or three more times to fully understand.
@bryantruelas9188
@bryantruelas9188 4 жыл бұрын
You are extremely good at making concepts so easy to understand. Thanks for all your work.
@tahasoft1
@tahasoft1 4 жыл бұрын
The best JavaScript teacher ever. Really the best. Thanks for the great content.
@rotrose7531
@rotrose7531 4 жыл бұрын
ten minutes or so, you made clear all things about Object, it is not a easy feat. As always thank you very much. Best javascript channel I found on or beyond youtube.
@iwswordpress
@iwswordpress 4 жыл бұрын
Very useful recap on objects and primitives.
@chesterxp508
@chesterxp508 2 жыл бұрын
Another very cool tutorial!
@alexanderhungerford8246
@alexanderhungerford8246 3 жыл бұрын
Great explanation and examples!
@AndrewDevUA
@AndrewDevUA 4 жыл бұрын
awesome explanation!
@r0mankon
@r0mankon 3 жыл бұрын
Awesome
@michelange5102
@michelange5102 4 жыл бұрын
Wooooooow! Thanks!
@moonagesyndrome
@moonagesyndrome Жыл бұрын
Yep, this channel still rules.
@annazmussakib4796
@annazmussakib4796 4 жыл бұрын
Great explanation thanks ^_^
@crashonthehumble
@crashonthehumble 4 жыл бұрын
Thank you
@romeojoseph766
@romeojoseph766 6 ай бұрын
sir, I have a confusion, why can "string" get access to String Object methods when it's decalared without anykeyword like this: "string" console.log("string" instanceof string)//prints out false if this is not an instance of String object why can it access the String object's property which is .length in this case console.log("string".length)//prints out the length of the string(6) it can also use method like .split() but console prints out "string" is not an instance os String object tho
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 6 ай бұрын
A String is a primitive. It is only a value. However, you can create a String Object by writing new String(). If you use a method that belongs to the String Object on a string primitive, then JavaScript will create a parallel string object in the background in order to run the method. let s = 'steve'; let us = s.toUpperCase(); //s is a primitive string //us is also a primitive string A String Object was created behind the scenes and the value of s was sent to that object in order to run the toUpperCase method. The method returns a string primitive.
@romeojoseph766
@romeojoseph766 6 ай бұрын
I think it's a bit clear now thanks for clearing up my confusion@@SteveGriffith-Prof3ssorSt3v3
@KmillionaryShopifyExperts
@KmillionaryShopifyExperts 4 жыл бұрын
Have you played The Stanley Parable?
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 4 жыл бұрын
Nope.
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 4,1 МЛН
It’S So Fun To Wash My Son’S Hair! #funny #baby#cute  #funnybaby
00:14
Amazing Children Toys
Рет қаралды 5 МЛН
Does size matter? BEACH EDITION
00:32
Mini Katana
Рет қаралды 19 МЛН
Каха и суп
00:39
К-Media
Рет қаралды 6 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 4,1 МЛН