Hey Beau, this is a great video! Thank You! I would suggest for future videos, comment out the previous calls so its easier to follow. Its much easier to follow when you're returning/logging just one answer instead of everything prior.
Beau, you say “remember. Use your code for good.” Can you share your goodest (not a word) code that you’ve created? :D Thanks for these videos as well.
Can I pass an array as third argument of splice method? e.g. var arr = ["a","b","c"]; var arr2 = ["f","i"]; arr.splice(2,1,arr2); And then arr would return ["a","f","i","c"]?
You can pass an array as the third argument. However, it would return ["a", "b", ["f", "i"]]. There would be an array in the array. The easiest way to test these things if you are using Google Chrome is to open the JavaScript console (View > Developer > JavaScript Console) and just type in the commands to see what happens. -Beau Carnes
I want to get into software development. As I've noticed, understandings how arrays work is key to programming. It would be good for a beginner to go back to basic math to understand them, and start applying into programing.
it's a bit alarming that some of these methods are modifying data (possibly w/out the programmer knowing) ... how do I know which methods will mod the data?... I thought data was to be immutable... e.g. input > function > output... it's supposed to be a one way street, right? How do I make sure that my functions are not modifying my orig. data?
You just have to memorize which methods modify the array and which methods don't. These do NOT modify original array: concat, join, slice. These DO modfify: push, pop, reverse, sort, shift, unshift, and splice.
Hey, great tutorial! I'm having HUGE HEADACHE trying to solve this assignment. In an online made up store, the following are product SKU names, the quantity of each item ordered, and the location of the item in the warehouse. It needs to output the product SKU name and quantity only. INPUT: HL-OH-F1504P-CH-AM (1) 2EX2-4 / 2G-7 HID-LED-9004-LB (2) 2M-2_5FMK (1) 2ND FL OUTPUT: HL-OH-F1504P-CH-AM (1) HID-LED-9004-LB (2) FMK (1) I'm so lost as how to delete all the fluff in between the product SKU's!!! Can anyone help?
That is a feature of codepen.io which I use in my videos. If you click the link in the descpription for the code, it will open codepen.io with the console open. If you start a new 'pen' on CodePen, you have to click the 'console' button at the bottom to open the console. -Beau Carnes
Thanks beau! I love how you go straight to the fucking point and not talk for 30+ minutes. Makes it a lot easier to learn.
Aww 7 years already Beau is amazing!!!
what a great video! this is basically hours worth of info in
Hey Beau, this is a great video! Thank You! I would suggest for future videos, comment out the previous calls so its easier to follow. Its much easier to follow when you're returning/logging just one answer instead of everything prior.
definitely this
Use your code for good. You are a hero Beau! Thank you for your time and videos (=
I love that typing sound 😮❤
Great job, thanks a lot!
quick, but all that I serarched for. Thanks
Still works in 2024
Is that a question or a answer??
@@Shahu-Shah this video still helps. a great video.
Great video!
Beau, you say “remember. Use your code for good.” Can you share your goodest (not a word) code that you’ve created? :D
Thanks for these videos as well.
Can I pass an array as third argument of splice method?
e.g.
var arr = ["a","b","c"];
var arr2 = ["f","i"];
arr.splice(2,1,arr2);
And then arr would return ["a","f","i","c"]?
You can pass an array as the third argument. However, it would return ["a", "b", ["f", "i"]]. There would be an array in the array. The easiest way to test these things if you are using Google Chrome is to open the JavaScript console (View > Developer > JavaScript Console) and just type in the commands to see what happens. -Beau Carnes
I want to get into software development.
As I've noticed, understandings how arrays work is key to programming.
It would be good for a beginner to go back to basic math to understand them, and start applying into programing.
Excellent !
it's a bit alarming that some of these methods are modifying data (possibly w/out the programmer knowing) ... how do I know which methods will mod the data?... I thought data was to be immutable... e.g. input > function > output... it's supposed to be a one way street, right? How do I make sure that my functions are not modifying my orig. data?
You just have to memorize which methods modify the array and which methods don't. These do NOT modify original array: concat, join, slice. These DO modfify: push, pop, reverse, sort, shift, unshift, and splice.
take a look at the documentation before using any method that you haven't used before
so how to use this playlist? btw thank you
how do you get the sublime console?
It's codepen.io
can i use.. document.write(arr); instead of console.log(arr);????????
lol too late to answer, but yes
1. document.write() will write to html page
2. console.log() will write to console of the browser.
Hey, great tutorial! I'm having HUGE HEADACHE trying to solve this assignment. In an online made up store, the following are product SKU names, the quantity of each item ordered, and the location of the item in the warehouse. It needs to output the product SKU name and quantity only.
INPUT:
HL-OH-F1504P-CH-AM (1) 2EX2-4 / 2G-7 HID-LED-9004-LB (2) 2M-2_5FMK (1) 2ND FL
OUTPUT:
HL-OH-F1504P-CH-AM (1)
HID-LED-9004-LB (2)
FMK (1)
I'm so lost as how to delete all the fluff in between the product SKU's!!! Can anyone help?
Nice
Beau is God of Coding same like Zeus is God of Thunder
Which JS console plugin are you using? I would love to just be able to run javascript inside of VS code like that
Looks like CodePen.
Hi, a camper here.Can you tell me what tool are you using to console out? Is it a web? An editor? Thanx!
That is a feature of codepen.io which I use in my videos. If you click the link in the descpription for the code, it will open codepen.io with the console open. If you start a new 'pen' on CodePen, you have to click the 'console' button at the bottom to open the console. -Beau Carnes
Gosh!, didn't know that, thanks!
Big fan