13: What are JavaScript Properties and Methods | Properties and Methods | JavaScript Tutorial

  Рет қаралды 81,845

Dani Krossing

Dani Krossing

Күн бұрын

Пікірлер: 85
@ShinjuiroX
@ShinjuiroX 4 жыл бұрын
I was learning JS using some bootcamp tutorial videos and had to finish assingments. Unfortunately those videos provided much less info than you need to know for completing their assignments and it was a real struggle to complete them with lack of information. Your way of explaining stuff is truly awesome. I understand these concepts much better now thanks to your tutorial. You explain everything really detailed. You have a talent for teaching. Thanks for these tutorial videos. Cheers!
@collinsadhola8278
@collinsadhola8278 4 жыл бұрын
i agree totally.
@xXxKingjonxXx
@xXxKingjonxXx 2 жыл бұрын
was it colt's complete udemy bootcamp?
@zalodias123
@zalodias123 4 жыл бұрын
Never thought about methods being built-in functions! Interesting perspective.
@MadAustinite
@MadAustinite 3 жыл бұрын
I really like this take on it as well. Helps me understand methods more and how they’re different from functions.
@WanderingNasi
@WanderingNasi 3 жыл бұрын
Fun fact: the spacing or capitalization of the second word, like the ones used in methods, is called "Camel Casing" since the camel's hump is taller than its head.
@none1307
@none1307 3 жыл бұрын
thx for information
@souguess4637
@souguess4637 2 жыл бұрын
Thank you my friend, it's very helpful.
@toobaadil6497
@toobaadil6497 5 жыл бұрын
You are really great! I love the way you teach!
@BM4Dayz69
@BM4Dayz69 2 жыл бұрын
Just wanted to thank you for explaining it for a newbie
@urmo345
@urmo345 3 жыл бұрын
deserves KUDOS someone finally explaining methods and objects using code, without cats or dogs
@trivedidhaval9444
@trivedidhaval9444 6 жыл бұрын
Love your videos.. These videos helps me alot.. Thank you
@jonathancarter2347
@jonathancarter2347 5 жыл бұрын
I thumbs up every vid and will suggest you to other coders I come across. Great stuff!
@hananfadah
@hananfadah 11 ай бұрын
Thanks a lot! That was helpful spotting the difference!
@duvanxo3033
@duvanxo3033 2 жыл бұрын
Very helpful video. Thank you so much :)
@lucyzteinn
@lucyzteinn 5 жыл бұрын
this lesson is just perfect
@ciceroaraujo5183
@ciceroaraujo5183 4 жыл бұрын
No, no. It's you that are perfect
@calibr0636
@calibr0636 5 жыл бұрын
your videos are perfect for recaps
@callum6486
@callum6486 4 жыл бұрын
As soon as i saw the thumbnail i though "Elon Musk is going to teach me Properties and Methods"
@kp974
@kp974 3 жыл бұрын
Great explanation!! thank you!:-) now I catch the differences
@nellichoo
@nellichoo 4 жыл бұрын
i love u!! thanks for explaining properly what a method is
@bitmammothOG
@bitmammothOG 6 жыл бұрын
Yes he's back! :D
@erencool2367
@erencool2367 4 жыл бұрын
Back again
@karstenlehmann13595
@karstenlehmann13595 3 жыл бұрын
Great. Thanks for the lists, too!
@thebeardedcoder
@thebeardedcoder 6 жыл бұрын
Excellent. All of your lessons. That dog's breathing though. LoL
@guyfinkelshtein8868
@guyfinkelshtein8868 4 жыл бұрын
Huge props from Israel, great great channel !!
@zulfiqar7967
@zulfiqar7967 6 жыл бұрын
We need the complete Javascript and Jquery tutorials
@2vagner
@2vagner 4 жыл бұрын
Excellent
@siten1
@siten1 Жыл бұрын
How can indexOf not also be defined as a property if its "job" is to tell you the position of where certain characters are just how .length also just tells you the length of the variable. Are they not just, both essentially, telling you something about our variable? Thank you!
@aishahcarana-masiroh6691
@aishahcarana-masiroh6691 11 ай бұрын
I’ll do my best to explain. The difference between methods and properties in JavaScript boil down to two simple ideas: methods are dynamic, properties are static. I’ll expand. Methods perform operations / actions on values, hence the term ‘dynamic’. In the case of indexOf() - it is not merely telling you the position of a character, it actively scans and searches the string of characters given the arguments its fed: indexOf(‘of’), with ‘of’ being the argument given, and returns the position of the string. This argument (‘of’) can be changed to a different word to find a different position in the string. It’s interactive and changing, accepting different inputs and performing unique scans / searches each time the argument is changed. On the other hand, properties are static - meaning they do not perform actions or operations. Properties, as its name suggests, can be viewed as the inherent characteristics, features, or attributes of an object. Properties store or represent information of an object. Properties give us access to information, rather than perform computational actions that return a result. In the case of .length, the information it represents (provides access to) is the length of characters: a characteristic of the string. Hope this helps.
@siten1
@siten1 11 ай бұрын
@@aishahcarana-masiroh6691 Thank you for the explanation but length is still performing the action of counting how many characters it has in one way or another, no? I was thinking the same analogy but thinking about finding the length of something is also an "action" broke it. How I ended up viewing it, which has not broken yet, is that Properties : Look at the element as a whole, while Methods : Can look at the individual elements of that element Hopefully I make sense too lol
@moseleenone7252
@moseleenone7252 3 жыл бұрын
good tutorial!, i realise the programming languages use similar methods, just in different syntax, easy to understand after learning python
@damarissaavedra2904
@damarissaavedra2904 3 ай бұрын
Loved it, I was stuck in this subject since yesterday and your video made it super easy, FYI your links on the video are expired
@collinsadhola8278
@collinsadhola8278 4 жыл бұрын
Great stuff man!
@reckion2009
@reckion2009 4 жыл бұрын
great explanation. thanks!
@alexanderbonisch5889
@alexanderbonisch5889 6 жыл бұрын
hyped for the next episodes ! great work, it helped me a lot! :)
@criaturaimaginaria5230
@criaturaimaginaria5230 3 жыл бұрын
really helpful, thanks!
@gladstonross12
@gladstonross12 6 жыл бұрын
hope you have a Vue series soon if u use that framework. love all your vids
@mexcalgt
@mexcalgt 4 жыл бұрын
Again.. Thanks a lot brother!
@mauricemorty4687
@mauricemorty4687 2 жыл бұрын
But Daniel, i don't understand i've thought a lot about it and i just can't figured out. How is "juice" in the 5th position if there was 4 item inserted. i've try it my self and i've got same result (5). but the length property still says 4. why is that? thank you for the course it is very good
@Dani_Krossing
@Dani_Krossing 2 жыл бұрын
It is because we always start counting at 0 in programming. 🙂 So instead of 1, 2, 3, 4.... It's 0, 1, 2, 3. We call these numbers the "index", which is kinda like the "position". The reason we get "4" as the result when we use .length, is because it is counting the number of entries, and not the index. Hope this helped. 🙂
@mauricemorty4687
@mauricemorty4687 2 жыл бұрын
@@Dani_Krossing thanks Dani but i'm afraid i still don't quite understand why isn't "juice" at the 4th position instead of 5th. you pushed in an item, this item is meant to be st third podition regarding index but the length shoun't be 4?. i'm quite aware that i'm the problem here. omg i just can't figure out what is that i'm missing. 🤔 I appreciate your response Daniel, i'll study harder
@adelaionce
@adelaionce 3 жыл бұрын
Thank you so much
@free_thinker4958
@free_thinker4958 4 жыл бұрын
Thank u so much for this great videos ❤️
@argenisaguilar9045
@argenisaguilar9045 3 жыл бұрын
Thanks a million
@tnetroP
@tnetroP 5 жыл бұрын
Pop and push were stack operations in Assembler :)
@patrykkedzierski9719
@patrykkedzierski9719 5 жыл бұрын
Good Job
@lagyt5248
@lagyt5248 3 жыл бұрын
THANKS
@akshaysharma1145
@akshaysharma1145 4 жыл бұрын
Thanks
@gatts6727
@gatts6727 6 жыл бұрын
Hey Daniel! Tks for the new video :) Can u share the link for all the properties and methods?
@Dani_Krossing
@Dani_Krossing 6 жыл бұрын
Sorry forgot about that :) will add it now
@ashishaventador6142
@ashishaventador6142 5 жыл бұрын
How come the precision index of juice showed 5 ? Should have been 3 isn’t it ? Please can you explain me the last part
@saputodude
@saputodude 5 жыл бұрын
I thought the same thing. If you just do items.push("Juice") followed by console.log(items.push()); it will give you 4 indices ["Bottle, 4, true, "Juice"]. If you include ("Juice") within the console to push that item, it seems like it pushes it twice, giving you 5 indices instead of 4. I'm new to this, so that's what it seems like to me....
@ashishaventador6142
@ashishaventador6142 5 жыл бұрын
I also thought the same, gave the same explanation to myself and continued with the course.
@Alluriah
@Alluriah 5 жыл бұрын
"The push() method adds new items to the end of an array, and returns the new length." so when he wrote items.push("Juice") it added "Juice" and returned the new length which is 4, same would have happened if he wrote instead console.log(items.push("Juice")), would have returned 4, however, he wrote console.log(items.push("Juice")) after items.push("Juice")which means juice was added once and returned array length 4 and then again and returned length 5.
@erencool2367
@erencool2367 4 жыл бұрын
u deserve more viewers and subscscscribersoto THANks for epicccccccccccccc Teaching ;)
@ellen6654
@ellen6654 2 жыл бұрын
Very helpful! Just wondering why the Push one at end showed up as 5 for length, I thought it’d be 3?
@chinwenduE
@chinwenduE Жыл бұрын
Me too
@soukainacharef8411
@soukainacharef8411 3 жыл бұрын
Niiice Thank U
@linnealinberg251
@linnealinberg251 4 жыл бұрын
var item = ["Bottle", 4, true]; items.push("Juice"); console.log(item.push("Juice")); could someone please let me know why will this result in 5? How is that counted?
@meliodass6951
@meliodass6951 4 жыл бұрын
by adding juice inside console log he actually added another "juice" so total amount to 5 indexes , if you were to delete 2nd one then it will count as 4; hope u understand.
@MattPPrice
@MattPPrice 4 жыл бұрын
@@meliodass6951 Thank you, I also didn't understand the '5'.
@RatneshKumar-xv3gr
@RatneshKumar-xv3gr 2 жыл бұрын
5 is length of the list
@RatneshKumar-xv3gr
@RatneshKumar-xv3gr 2 жыл бұрын
While indexing it count form 0
@math260879
@math260879 4 жыл бұрын
*Dani Krossing* where can I finde your KZbin videos about methods and more in JavaScript ? some one send me the link please
@MSEAMP3
@MSEAMP3 6 жыл бұрын
Thanks for the tutorial! Around 1:45 in this video you are defining item.length and I see that in addition to predictive text, a summary of the legend property displays in your editor. Is this a built in function of Atom or some extension to display these summary/description of the property? This would be very helpful for learning the purpose of each property, etc. Any advice on how to enable/where to find this? Thanks!
@GymMotivationMusicTM
@GymMotivationMusicTM 4 жыл бұрын
It is just Atom's property. Not an extension.
@aleksandraSwedenVlog
@aleksandraSwedenVlog 5 жыл бұрын
thanks a lot, it is for kettles like me
@kerengan-or5418
@kerengan-or5418 6 жыл бұрын
Great video! Thank you
@Sigmaop2278
@Sigmaop2278 6 жыл бұрын
sir how to make full website in html and css please post one video of full website making
@lumennganje2721
@lumennganje2721 5 жыл бұрын
how come this channel has only 155k subscribers. Should have more. In fact it will have 3M by the end of the year in Jesus' name Amen.
@superreverbfreak
@superreverbfreak 5 жыл бұрын
Lumen Nganje you honestly think that works? 🙄
@raiserjs
@raiserjs 6 жыл бұрын
is let and var is just the same?
@Dani_Krossing
@Dani_Krossing 6 жыл бұрын
I have an episode earlier in this course where I cover let and var :)
@raiserjs
@raiserjs 6 жыл бұрын
mmtuts thank you I will watch later. ❤️
@eti313
@eti313 5 жыл бұрын
@@raiserjs I think he meant this one (not in this playlist) kzbin.info/www/bejne/qZrUc4Gmq6qVe7M
@Racools
@Racools 4 жыл бұрын
this is just like c#
@naziyakhan4096
@naziyakhan4096 3 жыл бұрын
When i entered item.length ["Botle of water"] 👆 For this instead of blah blah i got 1 Then i entered console.log(item.indexOf("of")); Instead of 7 i got -1 And when is did console.log(item.replace("water", "juice")); 🤥its telling item.replace is not a function
@NERO-ez1mn
@NERO-ez1mn 6 жыл бұрын
1 like for the list
@crazybela2101
@crazybela2101 5 жыл бұрын
We have one teacher that teach us java and he is idiot.. from then i dont want to do it but from when i discovered you i want to make everything
@bhabanishankardash1443
@bhabanishankardash1443 6 жыл бұрын
Please slow your English when you speaking sir. Very difficult to understand. Very first you speaking. I am a beginner and love to watch yr each video but yr English is very much first. Hope you understand my request.
@betzalelgoldman779
@betzalelgoldman779 6 жыл бұрын
Just in case you didn't know, you can slow down a youtube video in the youtube settings. works pretty well.
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 63 МЛН
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 33 МЛН
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 8 МЛН
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 62 МЛН
Exercises: Objects - Javascript In Depth
50:54
Tech with Nader
Рет қаралды 3,8 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,2 МЛН
What are libraries and frameworks?
12:59
Codecademy
Рет қаралды 113 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
Should You Learn Object Oriented PHP?
13:48
Dani Krossing
Рет қаралды 11 М.
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 63 МЛН