These are chat archives for FreeCodeCamp/Help

26th
Nov 2015
Hans van Riet
@hansinla
Nov 26 2015 00:00
@zach97 what do you need help with? 28 isn’t telling us much
zach97
@zach97
Nov 26 2015 00:01
how to do nomber 28
I dont get it
Lewis
@Lxwis
Nov 26 2015 00:01
@zach97 create a text field?
zach97
@zach97
Nov 26 2015 00:01
how?
I'm a nobe
Lewis
@Lxwis
Nov 26 2015 00:02
<input type="text">
zach97
@zach97
Nov 26 2015 00:03
In style
?
Lxwis thaks for helping me
Lewis
@Lxwis
Nov 26 2015 00:04
did that solve your problem? @zach97
zach97
@zach97
Nov 26 2015 00:05
<input type="text"> In style
?
rite
I'm soory
Hans van Riet
@hansinla
Nov 26 2015 00:05
@zach97 no style styles your document. all html is in body
zach97
@zach97
Nov 26 2015 00:06
wate abot the #
?
Darren
@dkrutsi
Nov 26 2015 00:07
I have added the style to the div and it wont let me pass this chalange. What do I do?
Waypoint: Give a Background Color to a Div Element
Hans van Riet
@hansinla
Nov 26 2015 00:07
@dkrutsi your all of your code please
Darren
@dkrutsi
Nov 26 2015 00:07

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
.grey-background {

background-color: grey;
}
.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>

<div class="grey-background">
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
</div>

<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality" checked> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Energetic</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>

Hans van Riet
@hansinla
Nov 26 2015 00:08
@dkrutsi change grey to gray
zach97
@zach97
Nov 26 2015 00:08

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<input type="#"#>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="http://www.freecatphotoapp.com">cat photos</a>.</p>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

help
CamperBot
@camperbot
Nov 26 2015 00:08

Hi, I'm CamperBot! I can help you in this chatroom :smile:

Basic Commands:

  • find TOPIC find all entries about topic. ex: find js
  • wiki TOPIC show contents of topic page
  • thanks @username send brownie points to another user
  • about @username shows info on that user
  • bonfire BONFIRENAME info on a bonfire

:speech_balloon: meet CamperBot in this room!

:pencil: read more about camperbot on the FCC Wiki

Darren
@dkrutsi
Nov 26 2015 00:08
loll your a legend!
Erland Lami
@Texber
Nov 26 2015 00:08
I made a class for image size that I'm trying to apply to my image

.smaller-image {width: 100px;}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<img src="https://bit.ly/fcc-relaxing-cat">

zach97
@zach97
Nov 26 2015 00:09

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<input type="#"#>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="http://www.freecatphotoapp.com">cat photos</a>.</p>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>help

Darren
@dkrutsi
Nov 26 2015 00:09
Thanks @hansinla !
CamperBot
@camperbot
Nov 26 2015 00:09
dkrutsi sends brownie points to @hansinla :sparkles: :thumbsup: :sparkles:
Erland Lami
@Texber
Nov 26 2015 00:09
where do I select this on the image?
CamperBot
@camperbot
Nov 26 2015 00:09
:star: 641 | @hansinla | http://www.freecodecamp.com/hansinla
Lewis
@Lxwis
Nov 26 2015 00:09
about @Lxwis
CamperBot
@camperbot
Nov 26 2015 00:09
:star: 170 | @lxwis | http://www.freecodecamp.com/lxwis
Hans van Riet
@hansinla
Nov 26 2015 00:09
@zach97 <input type="#"#> why the hashtags?
@Texber select what?
zach97
@zach97
Nov 26 2015 00:10
hash symbol
Erland Lami
@Texber
Nov 26 2015 00:11

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}
.smaller-image {width: 100px;}
h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<img src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

I'm trying to apply the css to the image
My smaller image selector
Hans van Riet
@hansinla
Nov 26 2015 00:11
@Texber just add class=“nameOfClass” to the <img> tag
Lewis
@Lxwis
Nov 26 2015 00:11
<img class="smaller-image" src="https://bit.ly/fcc-relaxing-cat"> @Texber
zach97
@zach97
Nov 26 2015 00:12
tele me what to do I don't get it?
Erland Lami
@Texber
Nov 26 2015 00:12
I see. Thank you.
Hans van Riet
@hansinla
Nov 26 2015 00:13
@zach97 as Lxwis showed it needs to be <input type=“text”>
Erland Lami
@Texber
Nov 26 2015 00:13
I put it there before but it wasn't working so I deleted it
I must have not written it right
zach97
@zach97
Nov 26 2015 00:13
is thate it

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<input type=“text”>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="http://www.freecatphotoapp.com">cat photos</a>.</p>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

see
Hans van Riet
@hansinla
Nov 26 2015 00:16
@zach97 The instructions tell you that the input have to below your list.
zach97
@zach97
Nov 26 2015 00:17
like this

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="http://www.freecatphotoapp.com">cat photos</a>.</p>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

<input type=“text”>

Hans van Riet
@hansinla
Nov 26 2015 00:18
@zach97 yes, but where is your list? did you delete code in waypoint 28?
zach97
@zach97
Nov 26 2015 00:18
what code?
Lewis
@Lxwis
Nov 26 2015 00:19
@hansinla it seems like he may have skipped out some waypoints
Hans van Riet
@hansinla
Nov 26 2015 00:19

@zach97

<p>Things cats love:</p>
<ul>
  <li>cat nip</li>
  <li>laser pointers</li>
  <li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
  <li>flea treatment</li>
  <li>thunder</li>
  <li>other cats</li>
</ol>

part of waypoint 28

Lewis
@Lxwis
Nov 26 2015 00:19
he should have created some unordered lists in the previous one
unless he has like you said deleted some code
about @zach97
CamperBot
@camperbot
Nov 26 2015 00:19
:warning: no user found for zach97
Hans van Riet
@hansinla
Nov 26 2015 00:20
@Lxwis I’m not logged in and this shows as the starting code
zach97
@zach97
Nov 26 2015 00:20
ware do I put? at the top?
Hans van Riet
@hansinla
Nov 26 2015 00:21
@zach97 you need to reset your code and not delete anything that FCC gives you then add the <input> field below the list
zach97
@zach97
Nov 26 2015 00:21
about Lxwis
CamperBot
@camperbot
Nov 26 2015 00:21
you need to ask about @someone!
zach97
@zach97
Nov 26 2015 00:21

<p>Things cats love:</p>

<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>

<p>Top 3 things cats hate:</p>

<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>

belo?
about @Lxwis
CamperBot
@camperbot
Nov 26 2015 00:22
:star: 170 | @lxwis | http://www.freecodecamp.com/lxwis
Hans van Riet
@hansinla
Nov 26 2015 00:23
@zach97 If you come here for help, it’s best to follow instructions from the people that try to help you.
zach97
@zach97
Nov 26 2015 00:25
I'm tring
Hans van Riet
@hansinla
Nov 26 2015 00:25
@zach97 did you reset the code?
zach97
@zach97
Nov 26 2015 00:26
geve me your' pless
Hans van Riet
@hansinla
Nov 26 2015 00:26
@zach97 That’s what I mean.
Lewis
@Lxwis
Nov 26 2015 00:26
@zach97 you're not learning if you're just going to copy someone's correct code
zach97
@zach97
Nov 26 2015 00:27
ware do I put the code that you gave me?
Lewis
@Lxwis
Nov 26 2015 00:28
@zach97 if you reset the code all you will need to do is include the code I gave you earlier as the last line and it will work
zach97
@zach97
Nov 26 2015 00:35

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<input type="text">
<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

what do I ned to do?
Lewis
@Lxwis
Nov 26 2015 00:36
have you reset the code? @zach97
zach97
@zach97
Nov 26 2015 00:36
I think so?
Lewis
@Lxwis
Nov 26 2015 00:37
@zach97 What is the name of the Waypoint?
zach97
@zach97
Nov 26 2015 00:37
Waypoint: Make Dead Links using the Hash Symbol
Lewis
@Lxwis
Nov 26 2015 00:38
That's waypoint 23 not 28 @zach97
zach97
@zach97
Nov 26 2015 00:39
it sesc 28 fore me?
Tashrik Anam
@anampartho
Nov 26 2015 00:39
Hello World again
CamperBot
@camperbot
Nov 26 2015 00:39

welcome to FreeCodeCamp @anampartho!

Hans van Riet
@hansinla
Nov 26 2015 00:39
@anampartho hi
zach97
@zach97
Nov 26 2015 00:39
well how do I do It
Lewis
@Lxwis
Nov 26 2015 00:39
@zach97 add this code <p>Click here for <a href="#">cat photos</a>.</p> below your h2 element
and remove <input type="text"> @zach97
Tashrik Anam
@anampartho
Nov 26 2015 00:40
hey @zach97
zach97
@zach97
Nov 26 2015 00:40
THANKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
YA
@anampartho
WHAT DO YOU WANT
Tashrik Anam
@anampartho
Nov 26 2015 00:42
;)
zach97
@zach97
Nov 26 2015 00:42
LOL LOL LOL LOL LOL!!!!!!!!!!!!
Tashrik Anam
@anampartho
Nov 26 2015 00:42
Nothing just HEYing around
Dave Yoon
@northwestyam
Nov 26 2015 00:42
howdy, not sure what I'm dong wrong.....

<style>
h2 {color: blue;}
</style>

<h2>CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

tests say it fails the "Create a style element" step
Hans van Riet
@hansinla
Nov 26 2015 00:42
@northwestyam which waypoint?
zach97
@zach97
Nov 26 2015 00:43
cang it to red
Dave Yoon
@northwestyam
Nov 26 2015 00:43
waypoint 9
@hansinla waypoint 9
zach97
@zach97
Nov 26 2015 00:44
chang it to red
Dave Yoon
@northwestyam
Nov 26 2015 00:44
@zach97 exercise says change h2 elements to blue?
@zach97 changing it to red made more errors
Tashrik Anam
@anampartho
Nov 26 2015 00:44

try

<style type="text" rel="stylesheet">
/code/
</style>

@northwestyam

zach97
@zach97
Nov 26 2015 00:45
do this

<style>
h2 {color: blue;}
</style>

<h2>CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

tell
Hans van Riet
@hansinla
Nov 26 2015 00:45
@northwestyam your code is correct try a reset and retype your code
zach97
@zach97
Nov 26 2015 00:45
me
what happins
Dave Yoon
@northwestyam
Nov 26 2015 00:46
@zach97 fails at "create a style element" step
@zach97 everything else passes
zach97
@zach97
Nov 26 2015 00:46
ya
Dave Yoon
@northwestyam
Nov 26 2015 00:47
@anampartho it fails the "create a style element" "your h2 element should be blue" and ""
@hansinla i'll try that now
zach97
@zach97
Nov 26 2015 00:47
DO MINE IT WELL WRKE
GOOSH
Lewis
@Lxwis
Nov 26 2015 00:47
yeah try what @hansinla said, the code you have is correct @northwestyam
Dave Yoon
@northwestyam
Nov 26 2015 00:50
@Lxwis @hansinla still no luck, still fails the "create a style element" test
Hans van Riet
@hansinla
Nov 26 2015 00:50
@northwestyam as last resort you can delete the FCC cookie from your browser, that deletes local storage
zach97
@zach97
Nov 26 2015 00:51
TRIE MINE
tepeyak
@tepeyak
Nov 26 2015 00:51
Hi all, appreciate any help you can give at this time. Here's the full pg of code (Waypt: JS Arrays); I've tried literally every "fix" (i.e., refresh code, hard refresh pg, 'string' before literal word and actual "number," vice versa, clear browser local storage). Thanks much in advance!

var array = ["John", 23];

// Only change code below this line.

var myArray = ["Jane", "4"];

// Only change code above this line.

(function(z){return z;})(myArray);

Hans van Riet
@hansinla
Nov 26 2015 00:51
@zach97 he has your code, stop yelling
tepeyak
@tepeyak
Nov 26 2015 00:51
My code is on the var myArray line
zach97
@zach97
Nov 26 2015 00:51
caps was an
Bill
@kirah1314
Nov 26 2015 00:52
@tepeyak what's the waypoint title?
Hans van Riet
@hansinla
Nov 26 2015 00:52
@tepeyak the number 4 should not be in quotes, it should be just 4
Dave Yoon
@northwestyam
Nov 26 2015 00:52
@zach97 I did try your code, and I said it failed the "Create a style element" test
tepeyak
@tepeyak
Nov 26 2015 00:52
Waypoint: Store Multiple Values in one Variable using JavaScript Arrays
zach97
@zach97
Nov 26 2015 00:52
re read it
tepeyak
@tepeyak
Nov 26 2015 00:53
Well.....thank you for that info hansinla!!!
@hansinla Thank you!!!
CamperBot
@camperbot
Nov 26 2015 00:53
tepeyak sends brownie points to @hansinla :sparkles: :thumbsup: :sparkles:
:star: 642 | @hansinla | http://www.freecodecamp.com/hansinla
Hans van Riet
@hansinla
Nov 26 2015 00:54
@tepeyak The way you had it, you put two strings in the array. The assignment says one string and one number. That’s why.
zach97
@zach97
Nov 26 2015 00:54
egsak le
Lewis
@Lxwis
Nov 26 2015 00:54
@zach97 is english your first language?
tepeyak
@tepeyak
Nov 26 2015 00:55
@hansinla in the instruction: You start an array declaration with an opening bracket, end it with a closing bracket, and put a comma between each entry, like this: var sandwich = ["peanut butter", "jelly", "bread"]
zach97
@zach97
Nov 26 2015 00:55
im10 sutup
tepeyak
@tepeyak
Nov 26 2015 00:56
No instruction on numbers, thanks again! :)
Hans van Riet
@hansinla
Nov 26 2015 00:56
@tepeyak Now let's create a new array called myArray that contains both a string and a number (in that order).
tepeyak
@tepeyak
Nov 26 2015 00:57
Where would I have seen not to include quotes (due to number status)?
apekearo
@apekearo
Nov 26 2015 00:57

is there something wrong with my code? I'm trying to get myArray to equal [ 1, 2 ,3 , 4,5] for (var i = 0; i < 5; i++) {

myArray.push(i)};

