## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
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)
Lily Romano
@Lilyheart
Ugh, that trips me up sometimes too. I did what you did. Now when something doesn't work I check to see if it's like that first thing. Harsh lesson to learn.
Robert Maylie
@rmaylie9560
It's funny, the times that I debug is when I learn the most. It makes you such about every nuance about the methods you're using and the stress seems to burn the information deep into your memory.
Search
Not such, that doesn't make any sense
David Castner
@davidjcastner

@rmaylie9560 yea js has its annoyances, like if you you want to add an item to an array you don't need to assign it, but it you concat two lists you do, get me everytime

var myArray = [1, 2, 3];
var item;
item  =  4;
myArray.push(item); //works
item = [5, 6, 7];
myArray.concat(item): //doesn't work
myArray = myArray.concat(item); // have to do this instead

I have wasted many hours at work over this

Lily Romano
@Lilyheart
Imma go to bed. None of it makes sense right now!
Robert Maylie
@rmaylie9560
ðŸ˜•
Lily Romano
@Lilyheart
CONCAT I HATES! EVERYTIME! E V E R Y T I M E I D O I T W R O N G
Robert Maylie
@rmaylie9560
Lol
Lily Romano
@Lilyheart
makes me doom levels of angry :rage2:
David Castner
@davidjcastner
haha me too :rage:
Robert Maylie
@rmaylie9560
Yea, that's a bug waiting to happen
i wish I could bookmark that
in the convo...
David Castner
@davidjcastner
I'll put it in a gist
Robert Maylie
@rmaylie9560
ty, hopefully I'll just remember but it's doubtful. I have a memory similair to a goldfish.
David Castner
@davidjcastner
Lily Romano
@Lilyheart
apparently you can fork gists! FORKED THAT PUPPY UNTIL IT WAS DONE
David Castner
@davidjcastner
GitHub :heart:
Lily Romano
@Lilyheart
Never a truer statement was made dear. :heartpulse: for all the Git.
Robert Maylie
@rmaylie9560
ðŸ˜‚ the name got me
David Castner
@davidjcastner
There are reasons for why javascript works this way, but this has caused me much pain so I won't defend it right now
Robert Maylie
@rmaylie9560
hahahaha :laughing:
Jonathan Herman
@lantech19446
just getting online for the day and reading what I missed, @rmaylie9560 the whole thing with replace() I wonder if this holds true with reference types also?
Robert Maylie
@rmaylie9560
Like a a=b kinda thing?
Jonathan Herman
@lantech19446
no like strings are normally primitives so they would copy their content and then modify it but the assigned value doesn't change, like as soon as you finish that function it goes back to whatever it was where reference types can constantly change. If you're doing replace on a primitive and console.log it immediately you might get an output with the new value but as soon as that function is completed it would resume it's original value where with a reference replace() might do exactly what you want it too
Robert Maylie
@rmaylie9560
Hmm, I'm going to have to read up on that one later. Sounds interesting. Can you show me a quick example and comment the code?
I might be able to grasp the concept better.
Jonathan Herman
@lantech19446
trying to work one up, new concept for me too from sitepoints lessons
Robert Maylie
@rmaylie9560
Nice! How do you like the lessons? Can you share the link?
Thanks Jon
Jonathan Herman
@lantech19446
var myPrimitive = 5; var example = myPrimitive; console.log (example); example= myPrimitive + 5; console.log(example); console.log(myPrimitive);
this is the guy who's like Ben Stein and I started Khan's as well not sure which I like better yet
Robert Maylie
@rmaylie9560
Ahh, ok I see it now. Is either covering any cool projects?
Jonathan Herman
@lantech19446
I've barely gotten into khan, I did a couple hours in sitepoint but it's very dry, I don't know that there's any projects associated at all
Robert Maylie
@rmaylie9560
You check out the new boston yet?
bucky's pretty funny.
David Castner
@davidjcastner
Complete bs, you have to pay for crappy internet in flight
if they charge for it, should make it fast at least
Robert Maylie
@rmaylie9560
How much did they get ya for?
David Castner
@davidjcastner
\$19.95 for the flight (5hours)