It's also worth noting that "array" is not one of JavaScript's "primitive" types; arrays are just objects, unlike strings, numbers, booleans, etc. If you test "typeof anArray", you get "object". Arrays are just objects with numbers as their keys, and some cool methods (and one property). If we "dissect" the array ["A", "B", "C", "D"], it's basically this object -- the keys 0 to 3 and length (the methods are hidden in its prototype): ( { 0: "A", 1: "B", 2: "C", 3: "D", length: 4 } )[2] // "C" The bracket notation you use to access array elements is also just an object thing - " person.name " can be written as " person["name"] ", for example. This bracket notation can be used instead of dot notation when you want to access an object property with a key that isn't a valid JavaScript identifer - in the case of arrays, a key starting with a number - or when you want to access a property on an object unknown until runtime.
Dude, nearly anything in JS is an object. It's true while a string for example is considered a primitive type, but you can access all of its methods inherited from the String.prototype as if it were an object try "str".length It has object properties so we deal with it as an object.
@@talleyrand9530 But it's still not technically an object; it's just coerced to one behind the scenes when you read its properties. But your point that "nearly anything in JS is an object" should really be "everything" -- it's an object-oriented language after all. Object or not, though, the main point on primitives is that they can't be mutated.
Also, always use semicolons. He's not using any here because It's just an example and javascript understands code without them for the most part, but semicolons can help avoid mistakes.
Accessing elements using a[index] can sometimes cause error, using a.at(index) is much better, suppose if u wanna access last element use a[a.length-1] or much more simpler way a.at(-1). Using built in methods is much easier. Love your videos.
Anyway, I didn't know that .at(-1) will access the last element which is pretty handy. It's pretty annoying when you have to write a[element.length - 1] especially when the variable name is quite long. Thanks!
what i found interesting is that the developer tools show many details about the array that you are logging to the console. that seems like something that will be useful later on
woah woah woah! Hey, how'd you do that format on save thing? I get shift+option+f, I get that you can add that to the settings.json file. But I can't get it to do that bracket separation thing. It will auto-indent and auto-separate HTML main tags, but it won't do that. FYI, I'm talking about the thing at 4:21.
Thank you for this interesting video. It looks like JS is very close to Google Sheets Scripts. Question, how much different are they? And if I learn one, how can I know the difference (in terms of commands)? Thanks again
ooh maaaan ,, iam studing arr since yesterday, and then u upload a video about it, what a coincidence lol ,, thanks for that but it would be better if its not a crash course
Always remember we must repent of our sins (sin is transgression The Law Of Yahuah The Father in Heaven. The Law are The Books: Genesis, Exodus, Leviticus, Numbers, & Deuteronomy). We must repent of our sins and Have Belief On Yahusha The Messiah. HE Died and Rose three days later so that we can be forgiven of our sins! Come to HIM🙂🙂🙂🙂🙂🙂🙂
And saying, The time is fulfilled, and the kingdom of God is at hand: repent ye, and believe the gospel. - Mark 1:15 KJV The Gospel aka the Good News Moreover, brethren, I declare unto you the gospel which I preached unto you, which also ye have received, and wherein ye stand; 2 By which also ye are saved, if ye keep in memory what I preached unto you, unless ye have believed in vain. 3 For I delivered unto you first of all that which I also received, how that Christ died for our sins according to the scriptures; 4 And that he was buried, and that he rose again the third day according to the scriptures: - 1 Corinthians 15: 1-4 KJV For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. - John 3:16 KJV That if thou shalt confess with thy mouth the Lord Jesus, and shalt believe in thine heart that God hath raised him from the dead, thou shalt be saved. 10 For with the heart man believeth unto righteousness; and with the mouth confession is made unto salvation. 11 For the scripture saith, Whosoever believeth on him shall not be ashamed. - Romans 10:9-11 KJV For whosoever shall call upon the name of the Lord shall be saved. - Romans 10:13 KJV Jesus saith unto him, I am the way, the truth, and the life: no man cometh unto the Father, but by me. - John 14:6 KJV He that believeth on the Son hath everlasting life: and he that believeth not the Son shall not see life; but the wrath of God abideth on him. - John 3:36 KJV
It's also worth noting that "array" is not one of JavaScript's "primitive" types; arrays are just objects, unlike strings, numbers, booleans, etc. If you test "typeof anArray", you get "object". Arrays are just objects with numbers as their keys, and some cool methods (and one property).
If we "dissect" the array ["A", "B", "C", "D"], it's basically this object -- the keys 0 to 3 and length (the methods are hidden in its prototype):
( { 0: "A", 1: "B", 2: "C", 3: "D", length: 4 } )[2] // "C"
The bracket notation you use to access array elements is also just an object thing - " person.name " can be written as " person["name"] ", for example. This bracket notation can be used instead of dot notation when you want to access an object property with a key that isn't a valid JavaScript identifer - in the case of arrays, a key starting with a number - or when you want to access a property on an object unknown until runtime.
Dude, nearly anything in JS is an object.
It's true while a string for example is considered a primitive type, but you can access all of its methods inherited from the String.prototype as if it were an object
try "str".length
It has object properties so we deal with it as an object.
@@talleyrand9530 But it's still not technically an object; it's just coerced to one behind the scenes when you read its properties. But your point that "nearly anything in JS is an object" should really be "everything" -- it's an object-oriented language after all. Object or not, though, the main point on primitives is that they can't be mutated.
this is why i came, thanks for clarifying
@@stanleybarbara6448 It wasn't the most beginner-friendly comment, admittedly, but you're welcome.
This perfectly explains why arrays are considered objects. None of the courses I've read actually explained this, so thank you.
some more crash couse ideas:
1. Typescript
2. Web 3.0/ blockchain
3. Your Hairstyle
Explain to me how these things are necessary
@@LexxGee1234 Your sense of humor is really good
@@godprozee thanks 👍
Also, always use semicolons. He's not using any here because It's just an example and javascript understands code without them for the most part, but semicolons can help avoid mistakes.
A simple tutorial at this point, but a welcome one.
Thanks Kyle!
I'm a new subscriber and I'm really loving these short but informational courses. Thank you for this Kyle.
Same
🔥🔥🔥 array methods next...
Accessing elements using a[index] can sometimes cause error, using a.at(index) is much better, suppose if u wanna access last element use a[a.length-1] or much more simpler way a.at(-1). Using built in methods is much easier.
Love your videos.
Could you elaborate how exactly it can cause error? I've never encountered one. At most, it only gives a wrong element which is probably my own fault.
Anyway, I didn't know that .at(-1) will access the last element which is pretty handy. It's pretty annoying when you have to write a[element.length - 1] especially when the variable name is quite long. Thanks!
Actually, I just remembered that .at is a new feature so that explains why I never touch it before.
.at() is not supported by IE
@@paymankhayree8552 I think nobody cares about IE anymore.
what i found interesting is that the developer tools show many details about the array that you are logging to the console. that seems like something that will be useful later on
Thanks so much Kyle you're awesome
perfect! i was just learning arrays!
Multidimensional arrays, impressive.
Heh, it was nice to see one of these videos where I already understood everything, 😄
Great Arrays crash course thx from SriLanka
woah woah woah! Hey, how'd you do that format on save thing? I get shift+option+f, I get that you can add that to the settings.json file. But I can't get it to do that bracket separation thing. It will auto-indent and auto-separate HTML main tags, but it won't do that.
FYI, I'm talking about the thing at 4:21.
You really do simplify the web Thank you
Thanks so much, awesome video!
Thanks for a quick reminder. Your videos are really helpful and explaination is very clear.
Thank you for short but informational course
Thanks!
u r my hero fr
That’s exactly what I need to learn recently
Well explained. Thank you!
np nigga
Thank you for you video. It is amazing. However, I wondering another thing: Which app use to show your face on the right of the screen in a circle?
Any video editing software lol
Thank you so much for this....it came at the right time
This is amazing!! thank you !
It's very clear. Arrays in 6mins.. can't believe it.
Hello to TOP students. we are together into this.
crazy how there are so few comments the more I progress.
Kyle got so excited about array's he hit the mic
Thank you for your efforts! 👏
thanks Kyle!!!
I am surprised to not find a single Odin project comment
there plenty of them
Thank you for this interesting video.
It looks like JS is very close to Google Sheets Scripts.
Question, how much different are they? And if I learn one, how can I know the difference (in terms of commands)?
Thanks again
Perfect timing
Thank you for your work!
ooh maaaan ,, iam studing arr since yesterday, and then u upload a video about it, what a coincidence lol ,,
thanks for that but it would be better if its not a crash course
How do you refresh page without click on "reload" in browser?
It's a vscode extension called live server
Ctrl + r
thanks my friend !
Hello sir, do you a js and dom cheat sheets by chance?
Why I can't make any of my web pages even after learning html css and javascript
Whenever I try to write codes nothing comes in my mind
Try to recreate a website, start with appearance (html css) and then emulate functionality in JS
I really wish someone made a video on creating command palette on a website like vscode from scratch. I really hope You will make one.
that's not an easiest thing to do you know
Are the JS arrays the same as Python lists?
The equivalent, at least 🤷
how can you add a single item to an empty array each time without replacing those that are already in the array ....
Kyle got a sick Jackson in the background bet he shreds
Thank you for this
Good contents!
Please do a video on all loops example foreach, forin etc
Thanks man
What do you use to have it run live and update in the browser as you save the file?
It a live exstention server in visual studio code
@Obes Studios yes I think it is
Thanks mate , you making my JS journey smoooooooth.
How is your first year as a software engineer.
Just started any tips
@@praisemark6971 Yep!
how do you type [ ] on a Mac ?
Why did I watch this video all the way through? Monke see WDS video... monke click. Neuron activation.
I like this guy
It really help
Dude sounds like Fireship at 1.25x speed
Pls share link of full video
Just perfect
and short
If you learn how arrays methods work you have learned a lot.
I'm a js noob ... hence don't understand why there is no semicolon at the end of each line?
because its not a separated block of code
@@EL_WAFI_CHERKAOUI tnx 🙏
@Web Dev Simplified @Kyle - Please please please! Make some tutorials about React and NodeJS SEO optimization! To me it's a really mess!
Will we ever see Kyle playing a metallica song on this guitar?
nice
2:00
**laughs in Matlab**
👍
First
Hi bro
Nice videos
മലയാളി
ಕನ್ನಡಿಗಾಸ್
No legends?
:(
Ngl at first i got a bit confused at the end of the video
Expecting Full react course and Javascript course for free❤️❤️❤️
No, They're worth paying for. I bought both his JS courses and about to buy his React course.
@@Binyamin1444 I am from India. When we convert to dollers to rupees, it costs heavy.
Hi Kyle - please would you consider doing Python videos? Thank you for your content.
Always remember we must repent of our sins (sin is transgression The Law Of Yahuah The Father in Heaven. The Law are The Books: Genesis, Exodus, Leviticus, Numbers, & Deuteronomy). We must repent of our sins and Have Belief On Yahusha The Messiah. HE Died and Rose three days later so that we can be forgiven of our sins!
Come to HIM🙂🙂🙂🙂🙂🙂🙂
Second
is that all?? lol
Nope 😃 There's a whole rabbit hole of array methods.
@@L-8 yeah i know that i just thought that i could learn something new for myself
And saying, The time is fulfilled, and the kingdom of God is at hand: repent ye, and believe the gospel.
- Mark 1:15 KJV
The Gospel aka the Good News
Moreover, brethren, I declare unto you the gospel which I preached unto you, which also ye have received, and wherein ye stand; 2 By which also ye are saved, if ye keep in memory what I preached unto you, unless ye have believed in vain. 3 For I delivered unto you first of all that which I also received, how that Christ died for our sins according to the scriptures; 4 And that he was buried, and that he rose again the third day according to the scriptures:
- 1 Corinthians 15: 1-4 KJV
For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
- John 3:16 KJV
That if thou shalt confess with thy mouth the Lord Jesus, and shalt believe in thine heart that God hath raised him from the dead, thou shalt be saved. 10 For with the heart man believeth unto righteousness; and with the mouth confession is made unto salvation. 11 For the scripture saith, Whosoever believeth on him shall not be ashamed.
- Romans 10:9-11 KJV
For whosoever shall call upon the name of the Lord shall be saved.
- Romans 10:13 KJV
Jesus saith unto him, I am the way, the truth, and the life: no man cometh unto the Father, but by me.
- John 14:6 KJV
He that believeth on the Son hath everlasting life: and he that believeth not the Son shall not see life; but the wrath of God abideth on him.
- John 3:36 KJV
Coments.push("I am comming from Odin Project");
thank you mate
First
Second