zach97
@zach97
Nov 26 2015 00:57
you taking to me you f**!!!!!!!!!!!!!!!!!!!!!!
Hans van Riet
@hansinla
Nov 26 2015 00:57
@tepeyak yes
Dave Yoon
@northwestyam
Nov 26 2015 00:57
@hansinla thanks hansinla. clearing the cookie did it
CamperBot
@camperbot
Nov 26 2015 00:57
northwestyam sends brownie points to @hansinla :sparkles: :thumbsup: :sparkles:
:star: 643 | @hansinla | http://www.freecodecamp.com/hansinla
tepeyak
@tepeyak
Nov 26 2015 00:58
@hansinla My question is "where" would I have seen? Thx
CamperBot
@camperbot
Nov 26 2015 00:58
tepeyak sends brownie points to @hansinla :sparkles: :thumbsup: :sparkles:
:warning: tepeyak already gave hansinla points
Lewis
@Lxwis
Nov 26 2015 00:58
@apekearo i < 6
Hans van Riet
@hansinla
Nov 26 2015 00:58
@apekearo you start at 0 instead of 1 and end it at <5 instead of <6
zach97
@zach97
Nov 26 2015 00:58
f**s
f*
Hans van Riet
@hansinla
Nov 26 2015 00:59
@tepeyak Because a number literal has no quotes, a string does. So it was implied.
zach97
@zach97
Nov 26 2015 00:59
shut up
f**
tepeyak
@tepeyak
Nov 26 2015 00:59
@hansinla Again, as you're telling me that's new info to me; it doesn't explain that in the instruction. However, as always it's much appreciated. ^_^
zach97
@zach97
Nov 26 2015 01:00
shutup
apekearo
@apekearo
Nov 26 2015 01:00
wow, that is definetly some algebra thinking, i dig it, thankx for the Help all day hansinla , i really get hung up before i come here, but I appreciate yall as a resource
Hans van Riet
@hansinla
Nov 26 2015 01:00
@tepeyak It was explained in the earlier lessons about strings and variables.
apekearo
@apekearo
Nov 26 2015 01:01
i really need a tutor to be able to handle all the questions i have, I am a really detailed thinker and what to do my best to really understand
tepeyak
@tepeyak
Nov 26 2015 01:01
@hansinla That's what I was asking. Thanks! I like to go back and commit those things to memory/heart
CamperBot
@camperbot
Nov 26 2015 01:01
tepeyak sends brownie points to @hansinla :sparkles: :thumbsup: :sparkles:
:warning: tepeyak already gave hansinla points
zach97
@zach97
Nov 26 2015 01:02
f**
Hans van Riet
@hansinla
Nov 26 2015 01:02
@apekearo You need to take your time and read all instructions carefully. You’ll be fine.
zach97
@zach97
Nov 26 2015 01:02


f*
F*
f of
Hans van Riet
@hansinla
Nov 26 2015 01:03
This message was deleted
zach97
@zach97
Nov 26 2015 01:04
spam bot
help
CamperBot
@camperbot
Nov 26 2015 01:04

Hi, I'm CamperBot! I can help you in this chatroom :smile:

Basic Commands:

  • find TOPIC find all entries about topic. ex: find js
  • wiki TOPIC show contents of topic page
  • thanks @username send brownie points to another user
  • about @username shows info on that user
  • bonfire BONFIRENAME info on a bonfire

:speech_balloon: meet CamperBot in this room!

:pencil: read more about camperbot on the FCC Wiki

Elizabeth
@inclinedtomischief
Nov 26 2015 01:08
This message was deleted
John Schaub
@desmoquak
Nov 26 2015 01:11
Hi camperbot
Morgan
@MorganK95
Nov 26 2015 01:11
bonfire CHECK FOR PALINDROMES
CamperBot
@camperbot
Nov 26 2015 01:11

:fire:Bonfire: Check for Palindromes :link:

function palindrome(str) {
  // Good luck!
  return true;
}



palindrome("eye");

Return true if the given string is a palindrome. Otherwise, return false.

more info:  bf details | bf links | hint

Morgan
@MorganK95
Nov 26 2015 01:11
hint
CamperBot
@camperbot
Nov 26 2015 01:11
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
Hans van Riet
@hansinla
Nov 26 2015 01:11
@MorganK95 Need help with that?
tepeyak
@tepeyak
Nov 26 2015 01:12
@hansinla I take incredibly detailed notes, so completely missing the notes on strings vs literal numbers was bothering me. :) Eventually, I moved on to the next lesson...and there it was...just fyi
Hans van Riet
@hansinla
Nov 26 2015 01:13
@tepeyak Great. Glad to be of help.
Elizabeth
@inclinedtomischief
Nov 26 2015 01:16
This message was deleted
Luis Gaytan
@techiedodo
Nov 26 2015 01:20
@MorganK95, I had a hard time on that one. Biggest issue I had was how to compare the str once I had transformed it...
Morgan
@MorganK95
Nov 26 2015 01:21
@techiedodo I got totally lost in regEx but realised I was complicating it more than necessary. Was trying to use backmatches and lookarounds...
@hansinla good for now I think
Hans van Riet
@hansinla
Nov 26 2015 01:23
@MorganK95 k
Mags Prescott
@magsprescott
Nov 26 2015 01:41
var Car = function() {
  this.wheels = 4;
  this.engines = 1;
  this.seats = 1;
};

// Only change code below this line.

var myCar = new Car();

myCar.wheels = 4;
"The property nickname of myCar should be a string"
helppppppppppppppppp
Alan Toro
@YoungAlan
Nov 26 2015 01:45
What you don't understand?
Mags Prescott
@magsprescott
Nov 26 2015 01:45
nvm i got it
apekearo
@apekearo
Nov 26 2015 01:49
Heads is still not defined? code< if (0 === 0) { return heads;}
else {return tails;} >code
JL GARZA
@Garza0783
Nov 26 2015 01:52
im stuck on the Waypoint: Generate Random Fractions with JavaScript.. can anyone help please??
apekearo
@apekearo
Nov 26 2015 01:56
no one out there on this thanksgiving eve? good for you guys
Alan Toro
@YoungAlan
Nov 26 2015 01:56
@apekearo First, if (0 == = 0)? And heads is not defined, because JavaScript don't know what that is.
Heads and tails should be a string here, then you needs to tell that's a string. How? Writing beetwen double or single quotes. Example: "This is a string"
apekearo
@apekearo
Nov 26 2015 01:59
my example was if (1 === 2) so i thought 0 should equal 0 to return Heads
Chris
@Aoxom
Nov 26 2015 01:59
1 === 2 will always compare if 1 is equal to 2, no variation
Alan Toro
@YoungAlan
Nov 26 2015 02:00
Same with 0 === 0.
apekearo
@apekearo
Nov 26 2015 02:00
so its " (heads is 0)
i don't write words do I ? heads and tails and such?
Minerest
@Minerest
Nov 26 2015 02:01

Hey guys, not sure what I'm doing wrong with Waypoint: Make Images Mobile Responsive. I have a mobile responsive image but my problem is that the new image element has no closing bracket?

<a href="#"><img class="smaller-image thick-green-border" src="http://bit.ly/fcc-relaxing-cat"></a>
<img class="img-responsive" src="http://bit.ly/fcc-running-cats">

apekearo
@apekearo
Nov 26 2015 02:01
basically how do i make it so that 0 is equal to heads?
Chris
@Aoxom
Nov 26 2015 02:02
@apekearo var heads = 0; ?
i cant remember but i dont think that waypoint requires you to do that
Don Price
@KingHippo
Nov 26 2015 02:04
Will someone take a look at my code for the Pomodoro zipline? For some reason when I call the function for the break the countdown only is called once. http://codepen.io/KingHippo/pen/QjPggQ?editors=101
Chris
@Aoxom
Nov 26 2015 02:04
@apekearo are you on "Waypoint: Use Conditional Logic with If and Else Statements"?
Alan Toro
@YoungAlan
Nov 26 2015 02:05
Yes, that is.
And you need to use the variable "flip" for the conditional.
apekearo
@apekearo
Nov 26 2015 02:05
yeas,
flip?! i haven't seen that in the instructions
Chris
@Aoxom
Nov 26 2015 02:05
yeah, "flip" is the important variable there
var flip = Math.floor(Math.random() * (1 - 0 + 1)) + 0;
apekearo
@apekearo
Nov 26 2015 02:07
hmmm but what about in regards to the if and else statements
Chris
@Aoxom
Nov 26 2015 02:07
so flip is gonna give you either 0 or 1
which is a 50/50 shot, just like flipping a coin
apekearo
@apekearo
Nov 26 2015 02:09
yeah I agree, If and else should the answere here , i thought, i'm trying to figure out what to do here
Chris
@Aoxom
Nov 26 2015 02:09
so just think about it in real words instead of code.. (psuedocode)... "if its 0, make it heads, otherwise make it tails"
i can rephrase it more code-like if you need to, just trying to be vague instead of giving it away
Don Price
@KingHippo
Nov 26 2015 02:10
is there a chat room for zipline help?
apekearo
@apekearo
Nov 26 2015 02:10
yeah i get that, in regards to the first line of code, but trying to find out how to organize the if and else code
@KingHippo there isn't very many people on here tonight
Alan Toro
@YoungAlan
Nov 26 2015 02:10
Heads and tails aren't method, don't "make heads", just show "heads" because that's a string.
apekearo
@apekearo
Nov 26 2015 02:11
so like this if (0) { return heads;}
else {return tails;}
RoadtoMastery
@RoadtoMastery
Nov 26 2015 02:11
@KingHippo try here: https://gitter.im/FreeCodeCamp/HelpZiplines. list of most of the rooms here: https://gitter.im/orgs/FreeCodeCamp/rooms
Don Price
@KingHippo
Nov 26 2015 02:11
@apekearo I guess it's due to the holiday. Forgot about that.
@RoadtoMastery thanks!
CamperBot
@camperbot
Nov 26 2015 02:12
kinghippo sends brownie points to @roadtomastery :sparkles: :thumbsup: :sparkles:
:star: 239 | @roadtomastery | http://www.freecodecamp.com/roadtomastery
Chris
@Aoxom
Nov 26 2015 02:12
if(some condition){
do something;
}else{
do something else;
};
errr
apekearo
@apekearo
Nov 26 2015 02:13
thats what i feel i'm putting in code
i get the idea, but is there syntax i'm missing
shoudl it not be a if(0) Or should it be if(0 <1)
there's a thousand ways of writing out the idea of what is being taught, but I'm not getting the return to work to javascripts specifications...
Chris
@Aoxom
Nov 26 2015 02:14
if youre comparing two numbers straight up like that, your condition will always be the same
apekearo
@apekearo
Nov 26 2015 02:14
i do get the idea of whats happening, its just not working that I can see
Chris
@Aoxom
Nov 26 2015 02:15
0 will always be less than 1
apekearo
@apekearo
Nov 26 2015 02:15
right,
Chris
@Aoxom
Nov 26 2015 02:15
but that variable "flip" is either going to be 0 or 1, different every time, thanks to the code behind it
var flip = Math.floor(Math.random() * (1 - 0 + 1)) + 0;
thats assigning flip to be either 1 or 0, itll be random each time
apekearo
@apekearo
Nov 26 2015 02:16
I agree, I see that,
Chris
@Aoxom
Nov 26 2015 02:16
so compare that variable to 0 or 1 (your choice)
you can use that variable in your if condition :)
apekearo
@apekearo
Nov 26 2015 02:17
if (0) { return heads;}
else {return tails;} ok
its saying tails is not defined.
Chris
@Aoxom
Nov 26 2015 02:17
you have to tell it what its comparing 0 to
apekearo
@apekearo
Nov 26 2015 02:18
0 is the result of the flip
so it should be (0 === flip)?
Chris
@Aoxom
Nov 26 2015 02:18
yes! :)
but id say flip === 0
apekearo
@apekearo
Nov 26 2015 02:19
nope , not yet, i'll check typos
if (flip === 0) {return heads;}
else {return tails;}
nope
not sure,, like i said before, I see how this works too, it makes sense to me, but still not getting the green light,,, its saying either heads or tails is not defined
dude,,, i swear , its perfect, why isn't it working,, it looks good
Chris
@Aoxom
Nov 26 2015 02:22
oh now you just need to put quote symbols around heads and tails
and you should be golden
Alan Toro
@YoungAlan
Nov 26 2015 02:22
Like this: return "Example";
Chris
@Aoxom
Nov 26 2015 02:22
so it knows youre returning a string and not an undefined variable
apekearo
@apekearo
Nov 26 2015 02:23
i thought that but it doesn't do that in the examples
hmm a string not variable,,, I gotcha yeah
Chris
@Aoxom
Nov 26 2015 02:23
because the example is showing true and false, which are boolean statements, not strings
apekearo
@apekearo
Nov 26 2015 02:24
if (flip === 0) { return "heads"; }
else { return "tails"; }
it still isnt' working i gotta keep checking for typo's
oh got it
Cezar
@cezarpereira
Nov 26 2015 02:25
Hi
Chris
@Aoxom
Nov 26 2015 02:26
it was the space after your parenthesis right? hehe
apekearo
@apekearo
Nov 26 2015 02:26
i refreshed my code and then tried that, man this is some hardcore language, I wouldnt say that it is totally straight forward
Cezar
@cezarpereira
Nov 26 2015 02:26
I'm a beginner here
Chris
@Aoxom
Nov 26 2015 02:26
@cezarpereira hello
apekearo
@apekearo
Nov 26 2015 02:26
@cezarpereira hey yo
@cezarpereira its slow in here tonight, mostly me lost in space and Aoxom trying to bring me back down to earth
Chris
@Aoxom
Nov 26 2015 02:27
lol. im just hanging out in here while i stream the hockey game
Sachin S
@sachin234s
Nov 26 2015 02:28
@cezarpereira hello n Welcome
apekearo
@apekearo
Nov 26 2015 02:30
@Aoxom whoo man, , I gotta take a mental breather after that last one,, this isn't coming as easy as I thought, but I gotta keep fighting, with a little help from my friends
Chris
@Aoxom
Nov 26 2015 02:30
@apekearo hah, as a fellow beginner, i know that feeling... needing a mental breather
rspeed
@gorillawit
Nov 26 2015 02:39
ello fellow campers, just ringing in at the help desk. Starting up the code camp tonight. So far it's a breeze but I haven't had to write a line a code yelt :D
Chris
@Aoxom
Nov 26 2015 02:40
@gorillawit hola. stick with it, and im sure itll challenge you :)
Joy
@somepulp
Nov 26 2015 02:40
hello
@gorillawit that will surely change very soon haha
can anyone help me with the Waypoint: Make Object Properties Private
its under the Object Oriented and Functional Programming section
Pranav Doshi
@pranavdoshi
Nov 26 2015 02:44
@somepulp wat doubt u hav
Chris
@Aoxom
Nov 26 2015 02:45
@somepulp i can try to help
Joy
@somepulp
Nov 26 2015 02:45
@pranavdoshi i'm not sure how to proceed, the instructions say to "Modify the Bike constructor to have a private property called gear and two public methods called getGear and setGear to get and set that value."
@pranavdoshi i have done the first part, in terms of having a private property called gear
Pranav Doshi
@pranavdoshi
Nov 26 2015 02:46
yes @somepulp i will give u hint learn about this keyword
@somepulp understand what happens when u use it and when u dont.
Joy
@somepulp
Nov 26 2015 02:47
"this" is for setting a public property, from my understanding, using "this" within the function as opposed to "var" allows it to be accessible outside of the function
but thats as much as i understand
Pranav Doshi
@pranavdoshi
Nov 26 2015 02:47
yes so if u dont use this keyword the function will be private
Chris
@Aoxom
Nov 26 2015 02:47
@somepulp you want to compare using "this" vs not using "this", not comparing it to a var
i believe
Pranav Doshi
@pranavdoshi
Nov 26 2015 02:48
@somepulp try figuring now
Joy
@somepulp
Nov 26 2015 02:48
@Aoxom oh um what would not using "this" mean ?
Pranav Doshi
@pranavdoshi
Nov 26 2015 02:48
@Aoxom right
Joy
@somepulp
Nov 26 2015 02:48
@pranavdoshi still confused
@Aoxom can you assign a property to a constructor without using "this"
Pranav Doshi
@pranavdoshi
Nov 26 2015 02:48
try searching on google
Joy
@somepulp
Nov 26 2015 02:49
im not sure of the question to search, cuz the instructions aren't clear
Pranav Doshi
@pranavdoshi
Nov 26 2015 02:49
and try practicing the same code on jsfidlle.net
and ccheck what output comes
Joy
@somepulp
Nov 26 2015 02:50
@pranavdoshi please could you look at my code and help me narrow down a bit where i can focus on to search for on google ?
Pranav Doshi
@pranavdoshi
Nov 26 2015 02:50
yep
focus on this keyword
Joy
@somepulp
Nov 26 2015 02:51
 var gear = ""; // this is the private variable

  // public methods   
  this.getGear 
  this.setGear
