Комментарии:
nice video techsith !!!! so even ary is const we can still modify its value?
ОтветитьHi learned new thing is HERE:
const ArrofObj = [{empid: 101, batch: 56}, {empid: 102, batch: 65}];
console.log(ArrofObj.length) // it has length property. thanks
It is strange, on my machine filling an object with 100000 properties takes twice as much time as it takes to fill an array:
a: 32.9677734375ms
o: 67.71435546875ms
[ -1 ] will not be index because it will be converted into string and used as key, Correct me If I am wrong !!!
Ответитьgreat video, thanks!
which editor are you using there?
Hi Sir, As far as I know array does sequential memory allocation where as object will be dynamic memory allocation. Because of sequential memory allocation seeking of data is always faster in array. But it can create out of memory exception some times. Looks like due to this In your example also array was faster as compare to object
ОтветитьPlease provide html accessibility tutorial
ОтветитьYou can't push splice pop if you create using object. Whereas, Array has many built-in prototype methods. Object is object. And, Array is a object with many methods and we can addon if we want or use Lodash. Very good stuff! You are Gold.
ОтветитьSuper
ОтветитьAwesome 👍
ОтветитьThanks, that was nice. Can you please make a video on memorization in JavaScript?
ОтветитьHi Ahmed. Don't know where to post this. We have several htmls with individual js. We have mostly event handlers and some objects and functions. We want to keep everything clean and design in a good way whole code. Any good books for this. Particularly O'Reilly what all to take care in production in keeping these files and code as per best practices.
ОтветитьWhy is it possible to modify const arrays? I always had that doubt.
ОтветитьReally it was a great video... Thank you.. Sir. Keep it up
ОтветитьThat was a new info :)
Ответитьmy theory is that JavaScript has no Arrays what we Call Array is actually Object which we can Implement too but js language provide us special Literal Syntax "[ ]" like it provide us for objects "{ }" actually i have already created my version of array in JavaScript too but not with all features Off-course Default Array("which is Special Object") have tooo many functions but my array can perform basic functionality.
ОтветитьI'd love to learn how JS is modeled in C
Ответитьvery nice sir...
Ответитьthanks a lot,
I heard "don't use new Array or new Object in javascript"; for the "new Array" i know it cant be iterated. when we should use each one, for ex: [], new Array(), Array()
That was a good explanation! 👍👍👍👍👍👍👍👍👍👍👍
ОтветитьHey thanks , I always look forward to your videos . However I suffer from motivation. Can you help me with this.
Ответить