These are chat archives for LPM42/JavaScript_Foundations_2

1st
Dec 2014
savithabj
@savithabj
Dec 01 2014 00:40
Hello
One of the quiz question (que 4) did not save my complete answer. I can only see partial answer after submission. how to update quiz?
Mel Quark
@mel-quark
Dec 01 2014 01:37
@savithabj i don't think you can change the quiz answer. go ahead and email me your answer (just for that question) and i'll grade the one you email instead =)
Jayden0306
@Jayden0306
Dec 01 2014 06:37
Hi. how can i remove the comma between the string? [ 'chirp', 'chirp', 'chrip.’ ]
savithabj
@savithabj
Dec 01 2014 06:44
Hi Jay you can use string replace method to replace ',' with space or other character.
Mel Quark
@mel-quark
Dec 01 2014 06:45
@Jayden0306 it looks like you have an array there instead of a string...
(an array of strings)
Jayden0306
@Jayden0306
Dec 01 2014 06:46
i think the split method turn the sentence1 into an array
Mel Quark
@mel-quark
Dec 01 2014 06:46
@Jayden0306 yup, it turns it into an array. if you want to turn it back into a string, you can use the join method
Jayden0306
@Jayden0306
Dec 01 2014 06:47
will the join method remove the comma?
Mel Quark
@mel-quark
Dec 01 2014 06:48
when you "join" an array, like this: [1,2].join() you get "1,2" because join uses a comma as the default separator.
however, if you pass an argument to join(<argument goes here>)
you can specify what you'd like the separator to be
so, [1,2].join("") gives "12"
(using the empty string as the separator)
[1,2].join(" ") would give "1 2"
(as another example)
Jayden0306
@Jayden0306
Dec 01 2014 06:51
ok thank you. let me try it.
[ 'More', 'food', 'please.' ]
chirp chirp chrip.
assertion failure: sentence 1 should have 3 chirps
Jayden0306
@Jayden0306
Dec 01 2014 06:56
I don’t know why it is still assertion failure
Mel Quark
@mel-quark
Dec 01 2014 06:59
email me the code at mel@codefellows.com i'll take a look
in a little bit. coffee shop is about to close.
Jayden0306
@Jayden0306
Dec 01 2014 07:01
ok
do you want me send the js file or code only?
jongmink
@jongmink
Dec 01 2014 21:02
Hi can I see details of later classes?
Stephen Schroeder
@schrode50
Dec 01 2014 21:06
Jayden you have a typo that I would suspect is the issue causing the assertion failure.
Jayden0306
@Jayden0306
Dec 01 2014 22:03
Yes. You are right! Schrode.I got it fixed