Chris
@Aoxom
Nov 26 2015 02:51
@somepulp looking at their example code for myCar....
Joy
@somepulp
Nov 26 2015 02:51
but since i dont understand what the question is asking, i'm not sure of how to proceed
Leeia Isabelle
@Leeiaisabelle
Nov 26 2015 02:52
hi, does anyone mind helping me with the waypoint Make Unique Objects by Passing Parameters to our Constructor
Chris
@Aoxom
Nov 26 2015 02:52
@somepulp if you try to do myCar.accelerate(4); , it will only work if you use the "this" keyword to make it public
Joy
@somepulp
Nov 26 2015 02:53
@Aoxom i get that
Chris
@Aoxom
Nov 26 2015 02:53
@somepulp so if you remove "this" from accelerate(and make it private), youll get an error, because it cant access the private property
Joy
@somepulp
Nov 26 2015 02:54
@Aoxom okay, but please bear with me, my question then would be, removing "this" from accelerate, would accelerate even be a property of the constructor anymore ?
Chris
@Aoxom
Nov 26 2015 02:54
@somepulp yeah, but you cant change it from outside of the method
Joy
@somepulp
Nov 26 2015 02:55
@Aoxom so even if you don't put var = ... it would still be a private property?
Chris
@Aoxom
Nov 26 2015 02:57
@somepulp yeah, still private if you dont use "this"
Joy
@somepulp
Nov 26 2015 02:57
@Aoxom sorry, i wasn't aware that just writing the property without any keyword would make it a private one, i thought using var instead of this made it private
Chris
@Aoxom
Nov 26 2015 02:58
@somepulp i should let you know that i am also a beginner, so this is my understanding of it
Joy
@somepulp
Nov 26 2015 02:58
@Aoxom oh okay, well i appreciate your help. thank you
CamperBot
@camperbot
Nov 26 2015 02:58
somepulp sends brownie points to @aoxom :sparkles: :thumbsup: :sparkles:
:star: 248 | @aoxom | http://www.freecodecamp.com/aoxom
Joy
@somepulp
Nov 26 2015 03:00
seems all i had to do was assign an empty function to the public properties.. thats where i was unsure of what to do
@Leeiaisabelle hey i did that exercise yesterday, i can try to help...but i'm learning as well
Leeia Isabelle
@Leeiaisabelle
Nov 26 2015 03:02
@somepulp I say that the best way to learn is by explaining to others...I will show you what I have.
Joy
@somepulp
Nov 26 2015 03:03
@Leeiaisabelle very true :)
Leeia Isabelle
@Leeiaisabelle
Nov 26 2015 03:04
var Car = function(wheels, seats, engines) {
  //Change this constructor
  this.wheels = 4;
  this.seats = 1;
  this.engines = 1;
};

//Try it out here
var myCar = new Car(3, 1, 2);

// Only change code above this line

