The function takes those arguments and assigned their value to it's parameters (still like bash and a bash script). The function keeps them in the same order (kinda like bash script does with $1 and $2).
So arr gets automatically defined as the first argumentand item is defined at the second argument. In the above code it's the same as if it said
var arr = testArr; //The first argument and the first parameter.var item = 1;//The second argument and the first parameter.
Jonathan Herman
@lantech19446
sorry had to run out real fast to take my wife to work 2hrs early
Lily Romano
@Lilyheart
No worries!
Jonathan Herman
@lantech19446
ok that makes way more sense
Lily Romano
@Lilyheart
I’m glad! It’s a bit tricksey and I had to take a step back the first time I saw that concept.
Jonathan Herman
@lantech19446
I still think I need to finish the JS videos too because there's like no explanation to speak of but at least i'm on 200 finally lol
Lily Romano
@Lilyheart
Yay 200! Back to videos! I’ve gone back to my udemy videos as well.
Jonathan Herman
@lantech19446
it's just so hard to listen to this guy lol
Lily Romano
@Lilyheart
Maybe try Khan academy’s lessons? I think it was @dewhiz that recommened it but I can’t be sure. I’ve done some of the math lessons & videos there.
Jonathan Herman
@lantech19446
that's one of the free ones right?
Lily Romano
@Lilyheart
Yup yup!
Jonathan Herman
@lantech19446
nice, I think I'll go sign up for it I can't stand ben stein much longer
Lily Romano
@Lilyheart
:laughing:
Jonathan Herman
@lantech19446
I wish I could upload my own avatar lol
Lily Romano
@Lilyheart
On KA? Yeah. But I kind came to like my little leaf dude and watching him grow up.
Jonathan Herman
@lantech19446
I didn't realize they grew in that moment I was just thinking because in Hinduism we call the different forms of Krishna avatars lol
I wonder which JS course i should take
Jonathan Herman
@lantech19446
@Lilyheart any opinions?
Lily Romano
@Lilyheart
Lemme peek
Intro to JS
Jonathan Herman
@lantech19446
ok, I was thrown off by the fact that it was geared towards like drawing and didn't know what processingJS is.
I might get in on this, Rob asked me about doing this with him a day or two ago. Maybe by then I'll be able to do JS a little better and make something cool
_
Lily Romano
@Lilyheart
You can use as little or as much JS as you want!
Jonathan Herman
@lantech19446
yea but I feel like it would be the best challenge and learning exercise for me right now
@davidjcastner@Alexander-Huh type this in the java console java.lang.System.out.println(Array(16).join('wat' - 1) + ' Batman!’)
Robert Maylie
@rmaylie9560
Hey all!
@Lilyheart howd the meetup go? i saw the internet was a little better this time around
Lily Romano
@Lilyheart
It was amazeballs
@vidman22_twitter@dcpking_twitter@davidjcastner@Alexander-Huh@angelinasimms and three others (if my math is right here - Kevin, Rich and Johan) all came together for an incredible meeting. We nearly filled the room. Nine people total
Robert Maylie
@rmaylie9560
Wow thats great, what did you guys cover?
are kevin rich and johan of monco descent?
MCCC
Lily Romano
@Lilyheart
None of the above!
All 5 new people came from seeing the post on Meetup.
I even met a fellow pebble watch user! Only second person I've seen "in the wild" @vidman22_twitter !
Robert Maylie
@rmaylie9560
hahaha in its native habitat...
Lily Romano
@Lilyheart
I'll let others chime in about what was covered as I spend most of the time going over MontCode and getting people set up with FreeCodeCamp.
Robert Maylie
@rmaylie9560
yay! new faces!!
Lily Romano
@Lilyheart
More new than not new!
If you would have come it would have tied!
Robert Maylie
@rmaylie9560
I know, i wanted to come. i was bummed i missed it. The graduation was kind of lame.
long winded speeches and an endless list of names in alphabetical order
Robert Maylie
@rmaylie9560
So it took me an hour to learn this little tid bit... Replace(); does not effect a string directly. it returns a copy and a variable is needed... (facepalm)