(function() {return JSON.stringify(myCar);})();
Joy
@somepulp
Nov 26 2015 03:05
@Leeiaisabelle okay i believe the problem is that within your car constructor, the parameters aren't being referred to
@Leeiaisabelle so if you're creating a car with 3 wheels, 1 seat and 2 engines, where you'd assign the wheels, seats and engines (the this.wheel, ...) should refer to the parameters
var Car = function(wheels, seats, engines) {
  //Change this constructor
  this.wheels = wheels;
  this.seats = seats;
  this.engines = engines;
im a bit limited in the technical words to use, but please let me know if it makes some sense
Leeia Isabelle
@Leeiaisabelle
Nov 26 2015 03:07
What???? LOL Thanks @somepulp ! seems a bit redundant
CamperBot
@camperbot
Nov 26 2015 03:07
leeiaisabelle sends brownie points to @somepulp :sparkles: :thumbsup: :sparkles:
:star: 174 | @somepulp | http://www.freecodecamp.com/somepulp
Joy
@somepulp
Nov 26 2015 03:07
its like Car is the skeleton
yeah it is redundant.. it was confusing to me aswell
but it somewhat makes sense lol... like if your parameters were (variable1, variable2, variable3) and you want your wheels to be the first variable, your seats to be the next, etc...
then you'd have this.wheels = variable1
this.seats = variable2
and so on
Leeia Isabelle
@Leeiaisabelle
Nov 26 2015 03:09
I thought the first line covered everything. I am farther along in the course and thought I would complete that new one....it makes sense though
Joy
@somepulp
Nov 26 2015 03:11
lol hope my explanation wasn't too confusing
Leeia Isabelle
@Leeiaisabelle
Nov 26 2015 03:11
not at all!
Pranav Doshi
@pranavdoshi
Nov 26 2015 03:11
@somepulp did u get then atlast?
Chris
@Aoxom
Nov 26 2015 03:11
@Leeiaisabelle like she said, that first section is making the skeleton / blueprint, then var myCar = new Car(3, 1, 2); is USING that skeleton/blueprint to actually make something from it
Joy
@somepulp
Nov 26 2015 03:12
@Leeiaisabelle sweet :)
@pranavdoshi yeah it was a technicality i was stuck on... though i understand the this keyword a little bit better now
Jones Dias
@jxdones
Nov 26 2015 03:12
Hey guys
Pranav Doshi
@pranavdoshi
Nov 26 2015 03:12
@somepulp cool :smile: )
Joy
@somepulp
Nov 26 2015 03:13
@pranavdoshi thanks :)
CamperBot
@camperbot
Nov 26 2015 03:13
somepulp sends brownie points to @pranavdoshi :sparkles: :thumbsup: :sparkles:
:star: 232 | @pranavdoshi | http://www.freecodecamp.com/pranavdoshi
Jones Dias
@jxdones
Nov 26 2015 03:13
How can i push the odd numbers from 1 through 9 to the array?
Pranav Doshi
@pranavdoshi
Nov 26 2015 03:13
@jxdones
u can use test for odd and even within loop and then add
Joy
@somepulp
Nov 26 2015 03:13
a loop perhaps :/
Pranav Doshi
@pranavdoshi
Nov 26 2015 03:13
@jxdones
Jones Dias
@jxdones
Nov 26 2015 03:14
@somepulp Yup, I'm using a loop. But my final-expression isn't working
Joy
@somepulp
Nov 26 2015 03:14
ah or increase by 2 starting from 1
Chris
@Aoxom
Nov 26 2015 03:14
@jxdones a for loop, starting at 1 and increase by 2 each time instead of 1
yep, like @somepulp said
Jones Dias
@jxdones
Nov 26 2015 03:14
Ahh! I see! Thank you @Aoxom @somepulp @pranavdoshi
CamperBot
@camperbot
Nov 26 2015 03:14
jxdones sends brownie points to @aoxom and @somepulp and @pranavdoshi :sparkles: :thumbsup: :sparkles:
:star: 233 | @pranavdoshi | http://www.freecodecamp.com/pranavdoshi
:star: 249 | @aoxom | http://www.freecodecamp.com/aoxom
:star: 176 | @somepulp | http://www.freecodecamp.com/somepulp
Joy
@somepulp
Nov 26 2015 03:15
no problem :)
Jones Dias
@jxdones
Nov 26 2015 03:15
:D
Pranav Doshi
@pranavdoshi
Nov 26 2015 03:18
@jxdones u got two type of ways to u r answer
:)
Kelly
@Kchesney
Nov 26 2015 03:41
Hi all. I'm brand new and already have a snag I can't figure out re: sizing an image with CSS.
Will someone please help me figure out what I am doing wrong?
<style>
.smaller-image {width: 100px;}
</style>
<img src="https://bit.ly/fcc-relaxing-cat">
Joy
@somepulp
Nov 26 2015 03:43
@Kchesney hi Kelly, i can try to help, what are the instructions asking you to do?
Kelly
@Kchesney
Nov 26 2015 03:43
Thank you!
Create a class called smaller-image and use it to resize the image so that it's only 100 pixels wide.
Chris
@Aoxom
Nov 26 2015 03:43
@Kchesney you need to apply that smaller-image class to the img
Joy
@somepulp
Nov 26 2015 03:44
@Kchesney what @Aoxom said lol
Kelly
@Kchesney
Nov 26 2015 03:44
@Aoxom I'm confused what that means. Add it to the <img src, line?
Pranav Doshi
@pranavdoshi
Nov 26 2015 03:44
@Kchesney give class="smaller-image" to ur element
Kelly
@Kchesney
Nov 26 2015 03:44
I'm sorry. I'm so new to this.
Joy
@somepulp
Nov 26 2015 03:44
yeah
RMarti10
@RMarti10
Nov 26 2015 03:44
Sup guys
Pranav Doshi
@pranavdoshi
Nov 26 2015 03:44
yes img element
@Kchesney dont worry if u r new
Kelly
@Kchesney
Nov 26 2015 03:45
Okay! I think I got it. Thank you!
Pranav Doshi
@pranavdoshi
Nov 26 2015 03:45
everybody is new to something or the other always
@Kchesney
Joy
@somepulp
Nov 26 2015 03:45
@Kchesney you can add it by just writing it within the img tag like so
```
Pranav Doshi
@pranavdoshi
Nov 26 2015 03:45
@RMarti10 wassup
Joy
@somepulp
Nov 26 2015 03:45
<img class="smaller-image" 
     src="https://bit.ly/fcc-relaxing-cat">
RMarti10
@RMarti10
Nov 26 2015 03:45
Create a CSS class called red-text and apply it to your h2 element.
help
CamperBot
@camperbot
Nov 26 2015 03:45

Hi, I'm CamperBot! I can help you in this chatroom :smile:

Basic Commands:

  • find TOPIC find all entries about topic. ex: find js
  • wiki TOPIC show contents of topic page
  • thanks @username send brownie points to another user
  • about @username shows info on that user
  • bonfire BONFIRENAME info on a bonfire

:speech_balloon: meet CamperBot in this room!

:pencil: read more about camperbot on the FCC Wiki

Kelly
@Kchesney
Nov 26 2015 03:46
You all are the best. Thank you so much for the help and understanding!
Hans van Riet
@hansinla
Nov 26 2015 03:47
@RMarti10 what did you come up with so far
Kelly
@Kchesney
Nov 26 2015 03:47
Thanks @RMarti10 Thanks @Aoxom Thanks @pranavdoshi Thanks @somepulp
CamperBot
@camperbot
Nov 26 2015 03:47
kchesney sends brownie points to @rmarti10 and @aoxom and @pranavdoshi and @somepulp :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for rmarti10
:star: 234 | @pranavdoshi | http://www.freecodecamp.com/pranavdoshi
:star: 177 | @somepulp | http://www.freecodecamp.com/somepulp
:star: 250 | @aoxom | http://www.freecodecamp.com/aoxom
Pranav Doshi
@pranavdoshi
Nov 26 2015 03:47
np @Kchesney
Kelly
@Kchesney
Nov 26 2015 03:47
Thanks @Leeiaisabelle
CamperBot
@camperbot
Nov 26 2015 03:47
kchesney sends brownie points to @leeiaisabelle :sparkles: :thumbsup: :sparkles:
:star: 207 | @leeiaisabelle | http://www.freecodecamp.com/leeiaisabelle
RMarti10
@RMarti10
Nov 26 2015 03:47

<h2 class="red-text">CatPhotoApp</h2>

<style>

.red-text {
color : red;
}


</style>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

Joy
@somepulp
Nov 26 2015 03:47
@Kchesney no prob :)
Kelly
@Kchesney
Nov 26 2015 03:47
Trying to get everyone their brownie points!
Joy
@somepulp
Nov 26 2015 03:48
@Kchesney thank you. you get some too :+1:
CamperBot
@camperbot
Nov 26 2015 03:48
somepulp sends brownie points to @kchesney :sparkles: :thumbsup: :sparkles:
Hans van Riet
@hansinla
Nov 26 2015 03:48
@RMarti10 That looks great, but I don’t see your <h2> tags anymore. I see them now at the top, do your style tags first then the rest of the html
CamperBot
@camperbot
Nov 26 2015 03:48
:star: 22 | @kchesney | http://www.freecodecamp.com/kchesney
Leeia Isabelle
@Leeiaisabelle
Nov 26 2015 03:48
Thanks @Kchesney ....wonder what they are for. Does anyone know?
CamperBot
@camperbot
Nov 26 2015 03:48
leeiaisabelle sends brownie points to @kchesney :sparkles: :thumbsup: :sparkles:
:star: 23 | @kchesney | http://www.freecodecamp.com/kchesney
Kelly
@Kchesney
Nov 26 2015 03:49
I have no idea!
RMarti10
@RMarti10
Nov 26 2015 03:49
ok
Hans van Riet
@hansinla
Nov 26 2015 03:49
@Leeiaisabelle bragging rights
Joy
@somepulp
Nov 26 2015 03:49
lol i think the star points are your progress + thank yous
RMarti10
@RMarti10
Nov 26 2015 03:49
Your stylesheet should declare a red-text class and have its color set to red.
X
Alan Falloon
@DontPanic345
Nov 26 2015 03:52
What are bonfires?
Hans van Riet
@hansinla
Nov 26 2015 03:52
Challenges
Alan Falloon
@DontPanic345
Nov 26 2015 03:53
ohh I see, how are they different from waypoints?
Leeia Isabelle
@Leeiaisabelle
Nov 26 2015 03:53
places where you burn because you can't figure it out! lol
Pranav Doshi
@pranavdoshi
Nov 26 2015 03:54
@RMarti10 give that class to ur h2 element
@DontPanic345 challenges dude
Leeia Isabelle
@Leeiaisabelle
Nov 26 2015 03:55
waypoints walk you through the steps that they are teaching you. Bonfires are challenges where you have to figure it out how to write your own algorithm that does what they ask @DontPanic345
so you are using several waypoints to do one bonfire, if you want to look at it that way
Alexander Køpke
@alexanderkopke
Nov 26 2015 04:02
What is ziplines then?
RMarti10
@RMarti10
Nov 26 2015 04:03
im so lost
Hans van Riet
@hansinla
Nov 26 2015 04:03
@alexanderkopke That’s when the sh*t hits the fan
@RMarti10 Did you understand that first you need to do the style sheet and after that the <h2> and other tags?
Alexander Køpke
@alexanderkopke
Nov 26 2015 04:06
@hansinla amen ;-)
RMarti10
@RMarti10
Nov 26 2015 04:06
I keep doing it but something is off
Pranav Doshi
@pranavdoshi
Nov 26 2015 04:07
@RMarti10 post ur code.
RMarti10
@RMarti10
Nov 26 2015 04:08

<style>
.red-text{
color:red;
}


</style>

<h2>CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

Hans van Riet
@hansinla
Nov 26 2015 04:08
@RMarti10 you forgot to give h2 the red-text class. You had it before in your code.
RMarti10
@RMarti10
Nov 26 2015 04:10
All I need to do: Your stylesheet should declare a red-text class and have its color set to red.
I can't figure it out and I don't know why
I am such a noob
Hans van Riet
@hansinla
Nov 26 2015 04:11
@RMarti10 and then add that class to the h2 tag
RMarti10
@RMarti10
Nov 26 2015 04:12
but how
Hans van Riet
@hansinla
Nov 26 2015 04:12

@RMarti10 This is the example that has been given

<h2 class="blue-text">CatPhotoApp</h2>

but now your class is called “red-text"

Pranav Doshi
@pranavdoshi
Nov 26 2015 04:13
<h2 class="red-text">
like this @RMarti10
RMarti10
@RMarti10
Nov 26 2015 04:13
OK!!!!
Pranav Doshi
@pranavdoshi
Nov 26 2015 04:14
@RMarti10 Hope u understand now
:)
RMarti10
@RMarti10
Nov 26 2015 04:14
nope
Pranav Doshi
@pranavdoshi
Nov 26 2015 04:14
??
RMarti10
@RMarti10
Nov 26 2015 04:14
I don't know what's wrong
Look

<h2 class="red-text">CatPhotoApp</h2>

<style>

.red-text {
color : red;
}

</style>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

Pranav Doshi
@pranavdoshi
Nov 26 2015 04:15
what error u getting
Hans van Riet
@hansinla
Nov 26 2015 04:15
@RMarti10 what is it that you have problems with? Show your code
@RMarti10 h2 should come AFTER style
RMarti10
@RMarti10
Nov 26 2015 04:15
"Your stylesheet should declare a red-text class and have its color set to red."
Pranav Doshi
@pranavdoshi
Nov 26 2015 04:15
@RMarti10 dude ur html is in css
how will it work
html always comes in <> and </> tags
they should come in body section
@RMarti10 and css selectors come in style tags within the head section
RMarti10
@RMarti10
Nov 26 2015 04:16
I got it
thanks guy C:
guys*
Alexander Køpke
@alexanderkopke
Nov 26 2015 04:17
Np
Pranav Doshi
@pranavdoshi
Nov 26 2015 04:18
:)
Alexander Køpke
@alexanderkopke
Nov 26 2015 04:21
My personal take on bonfires is: it's where you feel like a rock star when solved something that took hours but finally you made it work.
David Vaughan-Brown
@dvaun
Nov 26 2015 04:29
^
Pranav Doshi
@pranavdoshi
Nov 26 2015 04:47
hey cananyone explain why my start and stop not working and why time is shown without clicking the button
<!DOCTYPE html>
<html>
<body>
<p id="time"></p>
<br>
<button id="start">Start</button>
    <button id="stop">Stop</button>


<script>
var stoptimer = setInterval(timer,1000)
function timer(){
 var t = new Date(); 
  document.getElementById("time").innerHTML = t.toTimeString(); 
}
document.getElementById("start").onclick = setInterval(timer,1000);
document.getElementById("stop").onclick = clearInterval(stoptimer);


</script>

</body>
</html>
Hans van Riet
@hansinla
Nov 26 2015 04:51

@pranavdoshi Yoiur first question:

document.getElementById("start").onclick = setInterval(timer,1000);
document.getElementById("stop").onclick = clearInterval(stoptimer);

you have yo provide onlcick with a callback function not assign something to it.
As for your second question, the function setInterval is called at the start of your script so the time is shown

Pranav Doshi
@pranavdoshi
Nov 26 2015 04:53
@hansinla i understood we have to always assign a function den wer shouild i setInterval bcoz it also needs a function
Hans van Riet
@hansinla
Nov 26 2015 04:56

@pranavdoshi I advise you to use this code structure

<button onclick="stop();">Stop</button>

and use the return value of the setInterval function to stop the clock

Julie Myers
@BlueOceanView
Nov 26 2015 04:57
Noooo!!!! :P Don't use the onclick attribute. It's so yesterday and not acceptable coding in the real world. Use addEventListener() method instead.
Pranav Doshi
@pranavdoshi
Nov 26 2015 04:58
dude i m on learing so not yet went to addEventListener
@hansinla chk dis
Julie Myers
@BlueOceanView
Nov 26 2015 04:59
Ok
Pranav Doshi
@pranavdoshi
Nov 26 2015 04:59
@BlueOceanView u can also help me
:)
Julie Myers
@BlueOceanView
Nov 26 2015 05:00
Let's see....
Pranav Doshi
@pranavdoshi
Nov 26 2015 05:00
cool
try to explain step by step
Hans van Riet
@hansinla
Nov 26 2015 05:01
@pranavdoshi you need to preserve the return value of setInterval if you want to stop the clock later
Pranav Doshi
@pranavdoshi
Nov 26 2015 05:01
;)
@hansinla plz chk the fiddle now
Hans van Riet
@hansinla
Nov 26 2015 05:03
@pranavdoshi you’re not saving the value returned from setInterval in this code
<button onclick="setInterval(timer(),1000)">Start</button>
So you have to make a separate function start() and stop() and there you can save the return values
Julie Myers
@BlueOceanView
Nov 26 2015 05:05

The first thing JS will do when it see's your code is put all of your declarations into memory. So, with your coding the following will happen:
(1) var stoptimer will be put into memory and given an initial value of undefined.
(2) the timer() function is a function declaration so the entire function will be put into memory just waiting to be called.

Now, JS will start to execute your code.
(3) First it will see that the stoptimer variable needs to be assigned a value. In this case the value is calling the setInterval() function and passing it two arguments.
(a) The first argument passes in the timer function which will then get called every 1 second.

Then JS will execute the rest of your coding.

Pranav Doshi
@pranavdoshi
Nov 26 2015 05:05
@hansinla okay wait let me work on fiddle and let me update
@hansinla i updated my fiddel but how should i call the start and stop function
Julie Myers
@BlueOceanView
Nov 26 2015 05:08
@pranavdoshi You can do a google search to find examples. A good place to start to learn more about timers is here:
https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers
Pranav Doshi
@pranavdoshi
Nov 26 2015 05:09
But what mistake i m making now i am getting reference error
that i am not able to figure out
Julie Myers
@BlueOceanView
Nov 26 2015 05:12
@pranavdoshi Example 2 on the following webpage should help to answer your question:
https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers/setInterval
Pranav Doshi
@pranavdoshi
Nov 26 2015 05:16
still getting same error
am i calling wrong way in html?
I'm lookin...
Prashanth Chandra
@prashcr
Nov 26 2015 05:23
How do I call an express route from another express route?
Pranav Doshi
@pranavdoshi
Nov 26 2015 05:24
@hansinla and @BlueOceanView plzz let me know
Julie Myers
@BlueOceanView
Nov 26 2015 05:25
I'm still lookin. I don't mess with timers very much. Most of the coding looks right...taking a closer look by comparing to code that I know works.
Pranav Doshi
@pranavdoshi
Nov 26 2015 05:25
okay cool
i am also not knowing why getting refernce error
@BlueOceanView
Julie Myers
@BlueOceanView
Nov 26 2015 05:32
I took your coding and put it into an html file, then ran it in Chrome. It works just fine. For some reason your coding won't work on JS Fiddle which is why I think I stopped using that website a long time ago.
Pranav Doshi
@pranavdoshi
Nov 26 2015 05:33
hehe
:)
wat are u working on?
Julie Myers
@BlueOceanView
Nov 26 2015 05:33
You should put your coding in an html file and run it from your web browser.
Pranav Doshi
@pranavdoshi
Nov 26 2015 05:34
actually bit of lazy so bored to put all that
:)
Mason Shin
@minsooshin
Nov 26 2015 05:34
@pranavdoshi the issue is loading order
your html is loading first
so there is no start or stop method has been defined yet
if you change the order, it works fine
Julie Myers
@BlueOceanView
Nov 26 2015 05:34
I'm working on understanding JS much better before I go off and code anything real. I am surprised at how much there really is to know about JS to be a good programmer in it.
Mason Shin
@minsooshin
Nov 26 2015 05:34
you can change the select option menu at the left panel
Julie Myers
@BlueOceanView
Nov 26 2015 05:35
@minsooshin well, JS Fiddle shouldn't be that picky. :P
Mason Shin
@minsooshin
Nov 26 2015 05:35
from onLoad to No wrap - in <body>
I have tried on my jsfiddle and it works fine
also, I prefer not to insert js script in the head to be safe on loading file issue
that is the trend of these days
add script at the end of body
this is my jsfiddle with exactly same code of @pranavdoshi
just change select options menu at the left panel
from onLoad to No wrap - in <body>
Pranav Doshi
@pranavdoshi
Nov 26 2015 05:37
ohhh dats y it was the issue
yep working now
anyways instead of using js fiddle i will prefer broser or code pen
Julie Myers
@BlueOceanView
Nov 26 2015 05:39
I always use the browser because ultimately that is where your code needs to work.
Pranav Doshi
@pranavdoshi
Nov 26 2015 05:40
wat r u working on?
do u refer only fcc?
Julie Myers
@BlueOceanView
Nov 26 2015 05:41
I'm still learning javaScript better. I use udemy.com the most. I am only on FCC to help people which really helps to solidify my knowledge.
So, the chat room is the only thing I do that is related to FCC.
Pranav Doshi
@pranavdoshi
Nov 26 2015 05:41
udemy wic course?
did it help?
Mason Shin
@minsooshin
Nov 26 2015 05:42
@pranavdoshi so the issue is when you choose onLoad, the js code will be added to head
so it is insecure everything is ready to work with that js
Julie Myers
@BlueOceanView
Nov 26 2015 05:42
The best course on javaScript is the one my Anthony Alicea. He explains some really excellent things such as an operator is really a function under the hood. And really gets you to understand how a function is an object...and much more.
Mason Shin
@minsooshin
Nov 26 2015 05:43
in that case, we need to use jQuery and .ready method to be sure
Pranav Doshi
@pranavdoshi
Nov 26 2015 05:45
Guys this a site i have a doubt http://www.sportzify.com/ how we have different background images like the one in background and how text scrolls on it?
Julie Myers
@BlueOceanView
Nov 26 2015 05:47
Is this a website you did?
Or are you wondering what is wrong with it?
Mason Shin
@minsooshin
Nov 26 2015 05:49
I think it can be done with background-position: fixed;
you can take a look at their css code, and figure out what they’ve used for it.
Pranav Doshi
@pranavdoshi
Nov 26 2015 05:51
wondering
Julie Myers
@BlueOceanView
Nov 26 2015 05:51
I couldn't get the website to load.
Pranav Doshi
@pranavdoshi
Nov 26 2015 05:52
try
Jonathan
@jonathantimm
Nov 26 2015 06:07
explain markup
CamperBot
@camperbot
Nov 26 2015 06:07
no wiki entry for: markup
:pencil: click here to create one now!after creating your page type update to reload it here
Jonathan
@jonathantimm
Nov 26 2015 06:07
crap what's the thing for formatting
Mason Shin
@minsooshin
Nov 26 2015 06:07
help format
CamperBot
@camperbot
Nov 26 2015 06:07

:point_right: code format [wiki]

Inline code

This an inline `<paste code here>` code formatting with a single backtick(`) at start and end around the code.

Code Block

``` ⇦ Type 3 backticks and then press [shift + enter ⏎]

<paste your code here>,
then press [shift + enter ⏎]

``` ⇦ Type 3 backticks, then press [enter ⏎]

How to Code

See also: ☛ How to type Backticks | ☯ Compose Mode | ❄ Gitter Formatting Basics

:pencil: read more about code format on the FCC Wiki

Mason Shin
@minsooshin
Nov 26 2015 06:07
@jonathantimm are you looking for this?
Miguel Angel Ramos
@miguel-ramos
Nov 26 2015 06:08
Hello!
Scott
@Gangezilla
Nov 26 2015 06:08

Hey guys, quick q: do any of you have any idea of how to change the background of a webpage using Javascript with an HSL color scheme? I'm using code like

document.body.style.background='hsl('+ hue + ',' + 100% + ',' + 50% +')';

Anyone have any clues :)?

Miguel Angel Ramos
@miguel-ramos
Nov 26 2015 06:08
How's everyone doing this evening?
Jonathan
@jonathantimm
Nov 26 2015 06:08
yes thank you @minsooshin , wanted to show it to a friend
CamperBot
@camperbot
Nov 26 2015 06:08
jonathantimm sends brownie points to @minsooshin :sparkles: :thumbsup: :sparkles:
:star: 286 | @minsooshin | http://www.freecodecamp.com/minsooshin
Mason Shin
@minsooshin
Nov 26 2015 06:11
@Gangezilla
document.body.style.background='hsl('+ hue + ‘, 100%, 50%)';
as i guess, the hue is variable, right?
others are static value, so you can just use as string
document.body.style.background=‘hsl('+ hue + ', 100%, 50%)';
Scott
@Gangezilla
Nov 26 2015 06:12
oh my god, you beautiful person. Thank you @minsooshin you're a champ.
CamperBot
@camperbot
Nov 26 2015 06:12
gangezilla sends brownie points to @minsooshin :sparkles: :thumbsup: :sparkles:
:star: 287 | @minsooshin | http://www.freecodecamp.com/minsooshin
Scott
@Gangezilla
Nov 26 2015 06:12
i think that did it, you're the best.
Mason Shin
@minsooshin
Nov 26 2015 06:12
np
seanpull
@seanpull
Nov 26 2015 06:29
Hey, I need some help with the palindrome checker program. Is anyone willing to help?
Mason Shin
@minsooshin
Nov 26 2015 06:30
what up?
seanpull
@seanpull
Nov 26 2015 06:31
So I'm not really sure why my code isn't working
I think I'm on the right track but I don't know what to do
here's my code so far
function palindrome(str) {
var newString = str.replace(/\d\W\s/, '');
var array = newString.split('');
newString = array.reverse().join('');
newString.toLowerCase();
if (newString === str) {
return true;
}else{
return false; }
}
palindrome("eye");
Mason Shin
@minsooshin
Nov 26 2015 06:32
function palindrome(str) {
  var newString = str.replace(/\d\W\s/, '');
  var array = newString.split('');
  newString = array.reverse().join('');
  newString.toLowerCase();
  if (newString === str) {
    return true;
  }else{
    return false; }
  }
seanpull
@seanpull
Nov 26 2015 06:32
yep
Mason Shin
@minsooshin
Nov 26 2015 06:34
your regex
it should be str.replace(/[\d\W\s]/g, ‘’);
could you try with this regex
seanpull
@seanpull
Nov 26 2015 06:35
just tried and it didn't work
Mason Shin
@minsooshin
Nov 26 2015 06:36
it fails one use case
seanpull
@seanpull
Nov 26 2015 06:37
what do you mean by use case?
Julio Radney
@santijames
Nov 26 2015 06:37
letters
Mason Shin
@minsooshin
Nov 26 2015 06:37
there are a lot of test cases in the left panel
seanpull
@seanpull
Nov 26 2015 06:37
ah yeah it fails 5 of them
DJ
@qualitymanifest
Nov 26 2015 06:38
@seanpull you're comparing newString to the original str which can still contain capitals, spaces, etc
seanpull
@seanpull
Nov 26 2015 06:38
@qualitymanifest okay
@qualitymanifest so I write str.toLowerCase();
Mason Shin
@minsooshin
Nov 26 2015 06:39
it is regex issue
seanpull
@seanpull
Nov 26 2015 06:39
and that doesn't change the results
Mason Shin
@minsooshin
Nov 26 2015 06:39
how about /[^a-zA-Z0-9]/g?
seanpull
@seanpull
Nov 26 2015 06:40
nope, same issue @minsooshin
Mason Shin
@minsooshin
Nov 26 2015 06:40
I have passed with that
Julio Radney
@santijames
Nov 26 2015 06:40
can someone help me with the filter array?
seanpull
@seanpull
Nov 26 2015 06:40
@qualitymanifest I think has a point
the original string still has spaces and uppercase letters and such
Mason Shin
@minsooshin
Nov 26 2015 06:41
function palindrome(str) {
  // Good luck!
  var noSpaceStr = str.replace(/[^a-zA-Z0-9]/g, '').toLowerCase(),
      strArr = noSpaceStr.split(''),
      reversedStr = strArr.reverse().join('');

  if (noSpaceStr === reversedStr) {
    return true;
  } else {
    return false;
  }
}
I have this
I got what @qualitymanifest said before
DJ
@qualitymanifest
Nov 26 2015 06:42
@minsooshin yes, there is a regex issue too. my point was that his if statement was off
Mason Shin
@minsooshin
Nov 26 2015 06:42
@qualitymanifest right
seanpull
@seanpull
Nov 26 2015 06:42
I changed my if statement to this

if (newString.toLowerCase() === str.toLowerCase()) {

return true;

}else{

return false;

}

Mason Shin
@minsooshin
Nov 26 2015 06:43
I just look at his code again, and found it
seanpull
@seanpull
Nov 26 2015 06:43
oops I'm bad with the formatting, sorry
I suppose I can't use this
Mason Shin
@minsooshin
Nov 26 2015 06:43
you shouldn’t compare with str
you need to compare the string without spaces and reversed string
not original string
that is @qualitymanifest’s point
you have two issues, comparing objects are incorrect, and regex
seanpull
@seanpull
Nov 26 2015 06:46
okay I think I fixed the comparison problem
but I'm using your exact regex
DJ
@qualitymanifest
Nov 26 2015 06:48
@seanpull with regex if you want to catch several things you either need to do /thing1|thing2|thing3|/g or /[thing1thing2thing3]/g
Mason Shin
@minsooshin
Nov 26 2015 06:48
str.replace(/[^a-zA-Z0-9]/g, '').toLowerCase();
seanpull
@seanpull
Nov 26 2015 06:48
I'm using @minsooshin's exact regex and I'm still failing two cases
ah nevermind!
got it
DJ
@qualitymanifest
Nov 26 2015 06:48
@seanpull yes, see what i said above. it won't solve all cases but it will help
seanpull
@seanpull
Nov 26 2015 06:49
I didn't use the .toLowerCase() method haha
just completely forgot to type that
Thanks for the help guys!
DJ
@qualitymanifest
Nov 26 2015 06:50
you're saying it works now?
Mason Shin
@minsooshin
Nov 26 2015 06:50
you need to make lower case before reverse
that is it :)
seanpull
@seanpull
Nov 26 2015 06:50
yes it works
DJ
@qualitymanifest
Nov 26 2015 06:50
can you post the final code?
seanpull
@seanpull
Nov 26 2015 06:51

function palindrome(str) {

var spacelessString = str.replace(/[^a-zA-Z0-9]/g, '').toLowerCase();
var stringArray = spacelessString.split('');
reversedString = stringArray.reverse().join('');

if (spacelessString === reversedString) {

return true;

}else{

return false;

}

}

palindrome("eye");

sorry I don't know how to format it
DJ
@qualitymanifest
Nov 26 2015 06:52
@seanpull oookay gotcha. i didn't know you fixed the regex. do you understand why that regex worked?
Herman Fassett
@HermanFassett
Nov 26 2015 06:52
Note, the regex can be shorter
DJ
@qualitymanifest
Nov 26 2015 06:52
there is a simpler version too
@HermanFassett jinx
@HermanFassett well no. you beat me :wink2:
seanpull
@seanpull
Nov 26 2015 06:54
also my variable names could probably be better :P
Herman Fassett
@HermanFassett
Nov 26 2015 06:56
At least you don't have a, b, c, d as some do when they get lazy
seanpull
@seanpull
Nov 26 2015 06:56
LOL that would be confusing to work with
mine are a bit too long, but I like for them to be very readabale
Mason Shin
@minsooshin
Nov 26 2015 07:06
@seanpull, @HermanFassett , @qualitymanifest I can think of /[\W\^d\_]/g
is there shorter regex for it?
Herman Fassett
@HermanFassett
Nov 26 2015 07:06
No need for the \^d...
[\W_] or \W|_ should work
Mason Shin
@minsooshin
Nov 26 2015 07:07
got it
I see, I thought too much
\^d is same as not add itself...
:(
how stupid...
thanks @HermanFassett
CamperBot
@camperbot
Nov 26 2015 07:08
minsooshin sends brownie points to @hermanfassett :sparkles: :thumbsup: :sparkles:
:star: 696 | @hermanfassett | http://www.freecodecamp.com/hermanfassett
nm you get it
Mason Shin
@minsooshin
Nov 26 2015 07:08
yes :) thanks @qualitymanifest
CamperBot
@camperbot
Nov 26 2015 07:08
minsooshin sends brownie points to @qualitymanifest :sparkles: :thumbsup: :sparkles:
:star: 440 | @qualitymanifest | http://www.freecodecamp.com/qualitymanifest
Mason Shin
@minsooshin
Nov 26 2015 07:08
think too much….
Saugat Sthapit
@cowarrior1
Nov 26 2015 07:09
I have a problem::
Use the jQuery addClass() function to give the classes animated and shake to all your elements with the class well.
$(".well").addclass("animated shake");
I did this
but it didnt work
Mason Shin
@minsooshin
Nov 26 2015 07:09
addClass
Saugat Sthapit
@cowarrior1
Nov 26 2015 07:09
can someone tell me?
Mason Shin
@minsooshin
Nov 26 2015 07:09
case sensitive
Saugat Sthapit
@cowarrior1
Nov 26 2015 07:09
oh
thank you very much
:)
DJ
@qualitymanifest
Nov 26 2015 07:09
@cowarrior1 it works as such:
@minsooshin thanks
CamperBot
@camperbot
Nov 26 2015 07:10
qualitymanifest sends brownie points to @minsooshin :sparkles: :thumbsup: :sparkles:
:star: 292 | @minsooshin | http://www.freecodecamp.com/minsooshin
DJ
@qualitymanifest
Nov 26 2015 07:10
:wink2:
Mason Shin
@minsooshin
Nov 26 2015 07:10
:)
seanpull
@seanpull
Nov 26 2015 07:19
hey is there a way to get console.log() to work on the fcc interpreter thing?
like if I created a variable, let's say var x = 5
then I write console.log(x);
it doesn't print out 5
Herman Fassett
@HermanFassett
Nov 26 2015 07:20
It should in your console
F12 in chrome or Ctrl+shift+k firefox
Shyamal H Anadkat
@zostale
Nov 26 2015 07:21
is there anything wrong with this : <img class="smaller-image" src="https://bit.ly/fcc-relaxing-cat">
Aleksandr Sidorov
@AleksandrSidorov
Nov 26 2015 07:22
@zostale use http:// instead
seanpull
@seanpull
Nov 26 2015 07:22
@HermanFassett uhh
why isn't it printing out in the little box on fcc?
Herman Fassett
@HermanFassett
Nov 26 2015 07:23
That only shows the return value
It won't show a log
seanpull
@seanpull
Nov 26 2015 07:24
ahh okay I got it
thanks!
Saugat Sthapit
@cowarrior1
Nov 26 2015 07:25
Change the button with id target4 by italicizing its text. Make sure the text is otherwise unchanged.
I did this:
$("#target4").html("<i> color </i>");
but I dont get it when it says make sure the text is otherwise unchanged
what does that mean?
seanpull
@seanpull
Nov 26 2015 07:27
make sure the text is otherwise unchanged. meaning make sure the text is the same as the original
other than the italicization
if that's a word
Saugat Sthapit
@cowarrior1
Nov 26 2015 07:27
I didnt get it. I'm sorry
seanpull
@seanpull
Nov 26 2015 07:27
do you get it now?
Saugat Sthapit
@cowarrior1
Nov 26 2015 07:28
I need to change it to original word?
seanpull
@seanpull
Nov 26 2015 07:28
no, it means don't change anything about the word
Saugat Sthapit
@cowarrior1
Nov 26 2015 07:28
oh ok
seanpull
@seanpull
Nov 26 2015 07:28
other than the fact that you're making it italicized
Saugat Sthapit
@cowarrior1
Nov 26 2015 07:28
alright I'll try
Thanks
:)
seanpull
@seanpull
Nov 26 2015 07:28
it worked?
Saugat Sthapit
@cowarrior1
Nov 26 2015 07:29
trying
seanpull
@seanpull
Nov 26 2015 07:29
I think you're supposed to use <em> </em> tags for italicizing
Saugat Sthapit
@cowarrior1
Nov 26 2015 07:30
no it didnt work
nor with tags
seanpull
@seanpull
Nov 26 2015 07:31
which waypoint is this?
stupiduh
@stupiduh
Nov 26 2015 07:34
I am attempting Waypoint: Make Instances of Objects with a Constructor Function; after a long hiatus and have forgotten everything
This is the error I get: The property nickname of myCar should be a string.

This is the code: var Car = function() {
this.wheels = 4;
this.engines = 1;
this.seats = 1;

};

// Only change code below this line.

var myCar = new Car ();
myCar.string = "twinengine";

its probably very basic.. can someone help? thanks!
DJ
@qualitymanifest
Nov 26 2015 07:45
@stupiduh paste the link to the waypoint
John Alex
@JhonnyAl
Nov 26 2015 07:46
myCar.nickname= "twinengine";
Srinivasa Tumarada
@srinivastin
Nov 26 2015 07:49
what is wrong with below simple html5

<style>
.red-text {
color: red;
p{
font-size=16px;
}
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

i am novice to html
DJ
@qualitymanifest
Nov 26 2015 07:50
@srinivastin your p is inside of .red-text in your css
should be more like
.some-class {
}
some-element {
}
Srinivasa Tumarada
@srinivastin
Nov 26 2015 07:53
ok thanks for the reply is this looks fine?
brian424
@brian424
Nov 26 2015 08:08
can someone help me understand the meaning of the task : Waypoint: Use Bracket Notation to Find the First Character in a String.
Also, Since i don't understand the meaning the task. i have no idea how to pass it
here is the code
var firstLetterOfFirstName = "";
var firstLetterOfLastName = "L";

var firstName = "Ada";

firstLetterOfFirstName = firstName[0];

var lastName = "Lovelace";

firstLetterOfLastName = lastName;


// Only change code above this line.

(function(v){return v;})(firstLetterOfLastName);
they said i am wrong because "The firstLetterOfLastName variable should have the value of L."
seanpull
@seanpull
Nov 26 2015 08:10
the meaning of the task is simply to get the character at a specific index
so say you did firstLetterOfFirstName = firstName[0];
firstLetterOfFirstName now has the value f
because 0 is the first index
brian424
@brian424
Nov 26 2015 08:12
that's it ? @seanpull
seanpull
@seanpull
Nov 26 2015 08:13
yep, that's it
so what would you change your code to?
just the line you need to change
brian424
@brian424
Nov 26 2015 08:16
i still don't understand what to do. @seanpull
seanpull
@seanpull
Nov 26 2015 08:17
you see what they did with firstLetterOfFirstName?
do the same but with firstLetterOfLastName
brian424
@brian424
Nov 26 2015 08:18
@seanpull i am really basic. i am trying to understand.
i passed @seanpull thank you
CamperBot
@camperbot
Nov 26 2015 08:21
brian424 sends brownie points to @seanpull :sparkles: :thumbsup: :sparkles:
:star: 112 | @seanpull | http://www.freecodecamp.com/seanpull
seanpull
@seanpull
Nov 26 2015 08:29
Np! Congrats on passing :)
brian424
@brian424
Nov 26 2015 08:42
can someone teach me this : Waypoint: Use Bracket Notation to Find the Last Character in a String. here is the code :
var firstName = "Ada";

var lastLetterOfFirstName = firstName[firstName.length - 1];

var lastName = "Lovelace";

var lastLetterOfLastName = lastName[lastName.length - 1]


// Only change code above this line.

(function(v){return v;})(lastLetterOfLastName);
Manish Giri
@Manish-Giri
Nov 26 2015 08:43
@brian424 you access elements of an array or a string by using an index
brian424
@brian424
Nov 26 2015 08:43
what is index? @Manish-Giri
Manish Giri
@Manish-Giri
Nov 26 2015 08:43
that index gives you the letter/number at the position in the array, for ex: index0 will give you the 1st element of an array
index is just the position number of a letter/character or a number in an array
programmers generally call it "index"
for ex: in the array brian
b is at index 0, r is at index 1, i is at index 2 and so on
brian424
@brian424
Nov 26 2015 08:45
oh~~~ i see @Manish-Giri
Manish Giri
@Manish-Giri
Nov 26 2015 08:45
Note that index positions start at 0, which is why you're subtracting 1 from lastName.length to get the last letter
brian424
@brian424
Nov 26 2015 08:46
i don't understand @Manish-Giri
Manish Giri
@Manish-Giri
Nov 26 2015 08:46
@brian424 which part?
brian424
@brian424
Nov 26 2015 08:47
the last part @Manish-Giri
Manish Giri
@Manish-Giri
Nov 26 2015 08:47
ok, hold on
how many letters does the string brian have?
brian424
@brian424
Nov 26 2015 08:47
5 letters
Manish Giri
@Manish-Giri
Nov 26 2015 08:47
right
so, b is at index 0, r is at 1, i is at 2, a is at 3 and n is at 4, correct?
brian424
@brian424
Nov 26 2015 08:48
yes
Manish Giri
@Manish-Giri
Nov 26 2015 08:49
so if you were to tell me what is the position of 'n' in terms of the length of the string "brian" which is 5, how would you answer
brian424
@brian424
Nov 26 2015 08:50
4?
Manish Giri
@Manish-Giri
Nov 26 2015 08:50
correct!
and 4 is 5 -1
so length - 1
Consider this:
if firstName = brian, then firstName[firstName.length] is firstName[5]
because length of brian is 5
brian424
@brian424
Nov 26 2015 08:51
oh~~ i see
Manish Giri
@Manish-Giri
Nov 26 2015 08:52
but starting counting at index 0(b), index 1(r) and so on, the last letter n is at index 4, there's no index[5]
John
@JKoren
Nov 26 2015 08:52

<style>
.red-text {
color: red;
}

h1 {
font-size: 16px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p class="h1">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="h1">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rep the couch sleep in the sink fluffy fur catnip scratched</p>

Manish Giri
@Manish-Giri
Nov 26 2015 08:52
why is why you do firstName[firstName.length-1]
John
@JKoren
Nov 26 2015 08:53
Is this correct but doesn't meet the criteria for the task? Why doesn't the "h1" class name need to start with a period (.) ?
Manish Giri
@Manish-Giri
Nov 26 2015 08:53
@JKoren class names in CSS start with a period
and element names are written just like that, without a period or #
brian424
@brian424
Nov 26 2015 08:53
i start to get confused @Manish-Giri
John
@JKoren
Nov 26 2015 08:54
font-size is an element name, not a class definition then?
Manish Giri
@Manish-Giri
Nov 26 2015 08:54
@JKoren font-size is a CSS rule, which tells you the size of the font
brian424
@brian424
Nov 26 2015 08:54
@Manish-Giri is there more i need to understand to solve the task?
Stefanie
@Phajava
Nov 26 2015 08:55
font-size is a property
Manish Giri
@Manish-Giri
Nov 26 2015 08:55
@brian424 did you understand why 1 was subtracted from the length
brian424
@brian424
Nov 26 2015 08:56
because computers count from 0 @Manish-Giri
Manish Giri
@Manish-Giri
Nov 26 2015 08:56
and what was the original question? I think you've solved it
brian424
@brian424
Nov 26 2015 08:56
okay. let me try. @Manish-Giri
Manish Giri
@Manish-Giri
Nov 26 2015 08:57
@JKoren take a look at this: http://www.w3schools.com/css/css_syntax.asp
Craig Morrison
@frogmorton
Nov 26 2015 08:57
@JKoren classes are given to HTML elements, but they are defined with rules in the CSS, which either sits in a separate .css file, or within style tags on your HTML page
@JKoren so, the class declaration does NOT include a period. The class definition in the CSS DOES start with one.
brian424
@brian424
Nov 26 2015 09:00

i don't understand why the number is 1

var firstName = "Ada";

var lastLetterOfFirstName = firstName[firstName.length - 1];

@Manish-Giri

Craig Morrison
@frogmorton
Nov 26 2015 09:03
@brian424 because indexes are 0-based (they start at zero, not 1), the last character of a string's index can never be equal to the string's length. It'll always be one less... Therefore, myVariable.length - 1
@mariocatch hey man, how are you doing?
brian424
@brian424
Nov 26 2015 09:05
@frogmorton but there are 3 letters so the number should be 2
Craig Morrison
@frogmorton
Nov 26 2015 09:06
Are you saying that code snippet is returning a 1?
It should give you a letter
An a
brian424
@brian424
Nov 26 2015 09:08
@frogmorton are you saying computer only count 0 and 1 so i should count by 0 1 01 0 not 0 1 2 3 4 5
Craig Morrison
@frogmorton
Nov 26 2015 09:08
And yes, for a 3-letter string, the index of the last one should be 2, @brian424 :smile:
brian424
@brian424
Nov 26 2015 09:10
@frogmorton and then why did they give me 1?
Craig Morrison
@frogmorton
Nov 26 2015 09:10
No, I'm not saying that at all... Just that they tend to start counting from 0, instead of 1,
Manish Giri
@Manish-Giri
Nov 26 2015 09:10
@brian424 you need the last letter of the word
and like @frogmorton said, computers start counting at 0, instead of 1.
brian424
@brian424
Nov 26 2015 09:11
@Manish-Giri ???
Kurt Johnson
@pompan129
Nov 26 2015 09:12
@brian424 what gave you 1?
brian424
@brian424
Nov 26 2015 09:12
i need the last letter of the word? @Manish-Giri
Craig Morrison
@frogmorton
Nov 26 2015 09:12
What code is "giving" you a number? That snippet you pasted should give the letter a
Go back and reread the question, @brian424
Kurt Johnson
@pompan129
Nov 26 2015 09:13
@brian424 the last letter is at firstName[2] OR firstName[firstName.length - 1]
brian424
@brian424
Nov 26 2015 09:13
@frogmorton okay
fakeeraser
@fakeeraser
Nov 26 2015 09:19
can anyone help me with sizing images
Craig Morrison
@frogmorton
Nov 26 2015 09:19
How is it going, @brian424
fakeeraser
@fakeeraser
Nov 26 2015 09:19
how do i call my .smaller-image class within my img src
Craig Morrison
@frogmorton
Nov 26 2015 09:20
@fakeeraser you can assign img tags classes too, just like any other HTML element
fakeeraser
@fakeeraser
Nov 26 2015 09:21
@frogmorton is this syntax correct: <img class="smaller-image" src="https://bit.ly/fcc-relaxing-cat">
Craig Morrison
@frogmorton
Nov 26 2015 09:22
It looks ok, is that the exact src link provided? No file format ending? (Like .jpg or .png?)
I'm on mobile, so it's tough to navigate to that waypoint to check
fakeeraser
@fakeeraser
Nov 26 2015 09:24
yeah, it should be correct because the challenge right before this was to include the image and it was approved
could it be that i'm not supposed to include my smaller-image class within the same style tag that includes my font color class and font family/size classes?
okay, i wrote the class in a separate style tag and that seemed to do the trick
got it!!
okay nvm, i think it was because i had an extra curly brace
but when i separated it, i also coincidentally removed the extra curly brace
Craig Morrison
@frogmorton
Nov 26 2015 09:29
Yes, you need to define the classes in separate brackets ;-P
Each with the class name and a leading period (.)
Good job, @fakeeraser
brian424
@brian424
Nov 26 2015 09:33

i don't understand the logic i tried 0 or 7 or 8 without success. i even count backward from last to front haha.

var firstName = "Ada";

var lastLetterOfFirstName = firstName[firstName.length - 1];

var lastName = "Lovelace";

var lastLetterOfLastName = lastName[lastName.length - ]

@frogmorton @Manish-Giri @pompan129

Manish Giri
@Manish-Giri
Nov 26 2015 09:35
@brian424 what did you do when you tried 7 and 8?
can you show us what you did
Craig Morrison
@frogmorton
Nov 26 2015 09:35
@brian424 it's way easier than all that... In fact, they are trying to teach you a pattern that always works for last characters
You attempted those digits after the minus sign, right?
Scott
@Gangezilla
Nov 26 2015 09:36
Hey there, I'm trying to use canvas() to draw a rectangle and it isn't working for me. I know it's something dumb that I'm just not getting lol. Mind if one of you has a quick peek to just point me in the right direction?
function drawCalc(){
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.rect(50, 50, 150, 80);
ctx.stroke();
console.log("drawn.");
Craig Morrison
@frogmorton
Nov 26 2015 09:36
I have a question for you, @brian424 ...
brian424
@brian424
Nov 26 2015 09:37
ya? @frogmorton
Craig Morrison
@frogmorton
Nov 26 2015 09:37
Who is supposed to do calculations, you or the computer?
raw1211
@raw1211
Nov 26 2015 09:38
@brian424 u subtract 1 from length because in an array u use index to access the characters at that location and index starts from 0
brian424
@brian424
Nov 26 2015 09:38
computer because the code is read by computer to understand my command @frogmorton
Manish Giri
@Manish-Giri
Nov 26 2015 09:39
@frogmorton well that worked well.
Craig Morrison
@frogmorton
Nov 26 2015 09:39
Exactly... So let it do the work,
raw1211
@raw1211
Nov 26 2015 09:39
@brian424 so arr="hello"; has a length of 5 but the last character is at 4th index...so when u will write arr[4] u will get'o'
Craig Morrison
@frogmorton
Nov 26 2015 09:40
Haha... I've been avoiding giving the answer, since we already walked through the firstName one
Manish Giri
@Manish-Giri
Nov 26 2015 09:41
@raw1211 we're looking for a simpler explanation
Kurt Johnson
@pompan129
Nov 26 2015 09:41
@raw1211 not quite. arr=["hello"] will have a length of 1. arr = "hello" will have length 5
Manish Giri
@Manish-Giri
Nov 26 2015 09:41
I guess
Craig Morrison
@frogmorton
Nov 26 2015 09:42
@Manish-Giri I understand, I thought there might be an "aha" moment coming
raw1211
@raw1211
Nov 26 2015 09:42
@pompan129 arguments.length will have a length of 1 not array
brian424
@brian424
Nov 26 2015 09:42
haha~ @frogmorton ya i believe that 's the best way for me to make progress
Kurt Johnson
@pompan129
Nov 26 2015 09:42
yes . array has 1 element & it is a string
Manish Giri
@Manish-Giri
Nov 26 2015 09:42
@frogmorton lol yeah, sooner or later, it does come!
raw1211
@raw1211
Nov 26 2015 09:42
@pompan129 if it will be arr=[ ["hello"]]; then arr.length will be 1
Craig Morrison
@frogmorton
Nov 26 2015 09:43
Right, let's hope sooner rather than later ;-P
Kurt Johnson
@pompan129
Nov 26 2015 09:43
no arr = ["a", "b"] has length 2
Paul Patterson
@paullyFIRE
Nov 26 2015 09:43
help!
CamperBot
@camperbot
Nov 26 2015 09:43

Hi, I'm CamperBot! I can help you in this chatroom :smile:

Basic Commands:

  • find TOPIC find all entries about topic. ex: find js
  • wiki TOPIC show contents of topic page
  • thanks @username send brownie points to another user
  • about @username shows info on that user
  • bonfire BONFIRENAME info on a bonfire

:speech_balloon: meet CamperBot in this room!

:pencil: read more about camperbot on the FCC Wiki

Manish Giri
@Manish-Giri
Nov 26 2015 09:43
ignore the term "Stack(Array Implementation)" for now
just write any number in the blank field and click "push" and watch where the number goes
try to push as many numbers as you need to fill up the first row(till 14) and then count how many numbers you pushed
brian424
@brian424
Nov 26 2015 09:45
i even got answer minus 1 @Manish-Giri @pompan129 @frogmorton @raw1211
if Ada is last letter is 1 then the last name's first letter is minus1 @Manish-Giri @pompan129 @frogmorton @raw1211
Craig Morrison
@frogmorton
Nov 26 2015 09:47
@brian424 these waypoints are super focused on one little point at a time... The point in these las
Kurt Johnson
@pompan129
Nov 26 2015 09:48
how many letters in "Ada"?
Jait Jacob
@jaitjacob
Nov 26 2015 09:48
3
Craig Morrison
@frogmorton
Nov 26 2015 09:48
... Last 2 is simply to show an expression that will always give you the last char in a string
trawarijus
@trawarijus
Nov 26 2015 09:49
Hi, what better for first steps of coding PHP or C#??
Kurt Johnson
@pompan129
Nov 26 2015 09:49
yes. but what is at index 0? "A" or "d" or "a"
raw1211
@raw1211
Nov 26 2015 09:49
thanks @pompan129
CamperBot
@camperbot
Nov 26 2015 09:49
raw1211 sends brownie points to @pompan129 :sparkles: :thumbsup: :sparkles:
:star: 325 | @pompan129 | http://www.freecodecamp.com/pompan129
Craig Morrison
@frogmorton
Nov 26 2015 09:49
Neither one... Haha
Kurt Johnson
@pompan129
Nov 26 2015 09:49
cool @raw1211
reallY?
@frogmorton how?
brian424
@brian424
Nov 26 2015 09:50
javascript is more diffiucult to understand than html and css @Manish-Giri @frogmorton @raw1211
raw1211
@raw1211
Nov 26 2015 09:51
@brian424 yes..
Craig Morrison
@frogmorton
Nov 26 2015 09:51
Well, of course... The other two aren't programming languages, per se'
Kaye
@KayeZZ
Nov 26 2015 09:51
anybody in here willing to help with a bonfire?
CamperBot
@camperbot
Nov 26 2015 09:51
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
raw1211
@raw1211
Nov 26 2015 09:51
@KayeZZ which bonfire
Manish Giri
@Manish-Giri
Nov 26 2015 09:52
yeah some avid programmers would rather scorn if you talk about html and css being prog. languages
Kaye
@KayeZZ
Nov 26 2015 09:52
Factorization.
raw1211
@raw1211
Nov 26 2015 09:52
those are web technologies
Kurt Johnson
@pompan129
Nov 26 2015 09:52
@KayeZZ what sup?
Manish Giri
@Manish-Giri
Nov 26 2015 09:52
@brian424 keep at it, in a way, JS is helpful because you can execute it right within the browser and watch the results instantly, without having to go through stuff like class, compiling, etc.
raw1211
@raw1211
Nov 26 2015 09:52
This message was deleted
Craig Morrison
@frogmorton
Nov 26 2015 09:53
They are meant for presentation only
Kaye
@KayeZZ
Nov 26 2015 09:53
ok, so I'm on factorization, and my thinking was that I could factorize n by using a for loop to count down from n and push that into an array, then simply join the array with *
Craig Morrison
@frogmorton
Nov 26 2015 09:53
Although CSS has been extended with things like Sass, to include variables and logic
Rishav Kumar
@rishav171
Nov 26 2015 09:54
var myCar = new Car(6, 3, 1);

var Car = function(wheels,seats,engines) {
//Change this constructor
this.wheels = 4;
this.seats = 1;
this.engines = 1;
};

//Try it out here
var myCar = new Car(3, 1, 2);

// Only change code above this line

(function() {return JSON.stringify(myCar);})();

Santosh Venkatraman
@thesantosh
Nov 26 2015 09:54

Guys, Help please.
Problem : Use the jQuery addClass() function to give the classes animated and shake to all your elements with the class well.
Solution :

<script>
$(document).ready(function() {
$("button").addClass("animated bounce");
$(".well").addClass("animated shake");
});
</script>

Is it right?

raw1211
@raw1211
Nov 26 2015 09:54
@KayeZZ u need to find factorial in this one..right?
Devin Alvaro
@devinalvaro
Nov 26 2015 09:54
guys,
Kurt Johnson
@pompan129
Nov 26 2015 09:54
@KayeZZ try using a total & multiplying as you go. the joining won't work I think
Devin Alvaro
@devinalvaro
Nov 26 2015 09:54

guys

function slasher(arr, howMany) {
  return arr.splice(0, howMany);
}

slasher([1, 2, 3], 2);

why can't this work?

Manish Giri
@Manish-Giri
Nov 26 2015 09:55
@rishav171 I think you need to modify the function definition such that you actually use wheels, seats and engines. Right now, you're just hardcoding the values.
raw1211
@raw1211
Nov 26 2015 09:55
@KayeZZ u need to multiply the numbers..not join them
Kaye
@KayeZZ
Nov 26 2015 09:55
I'll continue this in the helpbonfire chat lol since this is for waypoints
CamperBot
@camperbot
Nov 26 2015 09:55
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
Robert Relativo
@skankpark
Nov 26 2015 09:55
help about this "Only add one class with each of your three selectors."
CamperBot
@camperbot
Nov 26 2015 09:55
no wiki entry for: about this only add one class with each of your three selectors
:pencil: click here to create one now!after creating your page type update to reload it here
Rishav Kumar
@rishav171
Nov 26 2015 09:55

var Car = function(wheels,seats,engines) {
//Change this constructor
this.wheels = 4;
this.seats = 1;
this.engines = 1;
};

//Try it out here
var myCar = new Car(3, 1, 2);

Manish Giri
@Manish-Giri
Nov 26 2015 09:55
this.wheels = wheels @rishav171
Devin Alvaro
@devinalvaro
Nov 26 2015 09:55
the code should delete the first HowMany items of the array
raw1211
@raw1211
Nov 26 2015 09:55
@KayeZZ I have completed those bonfires
Rishav Kumar
@rishav171
Nov 26 2015 09:55
not abel to undesratnd -Then call your new constructor with three number arguments and assign it to myCar to see it in action.
ok thanks
brian424
@brian424
Nov 26 2015 09:56
@Manish-Giri @frogmorton especially thx for you two not only trying to help me undertand but also give me a glimpse of program language world
CamperBot
@camperbot
Nov 26 2015 09:56
brian424 sends brownie points to @manish-giri and @frogmorton :sparkles: :thumbsup: :sparkles:
:star: 342 | @frogmorton | http://www.freecodecamp.com/frogmorton
:star: 233 | @manish-giri | http://www.freecodecamp.com/manish-giri
Devin Alvaro
@devinalvaro
Nov 26 2015 09:56

guys

function slasher(arr, howMany) {
  return arr.splice(0, howMany);
}

slasher([1, 2, 3], 2);

why can't this work? the code should delete the first HowMany items of the array

Robert Relativo
@skankpark
Nov 26 2015 09:56
Only add one class with each of your three selectors.
help
CamperBot
@camperbot
Nov 26 2015 09:56

Hi, I'm CamperBot! I can help you in this chatroom :smile:

Basic Commands:

  • find TOPIC find all entries about topic. ex: find js
  • wiki TOPIC show contents of topic page
  • thanks @username send brownie points to another user
  • about @username shows info on that user
  • bonfire BONFIRENAME info on a bonfire

:speech_balloon: meet CamperBot in this room!

:pencil: read more about camperbot on the FCC Wiki

Manish Giri
@Manish-Giri
Nov 26 2015 09:56
@brian424 anytime! everyone starts at the beginning right.
Rishav Kumar
@rishav171
Nov 26 2015 09:57
thanks @Manish-Giri
CamperBot
@camperbot
Nov 26 2015 09:57
rishav171 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star: 234 | @manish-giri | http://www.freecodecamp.com/manish-giri
Manish Giri
@Manish-Giri
Nov 26 2015 09:57
@rishav171 welcome, and good luck ahead
brian424
@brian424
Nov 26 2015 09:58
@Manish-Giri @frogmorton @raw1211 @pompan129 dinner time for Taiwan bye~ guys
Robert Relativo
@skankpark
Nov 26 2015 09:58
help
CamperBot
@camperbot
Nov 26 2015 09:58

Hi, I'm CamperBot! I can help you in this chatroom :smile:

Basic Commands:

  • find TOPIC find all entries about topic. ex: find js
  • wiki TOPIC show contents of topic page
  • thanks @username send brownie points to another user
  • about @username shows info on that user
  • bonfire BONFIRENAME info on a bonfire

:speech_balloon: meet CamperBot in this room!

:pencil: read more about camperbot on the FCC Wiki

raw1211
@raw1211
Nov 26 2015 09:58
@brian424 bye..
@skankpark post your code
Manish Giri
@Manish-Giri
Nov 26 2015 10:00
Happy Thanksgiving for those of you guys from around the US!!!
raw1211
@raw1211
Nov 26 2015 10:06
@skankpark u need to add one class at a time like $("button").addClass("animated");
$(".btn").addClass("shake");
$("#target1").addClass("btn-primary");
Rishav Kumar
@rishav171
Nov 26 2015 10:08

var Bike = function() {

// Only change code below this line.
var gear =4;
this.getgear=function(){
gear=2;
};
this.setgear=function(){
return gear;
};

wats wrong?
we have to -the method getGear of myBike should be accessible outside the object.
The method setGear of myBike should be accessible outside the object.
raw1211
@raw1211
Nov 26 2015 10:09
@rishav171 its getGear and setGear
@raw1211 and add ; at the end
grapygrape
@grapygrape
Nov 26 2015 10:12
Hey guys, how can I report, that Waypoint-Exercise is not precise enough?
The Info you get *
Samantha Maturen
@slmaturen
Nov 26 2015 10:13
There is a bug button on each waypoint. If there's an issue with a waypoint, use that to report it. :) @grapygrape
grapygrape
@grapygrape
Nov 26 2015 10:14
Oh okay , thanks :).
Rishav Kumar
@rishav171
Nov 26 2015 10:14
thanks raw1211 ! hate typos
Santosh Venkatraman
@thesantosh
Nov 26 2015 10:17
<script>
$(document).ready(function() {
$("button").addClass("animated bounce");
$(".well").addClass("animated shake");
});
</script>
Craig Morrison
@frogmorton
Nov 26 2015 10:17
No problem @brian424 I'm in Japan, btw... Have a nice dinner
raw1211
@raw1211
Nov 26 2015 10:19
@frogmorton do u teach English there?
trawarijus
@trawarijus
Nov 26 2015 10:19
hi... in section ...Waypoint: Uncomment HTML... in clear with Be sure to delete all trailing comment tags, i.e. -->. ???
I'm deleting all trailings...
Samantha Maturen
@slmaturen
Nov 26 2015 10:21
@trawarijus Did you delete the <!-- from the beginning?
trawarijus
@trawarijus
Nov 26 2015 10:21
No.. :(
Samantha Maturen
@slmaturen
Nov 26 2015 10:22
:tongue:
I can see why "trailing" would throw someone off there.
raw1211
@raw1211
Nov 26 2015 10:24
@slmaturen what are ur technical skills?
Robert Relativo
@skankpark
Nov 26 2015 10:24
tnx @raw1211 and @thesantosh
CamperBot
@camperbot
Nov 26 2015 10:24
skankpark sends brownie points to @raw1211 and @thesantosh :sparkles: :thumbsup: :sparkles:
:star: 99 | @thesantosh | http://www.freecodecamp.com/thesantosh
:star: 303 | @raw1211 | http://www.freecodecamp.com/raw1211
trawarijus
@trawarijus
Nov 26 2015 10:24
15/100
Samantha Maturen
@slmaturen
Nov 26 2015 10:24
@raw1211 I'm a Javascript/PHP developer
raw1211
@raw1211
Nov 26 2015 10:25
@slmaturen u know PHP so u must know database too
Samantha Maturen
@slmaturen
Nov 26 2015 10:26
Yeah, I've worked with MySQL. Would like to get some practice with MongoDB
raw1211
@raw1211
Nov 26 2015 10:27
@slmaturen do u know any programming language
Craig Morrison
@frogmorton
Nov 26 2015 10:27
Yes, I do, @raw1211
Robert Relativo
@skankpark
Nov 26 2015 10:28
@frogmorton are you in japan?
Samantha Maturen
@slmaturen
Nov 26 2015 10:28
Programming languages? Yeah, PHP and Javascript.
Craig Morrison
@frogmorton
Nov 26 2015 10:28
But trying to do a career switch to this stuff :smile:
raw1211
@raw1211
Nov 26 2015 10:28
@frogmorton the moment i saw ur pic and u mentioned Japan..i thought that u must be an English teacher
Craig Morrison
@frogmorton
Nov 26 2015 10:29
Haha... That obvious, eh?
My wife is Japanese
Anyways, dinner time gotta go.... Take care @raw1211 everyone else :smile:
raw1211
@raw1211
Nov 26 2015 10:30
@frogmorton But still majority of Japanese can't speak English..even though they have English teachers from countries that have English as their mother tongue
Craig Morrison
@frogmorton
Nov 26 2015 10:31
So true
I must not be doing my job very well
:worried:
raw1211
@raw1211
Nov 26 2015 10:31
japan is the first country on my list that i will visit when i will start travelling
Robert Relativo
@skankpark
Nov 26 2015 10:32
@raw1211 me too :)
Craig Morrison
@frogmorton
Nov 26 2015 10:32
It's a great place, although expensive
raw1211
@raw1211
Nov 26 2015 10:33
@frogmorton i think they r gud with the grammar part..but since they don't speak too much English in real life..they are not gud at it
at conversing
John Irle
@JohnIrle
Nov 26 2015 10:37
This message was deleted
var isLeapYear = function(year) {
  if (year % 4 === 0) {

    if (year % 100 === 0 && year % 400 === 0) {
      return true;
    } else {
      return false;
    }

  } else {
    return false;
  }
};
Robert Relativo
@skankpark
Nov 26 2015 10:43
$("button").addClass("animated");
$(".btn").addClass("shake");
$("#target1").addClass(btn-primary.") not working @raw1211 :(
raw1211
@raw1211
Nov 26 2015 10:43
@skankpark what is ur code
gts00k
@gts00k
Nov 26 2015 10:43
lol
raw1211
@raw1211
Nov 26 2015 10:43
post all the code
gts00k
@gts00k
Nov 26 2015 10:43
@skankpark you forgot a "
in the btn.primary
raw1211
@raw1211
Nov 26 2015 10:44
@skankpark $("#target1").addClass("btn-primary");
Robert Relativo
@skankpark
Nov 26 2015 10:44
$("button").addClass("animated");
$(".btn").addClass("shake");
$("#target1").addClass("btn-primary.")
raw1211
@raw1211
Nov 26 2015 10:44
@raw1211 check the third one
Robert Relativo
@skankpark
Nov 26 2015 10:44
$("button").addClass("animated");
$(".btn").addClass("shake");
$("#target1").addClass("btn-primary."); not working :(
gts00k
@gts00k
Nov 26 2015 10:44
also why do you have a dot ?
raw1211
@raw1211
Nov 26 2015 10:44
u have a dot after btn-primary
gts00k
@gts00k
Nov 26 2015 10:44
"btn-primary"
Robert Relativo
@skankpark
Nov 26 2015 10:45
ok
gts00k
@gts00k
Nov 26 2015 10:45
get rid of the dot and you will be fine
Robert Relativo
@skankpark
Nov 26 2015 10:45
this is the last one
Your #target1 element should have the classes animated‚ shake and btn-primary.
gts00k
@gts00k
Nov 26 2015 10:45
ok
raw1211
@raw1211
Nov 26 2015 10:46
@skankpark yes u have done that in the code
Robert Relativo
@skankpark
Nov 26 2015 10:47
ok tnx @gts00k @raw1211
CamperBot
@camperbot
Nov 26 2015 10:47
skankpark sends brownie points to @gts00k and @raw1211 :sparkles: :thumbsup: :sparkles:
:warning: skankpark already gave raw1211 points
:warning: could not find receiver for gts00k
gts00k
@gts00k
Nov 26 2015 10:47
@skankpark say thanks to gts0uk
CamperBot
@camperbot
Nov 26 2015 10:47
gts00k sends brownie points to @skankpark :sparkles: :thumbsup: :sparkles:
:star: 115 | @skankpark | http://www.freecodecamp.com/skankpark
gts00k
@gts00k
Nov 26 2015 10:47
that's my name in FCC
:D
Robert Relativo
@skankpark
Nov 26 2015 10:48
Your #target1 element should have the classes animated‚ shake and btn-primary
raw1211
@raw1211
Nov 26 2015 10:48
@skankpark post the code
Robert Relativo
@skankpark
Nov 26 2015 10:48
$("button").addClass("animated");
$(".btn").addClass("shake");
$("#target1").addClass("btn-primary");
raw1211
@raw1211
Nov 26 2015 10:48
@skankpark rest code??
Robert Relativo
@skankpark
Nov 26 2015 10:49
is that all my code :)
raw1211
@raw1211
Nov 26 2015 10:49
lol
wrong
Robert Relativo
@skankpark
Nov 26 2015 10:49
wrong?
raw1211
@raw1211
Nov 26 2015 10:49
u need to have html elements too
why did u delete the other part
Robert Relativo
@skankpark
Nov 26 2015 10:51
no i don't delete the other part
here's the quiz
Use the $("button") selector.
Use the $(".btn") selector.
Use the $("#target1") selector.
Only add one class with each of your three selectors.
Your #target1 element should have the classes animated‚ shake and btn-primary.
Only use jQuery to add these classes to the element.
raw1211
@raw1211
Nov 26 2015 10:53
@skankpark u need to have a button for that
Robert Relativo
@skankpark
Nov 26 2015 10:53
ok tnx @raw1211
CamperBot
@camperbot
Nov 26 2015 10:53
skankpark sends brownie points to @raw1211 :sparkles: :thumbsup: :sparkles:
:warning: skankpark already gave raw1211 points
raw1211
@raw1211
Nov 26 2015 10:54
@skankpark
<script>
  $(document).ready(function() {
    $("button").addClass("animated");
$(".btn").addClass("shake");
$("#target1").addClass("btn-primary");

  });
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <h4>#left-well</h4>
      <div class="well" id="left-well">
        <button class="btn btn-default target" id="target1">#target1</button>
        <button class="btn btn-default target" id="target2">#target2</button>
        <button class="btn btn-default target" id="target3">#target3</button>
      </div>
    </div>
    <div class="col-xs-6">
      <h4>#right-well</h4>
      <div class="well" id="right-well">
        <button class="btn btn-default target" id="target4">#target4</button>
        <button class="btn btn-default target" id="target5">#target5</button>
        <button class="btn btn-default target" id="target6">#target6</button>
      </div>
    </div>
  </div>
</div>
this is the actual code
Robert Relativo
@skankpark
Nov 26 2015 10:56
sorry i was so noob. my internet connection my problem i didn't load my code completely :)
raw1211
@raw1211
Nov 26 2015 10:57
@skankpark yeah..my filipino friend told me about the internet issues
Robert Relativo
@skankpark
Nov 26 2015 10:58
:)
btw tnx for helping @raw1211 :)
CamperBot
@camperbot
Nov 26 2015 10:58
skankpark sends brownie points to @raw1211 :sparkles: :thumbsup: :sparkles:
:warning: skankpark already gave raw1211 points
raw1211
@raw1211
Nov 26 2015 10:59
np
Robert Relativo
@skankpark
Nov 26 2015 11:05

<script>
$(document).ready(function() {
$("button").addClass("animated");
$(".btn").addClass("shake");
$("#target1").addClass("animated shake btn-primary");
});
</script>

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>

here's my code @raw1211
Only add one class with each of your three selectors. <- this is the error :(
Blauelf
@Blauelf
Nov 26 2015 11:07
@skankpark For the future: Only post relevant code (the script part in this case), and use lines of ``` before and after your code.
Remove that "animated shake " from your third addClass line.
Robert Relativo
@skankpark
Nov 26 2015 11:08
tnx @Blauelf
CamperBot
@camperbot
Nov 26 2015 11:08
skankpark sends brownie points to @blauelf :sparkles: :thumbsup: :sparkles:
:star: 495 | @blauelf | http://www.freecodecamp.com/blauelf
zunaid
@zunaidq07
Nov 26 2015 11:10
Your div element should have the class container-fluid.
Make sure each of your div elements has a closing tag.
Make sure you have nested all HTML elements in .container-fluid.
what i am supposed to do here????
Manish Giri
@Manish-Giri
Nov 26 2015 11:11
@zunaidq07
<div class="container-fluid">
...
</div>
all your existing HTML elements go in between this div
zunaid
@zunaidq07
Nov 26 2015 11:12

@Manish-Giri <link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
.container-fluid{
padding-left:0;
padding-right:0;

}
</style>

<div class="conatiner-fluid">

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>

<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>

i am doing the same but level is not getting completed
Manish Giri
@Manish-Giri
Nov 26 2015 11:16
@zunaidq07 try the "reset code" thing and do it again
sometimes it works that way
Abhisek Pattnaik
@abhisekp
Nov 26 2015 11:17
explain format
CamperBot
@camperbot
Nov 26 2015 11:17

:point_right: code format [wiki]

Inline code

This an inline `<paste code here>` code formatting with a single backtick(`) at start and end around the code.

Code Block

``` ⇦ Type 3 backticks and then press [shift + enter ⏎]

<paste your code here>,
then press [shift + enter ⏎]

``` ⇦ Type 3 backticks, then press [enter ⏎]

How to Code

See also: ☛ How to type Backticks | ☯ Compose Mode | ❄ Gitter Formatting Basics

:pencil: read more about code format on the FCC Wiki

Abhisek Pattnaik
@abhisekp
Nov 26 2015 11:17
@zunaidq07 :point_up: November 26, 2015 4:47 PM
@skankpark :point_up: November 26, 2015 4:47 PM
Samantha Maturen
@slmaturen
Nov 26 2015 11:18
thanks @camperbot
CamperBot
@camperbot
Nov 26 2015 11:18
slmaturen sends brownie points to @camperbot :sparkles: :thumbsup: :sparkles:
:star: 612 | @camperbot | http://www.freecodecamp.com/camperbot
gts00k
@gts00k
Nov 26 2015 11:20
@camperbot good morning
Julia
@julia-be
Nov 26 2015 11:25

Iterate over Arrays with map: var newArray = oldArray;

var plusThree = oldArray.map(function(val){

return val + 3;

});

what is my mistake? can samebody help, please?
Trevor Murphy
@summerfr33ze
Nov 26 2015 11:27
the variable is called newArray, not plusThree
I think the rest is fine though
gts00k
@gts00k
Nov 26 2015 11:28
@mpj hey there
Julia
@julia-be
Nov 26 2015 11:29
thanks @summerfr33ze :clap:
CamperBot
@camperbot
Nov 26 2015 11:29
julia-be sends brownie points to @summerfr33ze :sparkles: :thumbsup: :sparkles:
:star: 176 | @summerfr33ze | http://www.freecodecamp.com/summerfr33ze
Trevor Murphy
@summerfr33ze
Nov 26 2015 11:35

```array = array.filter(function(val) {

return val ;```

I'm supposed to put something after val to make all elements greater than 5 in the array go away, but I'm not sure how
raw1211
@raw1211
Nov 26 2015 11:37
@summerfr33ze return val<6;
Fawzi
@fouadah94
Nov 26 2015 11:37
Hello
Can someone help me with : Waypoint: Target the same element with multiple jQuery Selectors
what am i doing wrong?
Aleksander Gębicki
@Takumar
Nov 26 2015 11:38
@fouadah94 sure. You have to add one class at a time.
You access your elements correct, but only in first case ("button") you add one class.
raw1211
@raw1211
Nov 26 2015 11:38
@fouadah94 the problem has been discussed above
check it
@fouadah94 $("button").addClass("animated");
$(".btn").addClass("shake");
$("#target1").addClass(" btn-primary");
Fawzi
@fouadah94
Nov 26 2015 11:40
@Takumar @raw1211 thanx!!!
CamperBot
@camperbot
Nov 26 2015 11:40
fouadah94 sends brownie points to @takumar and @raw1211 :sparkles: :thumbsup: :sparkles:
:star: 304 | @raw1211 | http://www.freecodecamp.com/raw1211
:star: 894 | @takumar | http://www.freecodecamp.com/takumar
Trevor Murphy
@summerfr33ze
Nov 26 2015 11:41

@raw1211 it's outputting "array is not defined" when i try that. here's all my code

var oldArray = [1,2,3,4,5,6,7,8,9,10];

// Only change code below this line.

var newArray = oldArray;

array = array.filter(function(val) {

return val < 6 ;

});
// Only change code above this line.

(function() { return newArray; })();

raw1211
@raw1211
Nov 26 2015 11:42
@summerfr33ze newArray = oldArray.filter(function(val) {
return val < 6 ;
});
@summerfr33ze u should check ur variable names before using them
Trevor Murphy
@summerfr33ze
Nov 26 2015 11:43
ohhhhh. right. thanks @raw1211
CamperBot
@camperbot
Nov 26 2015 11:43
summerfr33ze sends brownie points to @raw1211 :sparkles: :thumbsup: :sparkles:
:star: 305 | @raw1211 | http://www.freecodecamp.com/raw1211
Aleksander Gębicki
@Takumar
Nov 26 2015 11:43
@summerfr33ze you unnecessary assign oldArray to newArray here: var newArray = oldArray; now they are pointing to the same array! You don't copy content of oldArray to newArray. When you modify oldArray you also are modyfying newArray - remember about it.
oldArray.filter() creates a new Array (filtered) so you can assign it's result to newArray and you have completely new content in newArray.
raw1211
@raw1211
Nov 26 2015 11:44
This message was deleted
This message was deleted
Trevor Murphy
@summerfr33ze
Nov 26 2015 11:47
@Takumar I actually have no memory of doing that. I think that must've already been there.
raw1211
@raw1211
Nov 26 2015 11:47
@summerfr33ze yaa..it was already written there
Trevor Murphy
@summerfr33ze
Nov 26 2015 11:47
@Takumar yeah, I'm on the next waypoint and it also has that
every time I click my scroll wheel in chat the page gets stuck and I have to restart my browser. Anybody have any ideas on how to stop that from happening
Aleksander Gębicki
@Takumar
Nov 26 2015 11:50
@summerfr33ze maybe run such example:
var arr1 = [1, 2];
var arr2 = arr1;
  arr2.push(3);
console.log(arr1); // this will display [1,2,3] although we changed arr2!
Trevor Murphy
@summerfr33ze
Nov 26 2015 11:51
@Takumar I totally agree with you and I wouldn't have put it there... it just showed up
Aleksander Gębicki
@Takumar
Nov 26 2015 11:51
@summerfr33ze if you understand it, sorry for that. I don't remember what I already know, so I also can't remember what you know :-)
Trevor Murphy
@summerfr33ze
Nov 26 2015 11:54
it's cool. I'd rather have someone telling me what's wrong with my code than doing things wrong
Trevor Murphy
@summerfr33ze
Nov 26 2015 12:14

var array = [1,2,3,4,5,6,7];

// Only change code below this line.

var newArray = array;

newArray.reverse(function(a, b) {

return a - b;
});

The output is right, but it's saying I should use the reverse method which I thought I did.

Julia
@julia-be
Nov 26 2015 12:17
This message was deleted
Aleksander Gębicki
@Takumar
Nov 26 2015 12:18
@summerfr33ze I think that you combine sort() method with reverse().
raw1211
@raw1211
Nov 26 2015 12:18
@summerfr33ze var newArray = array.reverse();
Blauelf
@Blauelf
Nov 26 2015 12:18
What's this function for? This is Array.reverse(), not Array.sort()
Trevor Murphy
@summerfr33ze
Nov 26 2015 12:20
I figured there was something extra I had to do with it for some reason thx @raw1211 @Takumar
CamperBot
@camperbot
Nov 26 2015 12:20
summerfr33ze sends brownie points to @raw1211 and @takumar :sparkles: :thumbsup: :sparkles:
:warning: summerfr33ze already gave raw1211 points
:star: 895 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Nov 26 2015 12:20
@summerfr33ze reverse() method reverses the order of the elements in an array and it doesn't need any parameters.
Trevor Murphy
@summerfr33ze
Nov 26 2015 12:20
ok
raw1211
@raw1211
Nov 26 2015 12:21
@summerfr33ze u had sorted the array in ascending order by mistake.
Blauelf
@Blauelf
Nov 26 2015 12:21
For both reverse() and sort(), note that they change the array they are called on and return it, unlike for example String.split() and Array.join(), which do not change the object and return a new one.
Abhisek Pattnaik
@abhisekp
Nov 26 2015 12:34

@summerfr33ze Which is written in the documentation as

The sort() method sorts the elements of an array in place and returns the array. The sort is not necessarily stable. The default sort order is according to string Unicode code points.

in place is an hint to know which methods manipulates things.

Janet Putnam
@jputnam728
Nov 26 2015 12:36
Hello. Newby here. Working on the Waypoint: Learn how Script Tags work in the Jquery section. When I add my <script tag (yes, I know I didn't put the > in there. But that is when the issue happens) the phone display goes completely white. And if I finish the tag and hit "test" all of the tests are removed and that section is blank as well. Anybody experience this?
Craig Morrison
@frogmorton
Nov 26 2015 12:39
@jputnam728 are you including any attributes in the tag?
Blauelf
@Blauelf
Nov 26 2015 12:39
Have you added a closing </script> tag?
Craig Morrison
@frogmorton
Nov 26 2015 12:40
That too .... Lol
raw1211
@raw1211
Nov 26 2015 12:41
@jputnam728 <script></script> is what u need
Craig Morrison
@frogmorton
Nov 26 2015 12:43
@raw1211 Rather than just handing someone the answer, why don't you do something like, "what is the syntax for script tags?" And find out if they know or not
Janet Putnam
@jputnam728
Nov 26 2015 12:43
Yes, my tag looks like <script></script> I was just showing you at what point it went white.
raw1211
@raw1211
Nov 26 2015 12:44
@frogmorton i tried but most people only want the answer..
they can probably understand better after it's done
Craig Morrison
@frogmorton
Nov 26 2015 12:45
Yes, well... You're not helping to make them self-sufficient
Janet Putnam
@jputnam728
Nov 26 2015 12:45
The finished is <script> $(document).ready(function() {
});</script>
raw1211
@raw1211
Nov 26 2015 12:46
@jputnam728 looks fine