These are chat archives for FreeCodeCamp/Help

4th
Jan 2016
Brian
@sludge256
Jan 04 2016 00:00
@rckymtndev You have a space in your second col-xs-6 div
@BombaShack Yup
Gabriel Tholander
@BombaShack
Jan 04 2016 00:00
27 I think
Brian
@sludge256
Jan 04 2016 00:00
@BombaShack You're supposed to nest the existing anchor not create a new one
Gabriel Tholander
@BombaShack
Jan 04 2016 00:00
Yup it did work :P
Ok xD
Brian
@sludge256
Jan 04 2016 00:00
Not an uncommon mistake don't worry about it
Kimber
@Kimber217
Jan 04 2016 00:01
@sludge256 i have a question myself if youv'e already gotten through the word point checkpoint
i'm getting the approval to move ahead
Brian
@sludge256
Jan 04 2016 00:01
@Kimber217 Word blanks?
Kimber
@Kimber217
Jan 04 2016 00:01
but i'm thinking my code might not be the ideal code to use in this scenario
called checkpoint: word blanks
Brian H
@rckymtndev
Jan 04 2016 00:02
@sludge256 closed the gap didnt work
Brian
@sludge256
Jan 04 2016 00:03
@rckymtndev oh
Your end div should be inside the form
Brian H
@rckymtndev
Jan 04 2016 00:03
let me refresh
Brian
@sludge256
Jan 04 2016 00:04
@Kimber217 Post away
Seryaph
@Seryaph
Jan 04 2016 00:04
Hey guys, I need some help with the Checkpoint: Stand in Line
Brian
@sludge256
Jan 04 2016 00:05
@Seryaph We'll lead you to the :bulb:
Seryaph
@Seryaph
Jan 04 2016 00:05
also, how do you post formatted code on here?
Brian H
@rckymtndev
Jan 04 2016 00:05
it is. I did switch it. no go
Brian
@sludge256
Jan 04 2016 00:05
explain format
CamperBot
@camperbot
Jan 04 2016 00:05

:point_right: code formatting [wiki]

Inline code

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

Code Block

```js ⇦ Type 3 backticks and then press [shift + enter ⏎] (type js or html or css)

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

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

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

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

Brian
@sludge256
Jan 04 2016 00:05
@rckymtndev which wp are you on? and can you post your most recent code
Brian H
@rckymtndev
Jan 04 2016 00:05
sure
Waypoint: Responsively Style Radio Buttons
Kimber
@Kimber217
Jan 04 2016 00:06
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
    var result = "";
    // Your code below this line
result = myNoun + " "+ myAdjective + " " + myVerb + " " + myAdverb;

    // Your code above this line
  return result;
}

// Change the words here to test your function
wordBlanks("dog", "big", "ran", "quickly");
Brian H
@rckymtndev
Jan 04 2016 00:06
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  h2 {
    font-family: Lobster, Monospace;
  }

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

<div class="container-fluid">
  <div class="row">
    <div class="col-xs-8">
      <h2 class="text-primary text-center">CatPhotoApp</h2>
    </div>
    <div class="col-xs-4">
      <a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>
    </div>
  </div>
  <img src="http://bit.ly/fcc-running-cats" class="img-responsive">
  <div class="row">
    <div class="col-xs-4">
      <button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
    </div>
    <div class="col-xs-4">
      <button class="btn btn-block btn-info"><i class="fa fa-info-circle"></i> Info</button>
    </div>
    <div class="col-xs-4">
      <button class="btn btn-block btn-danger"><i class="fa fa-trash"></i> Delete</button>
    </div>
  </div>
  <p>Things cats <span class="text-danger">love:</span></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">
    <div class="row">
      <div class="col-xs-6">
        <label><input type="radio" name="indoor-outdoor"> Indoor</label></div>
       <div class="col-xs-6">
        <label><input type="radio" name="indoor-outdoor"> Outdoor</label></div>
    <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>
    </div></form>
Seryaph
@Seryaph
Jan 04 2016 00:06
```
Kimber
@Kimber217
Jan 04 2016 00:07
@sludge256 just posted above
RickGrimes808
@RickGrimes808
Jan 04 2016 00:07
Having trouble on waypoint: finding a remainder in Javascript. Think I may be over thinking the instructions ( Set remainder equal to the remainder of 11 divided by 3 using the remainder (%) operator). Am I dividing 11/3?
Kimber
@Kimber217
Jan 04 2016 00:08
switch out the division operator with the remainder operator @RickGrimes808 :)
Seryaph
@Seryaph
Jan 04 2016 00:08
var myArr = [1,2,3,4,5];

function queue(arr, item) {
  // Your code here
  arr = arr.push(item);
  arr = arr.shift();
  return arr;
```
Kimber
@Kimber217
Jan 04 2016 00:08
if that makes no sense, i'll clarify further @RickGrimes808
Seryaph
@Seryaph
Jan 04 2016 00:08
I keep getting either a maximum call stack error, or a type error saying arr.shift is not a function
RickGrimes808
@RickGrimes808
Jan 04 2016 00:09
Thanks @Kimber217 it makes perfect sense
CamperBot
@camperbot
Jan 04 2016 00:09
rickgrimes808 sends brownie points to @kimber217 :sparkles: :thumbsup: :sparkles:
:star: 208 | @kimber217 | http://www.freecodecamp.com/kimber217
Ray
@rbjr
Jan 04 2016 00:09
@Seryaph if it says that, copy your code and refresh the page, its a bug
Reynaldo Pena
@ReyPena
Jan 04 2016 00:10
hi so im having a problem with this
Encode the following sequence, separated by spaces:
backslash tab tab carriage-return new-line and assign it to myStr

```var myStr; // Change this line

myStr = "\ backslash \t tab \t tab \r carriage-return \n new-line";```

Kimber
@Kimber217
Jan 04 2016 00:11
@ReyPena take out the names, i believe
meaning, for backslash, use \ instead of \ backslash
Seryaph
@Seryaph
Jan 04 2016 00:11
@rbjr how do you refresh the page so that the code you've already added in doesn't show up again?
Kimber
@Kimber217
Jan 04 2016 00:11
@Seryaph reset code
Seryaph
@Seryaph
Jan 04 2016 00:11
actually nvm
Ray
@rbjr
Jan 04 2016 00:11
you can reset
Seryaph
@Seryaph
Jan 04 2016 00:12
yeah, i saw that right after i sent that last one, lol
Reynaldo Pena
@ReyPena
Jan 04 2016 00:12
thank you it work
Brian
@sludge256
Jan 04 2016 00:12
@Kimber217 So are you wondering why your code doesn't pass?
Kimber
@Kimber217
Jan 04 2016 00:12
@ReyPena yeah that one took me a while to figure out
Seryaph
@Seryaph
Jan 04 2016 00:12
reset ain't doing it for me, keep getting the same error
Kimber
@Kimber217
Jan 04 2016 00:12
@Seryaph no it's passing, i just feel like it doesn't seem like it's the most efficient code
Ray
@rbjr
Jan 04 2016 00:12
also, try setting your array to a new name and return that new name
Reynaldo Pena
@ReyPena
Jan 04 2016 00:13
@Kimber217 thank you very much
CamperBot
@camperbot
Jan 04 2016 00:13
reypena sends brownie points to @kimber217 :sparkles: :thumbsup: :sparkles:
:star: 209 | @kimber217 | http://www.freecodecamp.com/kimber217
Brian
@sludge256
Jan 04 2016 00:13
@Seryaph dont assign the shifted value to your array
it will erase what you did with push
Kimber
@Kimber217
Jan 04 2016 00:14
@sludge256 like it's passing through, but i have a feeling they were looking for a different process to getting the answer, but i'm not sure
Seryaph
@Seryaph
Jan 04 2016 00:15
var myArr = [1,2,3,4,5];

function queue(arr, item) {
  // Your code here
  var secArr = myArr.push(item);
  var thirdArr = secArr.shift();
  return thirdArr;
Ray
@rbjr
Jan 04 2016 00:15
such as arrNew = arr. push(item); arr.shift(); return arrNew;
Seryaph
@Seryaph
Jan 04 2016 00:16
the checkpoint asks that the function return the element that was removed
Iyad87
@Iyad87
Jan 04 2016 00:16
" $("target4").html("<i>jQuery Funhouse</i>"); "
Italicize the text in your target4 button by adding HTML tags.
Brian
@sludge256
Jan 04 2016 00:16
@rckymtndev so you should have both a </div> inside and outside of </form>
Seryaph
@Seryaph
Jan 04 2016 00:16
still getting the maximum call stack size error
Iyad87
@Iyad87
Jan 04 2016 00:16
is this ok guys??
Ray
@rbjr
Jan 04 2016 00:16
copy all your code and close down the browser and restart
Brian
@sludge256
Jan 04 2016 00:16
@Seryaph Can you try restarting your browser
Erland Lami
@Texber
Jan 04 2016 00:17
Please help
Seryaph
@Seryaph
Jan 04 2016 00:17
yeah gimme a sec I'll give that a whirl. Thanks for the help!
Brian
@sludge256
Jan 04 2016 00:17
@Kimber217 Your code seems fine
KoToZ
@Mohamedtareque
Jan 04 2016 00:18
i have stuck at Checkpoint: Record Collection [89]
Erland Lami
@Texber
Jan 04 2016 00:18
"""
KoToZ
@Mohamedtareque
Jan 04 2016 00:18

this is my code >>>

<<// Setup
var collection = {
2548: {
album: "Slippery When Wet",
artist: "Bon Jovi",
tracks: [
"Let It Rock",
"You Give Love a Bad Name"
]
},
2468: {
album: "1999",
artist: "Prince",
tracks: [
"1999",
"Little Red Corvette"
]
},
1245: {
artist: "Robert Palmer",
tracks: [ ]
},
5439: {
album: "ABBA Gold"
}
};
// Keep a copy of the collection for tests
var collectionCopy = JSON.parse(JSON.stringify(collection));

// Only change code below this line
function update(id, prop, value) {
if (id[prop][value]!==""){
id[prop]=value ;
}
else if (id[prop][value] === "tracks" && id[prop][value]!=="" ){
id.tracks.push([value]);
}
else if (id[prop].value === ""){
delete id[prop].value;
}

return collection;
}

// Alter values below to test your code
update(5439, "artist", "ABBA");

>

Ray
@rbjr
Jan 04 2016 00:19
np @Seryaph
help waypoint nesting for loops
CamperBot
@camperbot
Jan 04 2016 00:19
no wiki entry for: waypoint nesting for loops
CekaI
@cekai
Jan 04 2016 00:19
@Mohamedtareque i am on that part right now too
i have only parts of it to work
Erland Lami
@Texber
Jan 04 2016 00:19
var a;
var b = 2;
CekaI
@cekai
Jan 04 2016 00:19
i will show you what i have so far
Aad95
@Aad95
Jan 04 2016 00:19
Hey guys im feeling really stupid but im having trouble with waypoint: using objects for lookups
Erland Lami
@Texber
Jan 04 2016 00:19
it says

Assign the value 7 to variable a

Assign the contents of a to variable b.

Seryaph
@Seryaph
Jan 04 2016 00:19
Mk, shut it all down, tried it again, even reset the code one more time and it's still the same thing
is it just a bug?
scgordo
@scgordo
Jan 04 2016 00:19
I'm on record collection as well, and I cannot get any tests to pass
Aad95
@Aad95
Jan 04 2016 00:20
I turned the switch statements into a lookup table but thats kinda where i get stuck

function phoneticLookup(val) {
var result = "";

// Only change code below this line

var lookup = {
"alpha": "Adams",
"bravo": "Boston",
"charlie": "Chicago",
"delta": "Denver",
"echo": "Easy",
"foxtrot": "Frank"

};

// Only change code above this line
return result;
}

// Change this value to test
phoneticLookup("charlie");

Anyone who can help :P?
Erland Lami
@Texber
Jan 04 2016 00:20
var a;
var b = 2;

Assign the value 7 to variable a

Assign the contents of a to variable b.

please help anyone
Aad95
@Aad95
Jan 04 2016 00:21
var a = 7 ;
var b = a ;
scgordo
@scgordo
Jan 04 2016 00:21
@Aad95 check your return. result is never getting altered, so you're just returning undefined
Aad95
@Aad95
Jan 04 2016 00:21
eh but they are telling you to not tamper with that part of the code
ooh
wait
yeah nvm
scgordo
@scgordo
Jan 04 2016 00:22
@Aad95 I think that's a bug
Aad95
@Aad95
Jan 04 2016 00:22
Hm alright thanks
Erland Lami
@Texber
Jan 04 2016 00:22
yes @Aad95 it still does
@Aad95 it's still not resolved
Aad95
@Aad95
Jan 04 2016 00:23
i dont know then sorry @Texber
Bill
@kirah1314
Jan 04 2016 00:23
@Aad95 set result to equal lookupvariable's values
careyd62
@careyd62
Jan 04 2016 00:24
Stuck on Waypoint: Return Early Pattern for Functions. Not sure what method to apply.
Erland Lami
@Texber
Jan 04 2016 00:24
I resolved it by typing it below the line. Thanks @Aad95
CamperBot
@camperbot
Jan 04 2016 00:24
texber sends brownie points to @aad95 :sparkles: :thumbsup: :sparkles:
CekaI
@cekai
Jan 04 2016 00:24
@Mohamedtareque @scgordo i have messaged you privately to work on record collection, have you not gotten the private message?
CamperBot
@camperbot
Jan 04 2016 00:24
:star: 241 | @aad95 | http://www.freecodecamp.com/aad95
Leonard Johnson
@Jarvis3000
Jan 04 2016 00:25
Checkpoint Stand in Line keeps giving me Maximum call stack size exceeded. What does that mean?
Ashley
@atan77
Jan 04 2016 00:26
@Texber you don't need to modify code below the line to solve it
careyd62
@careyd62
Jan 04 2016 00:27
Good evening! Stuck on Waypoint: Return Early Pattern for Functions. Not sure what method to apply. Hints, anyone???
Erland Lami
@Texber
Jan 04 2016 00:27
thanks @scgordo
CamperBot
@camperbot
Jan 04 2016 00:27
texber sends brownie points to @scgordo :sparkles: :thumbsup: :sparkles:
:star: 243 | @scgordo | http://www.freecodecamp.com/scgordo
Erland Lami
@Texber
Jan 04 2016 00:27
thanks @atan77
CamperBot
@camperbot
Jan 04 2016 00:27
texber sends brownie points to @atan77 :sparkles: :thumbsup: :sparkles:
:star: 391 | @atan77 | http://www.freecodecamp.com/atan77
Ashley
@atan77
Jan 04 2016 00:28
@Texber did you solve it without modifying the code below the line?
CekaI
@cekai
Jan 04 2016 00:28

hello guys, can someone tell me what I have done wrong? I have most parts working but not all. This is the checkpoint: record collection problem.

I have attached my my work so far and the instructions:

// Setup
var collection = {
    2548: {
      album: "Slippery When Wet",
      artist: "Bon Jovi",
      tracks: [ 
        "Let It Rock", 
        "You Give Love a Bad Name" 
      ]
    },
    2468: {
      album: "1999",
      artist: "Prince",
      tracks: [ 
        "1999", 
        "Little Red Corvette" 
      ]
    },
    1245: {
      artist: "Robert Palmer",
      tracks: [ ]
    },
    5439: {
      album: "ABBA Gold"
    }
};
// Keep a copy of the collection for tests
var collectionCopy = JSON.parse(JSON.stringify(collection));

// Only change code below this line
function update(id, prop, value) {
    if(value !== ""){
      collection[id][prop] = value;

   } else if(prop === "tracks" && value !== "") {
       collection.id.prop.push([value]);
   } else if (value === "") {
       delete collection[id][prop];
   }

  return collection;
}

// Alter values below to test your code
update(5439, "artist", "ABBA");
blob
Bill
@kirah1314
Jan 04 2016 00:30
@cekai your first if statement will be true when prop === "tracks" so "tracks" never reached the else if statement
CekaI
@cekai
Jan 04 2016 00:33
@kirah1314 ah of course. thank you. i fixed that. but now i still have the same problem.
// Only change code below this line
function update(id, prop, value) {
  if(prop === "tracks" && value !== "") {
       collection[id][prop].push(value);
   } else if(value !== "") {
       collection.id.prop.push([value]);
   } else if (value === "") {
       delete collection[id][prop];
   }

  return collection;
}
CamperBot
@camperbot
Jan 04 2016 00:33
cekai sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 730 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Bill
@kirah1314
Jan 04 2016 00:34
@cekai yes, there is an issue here too collection.id.prop.push(value);you need to push value into the tracks property not prop
@cekai actually, you want to revert back to the one you had before
CekaI
@cekai
Jan 04 2016 00:36
@kirah1314 yes i realized i did not revert them when i redid it, thank you so much!!
CamperBot
@camperbot
Jan 04 2016 00:36
cekai sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:warning: cekai already gave kirah1314 points
Bill
@kirah1314
Jan 04 2016 00:36
@cekai and instead add something in your if statement to detect prop not equals to "tracks"
Leonard Johnson
@Jarvis3000
Jan 04 2016 00:37
Any hints on solving CheckpointStandInLine?
Bill
@kirah1314
Jan 04 2016 00:39
@Jarvis3000 look into push() and shift() methods, roughly 10 waypoints before this
Jordan Pantley
@UnbackedMuffin
Jan 04 2016 00:40
If someone could answer this question, I'd really appreciate it. With jQuery, do you have to write a separate file to access the pieces you want? Or do you just use the master and put in the corresponding info?
Leonard Johnson
@Jarvis3000
Jan 04 2016 00:40
I used push() and shift() in my function, and I get overstack errors
Bill
@kirah1314
Jan 04 2016 00:40
@Jarvis3000 post your codes?
Leonard Johnson
@Jarvis3000
Jan 04 2016 00:41
How ?
Bill
@kirah1314
Jan 04 2016 00:41
@Jarvis3000 copy and paste them in this chat box
Blauelf
@Blauelf
Jan 04 2016 00:41
help format
CamperBot
@camperbot
Jan 04 2016 00:41

:point_right: code formatting [wiki]

Inline code

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

Code Block

```js ⇦ Type 3 backticks and then press [shift + enter ⏎] (type js or html or css)

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

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

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

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

Leonard Johnson
@Jarvis3000
Jan 04 2016 00:42
Okay, I'm going to write some code and paste it, hold on.
RickGrimes808
@RickGrimes808
Jan 04 2016 00:43
Could use some help on Convert Celsius to Fahrenheit. Can someone explain what its looking for me to do?
Bill
@kirah1314
Jan 04 2016 00:44
@RickGrimes808 declare a new variable and set it to the equation suggested on the instructions using the parameter celsius
dennisj92
@dennisj92
Jan 04 2016 00:45

So I'm stuck at Waypoint: Add Borders Around your Elements and I can't really see why this wouldn't work. I even tried applying the CSS rules in other ways. For example with .thick-green-border{border:10px, solid, green}; but it didn't help.

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

<style>
.thick-green-border{
border-width:10px;
border-style:solid;
border-color:green;
}
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

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

.smaller-image {
width: 100px;
}

</style>

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

<img class="smaller-image" class="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>

Bill
@kirah1314
Jan 04 2016 00:46
@dennisj92 <img class="smaller-image" class="thick-green-border" you should have only 1 class="..."
DJ
@qualitymanifest
Jan 04 2016 00:47
@dennisj92 you don't want to assign two class attributes like class="class1" class="class2" you just do class="class1 class2"
Leonard Johnson
@Jarvis3000
Jan 04 2016 00:47

var myArr = [1,2,3,4,5];

function queue(arr, item) {
// Your code here
myArr.push(6);

       y = myArr.shift(0);

return y; // Change this line
}
kirah1314 this is my code I placed in my function

DJ
@qualitymanifest
Jan 04 2016 00:47
@Jarvis3000 take the argument out of .shift()
Bill
@kirah1314
Jan 04 2016 00:48
@Jarvis3000 and you should use the parameters arr and item in your codes
dennisj92
@dennisj92
Jan 04 2016 00:48
@qualitymanifest Thank you so much! I really missed that part
CamperBot
@camperbot
Jan 04 2016 00:48
dennisj92 sends brownie points to @qualitymanifest :sparkles: :thumbsup: :sparkles:
:star: 715 | @qualitymanifest | http://www.freecodecamp.com/qualitymanifest
Tim Longoria
@sluggets
Jan 04 2016 00:54
Is there a way to reference my completed Checkpoint solutions? Thanks!
Matt Kim
@hmattkim
Jan 04 2016 00:54
Hi. I'm on Waypoint: Link to External Pages with Anchor Elements. Can someone tell me what I'm doing incorrectly??<a href="http://freecatphotoapp.com">
cat photos
</a>
Leonard Johnson
@Jarvis3000
Jan 04 2016 00:54

var myArr = [1,2,3,4,5];

function queue(arr, item) {
// Your code here
myArr.push(6);

       myArr.shift();

return item; // Change this line
}
kirah1314 how do you suggest I use parameters arr and item in this code?

Brian H
@rckymtndev
Jan 04 2016 00:55
@sludge256 <div> <form action="/submit-cat-photo">
```
<div class="row">
<div class="col-xs-6"><label><input type="radio" name="indoor-outdoor"> Indoor</label>
<div class="col-xs-6"><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>
like so?
Erland Lami
@Texber
Jan 04 2016 00:55
Please help
var myVar = 87;
it says use the ++ operator on myVar
RickGrimes808
@RickGrimes808
Jan 04 2016 00:56
@kirah1314 still lost on converting from Celsius to Fahrenheit. Could u explain just a little more please?
Erland Lami
@Texber
Jan 04 2016 00:56
I'm not sure where to insert it
Brian H
@rckymtndev
Jan 04 2016 00:56
<div> <form action="/submit-cat-photo">
    <div class="row">
    <div class="col-xs-6"><label><input type="radio" name="indoor-outdoor"> Indoor</label>
    <div class="col-xs-6"><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>
Bill
@kirah1314
Jan 04 2016 00:56
@RickGrimes808 sure, care to post what you've tried so far?
Erland Lami
@Texber
Jan 04 2016 00:57
var myVar = 87;

// Only change code below this line
myVar = myVar + 1;
Bill
@kirah1314
Jan 04 2016 00:57
@Jarvis3000 arr.push(item);
Tim Longoria
@sluggets
Jan 04 2016 00:57
@Jarvis3000 For a queue, you want to .shift() an element off of the front of an array, and .push() a new element to the end.
Leonard Johnson
@Jarvis3000
Jan 04 2016 00:59
sluggets so far in my code, isn't that what I am doing?
jasper
@jbarcial
Jan 04 2016 00:59
hi
what does <li> mean
Bill
@kirah1314
Jan 04 2016 01:02
@Jarvis3000 hmm looks like this works too myArr.push(item);
Leonard Johnson
@Jarvis3000
Jan 04 2016 01:02
I'll try it.
Brian H
@rckymtndev
Jan 04 2016 01:02
@jbarcial list item
Bill
@kirah1314
Jan 04 2016 01:03
@Jarvis3000 basically the waypoint or checkpoint tests your codes by running the function queue through some arguments which are provided at the bottom left section with the 3 tests
RickGrimes808
@RickGrimes808
Jan 04 2016 01:03

@kirah1314
function convert(celsius) {
// Only change code below this line
var fahrenheit = 30*9/5+32;

// Only change code above this line
if ( typeof fahrenheit !== 'undefined' ) {
return fahrenheit;
} else {
return 'fahrenheit not defined';
}
}

// Change the inputs below to test your code
convert(30);
```

Brian
@sludge256
Jan 04 2016 01:03
@rckymtndev You need an end div inside form also and leave the one that's outside
Bill
@kirah1314
Jan 04 2016 01:04

@Jarvis3000 you should also return whatever you shift also, the last instruction is:

The queue function should return the element that was removed.

Mark Lawrence
@ninja-ml
Jan 04 2016 01:04
for Checkpoint: Record Collection, what do they mean by non-blank? I see in the tests, they have the artist listed as ABBA, so we have to add missing properties and values too?
RickGrimes808
@RickGrimes808
Jan 04 2016 01:04
function convert(celsius) {
  // Only change code below this line
var fahrenheit = 30*9/5+32;

  // Only change code above this line
  if ( typeof fahrenheit !== 'undefined' ) {
  return fahrenheit;
  } else {
    return 'fahrenheit not defined';
  }
}

// Change the inputs below to test your code
convert(30);
Brian H
@rckymtndev
Jan 04 2016 01:04
</div></form></div>?
@sludge256
Leonard Johnson
@Jarvis3000
Jan 04 2016 01:04
I need to get my function correct first
Brian
@sludge256
Jan 04 2016 01:04
Yea I think that should work
Bill
@kirah1314
Jan 04 2016 01:05
@RickGrimes808 you're very close! Instead of using 30, you should use celsius which is the function parameter
Brian
@sludge256
Jan 04 2016 01:05
It's because your <div class="row"> isn't being closed
YI JIANG
@jennytech
Jan 04 2016 01:05

function myTest(val) {
var answer = "";
// Only change code below this line
case "":
"alpha";
break;
case "":
"beta";
break;
case "":
"gamma";
break;
case "":
"delta";
break;

// Only change code above this line
return answer;
}

// Change this value to test
myTest(1);

hi anyone tell me what is case plz
I know I am wrong
Bill
@kirah1314
Jan 04 2016 01:05
@RickGrimes808 this way you can call the function convert and use any number as celsius and it will calculate
YI JIANG
@jennytech
Jan 04 2016 01:06
Waypoint: Selecting from many options with Switch Statements
Manish Giri
@Manish-Giri
Jan 04 2016 01:06
@jennytech case is used along with switch, when you have multiple options to evaluate, it is similar to if/else-if/else
YI JIANG
@jennytech
Jan 04 2016 01:06
i know
I don't know what should I write after case
Bill
@kirah1314
Jan 04 2016 01:07
@RickGrimes808 think of celsius as a variable that represents 30 but only because you're calling the function using 30here convert(30);and you might want to call it with 40 or 50 later instead
RickGrimes808
@RickGrimes808
Jan 04 2016 01:07
@kirah1314 Oh okay got it thanks :smile:
CamperBot
@camperbot
Jan 04 2016 01:07
rickgrimes808 sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 731 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Manish Giri
@Manish-Giri
Jan 04 2016 01:07
@jennytech your syntax is a little off, it should follow this-
switch(val) {
case 1: answer = "alpha";
              break;
case 2: answer = "beta";
             break;
...
}
Brian H
@rckymtndev
Jan 04 2016 01:08
@sludge256 did not work
YI JIANG
@jennytech
Jan 04 2016 01:08
statement is answer = "aplpha?
Manish Giri
@Manish-Giri
Jan 04 2016 01:08
@jennytech the val that is passed to the function myFunction gets passed on to the switch block through switch(val). Then, at every case, val is evaulated against the current case, so the first case means is val equal to 1?, and so on.
Leonard Johnson
@Jarvis3000
Jan 04 2016 01:11
This looks like a nice piece of code that should return something. I tried the argument queue(2, 1) and I still get stack errors.
YI JIANG
@jennytech
Jan 04 2016 01:11
not working
Chris
@Aoxom
Jan 04 2016 01:12
can someone test my weather app real quick, see if it gives you accurate results?
Bill
@kirah1314
Jan 04 2016 01:12
@Jarvis3000 how about the rest of the codes? It really depends what's nested in the queue function
Leonard Johnson
@Jarvis3000
Jan 04 2016 01:14

sorry I didn't paste my code, wait!var myArr = [1,2,3,4,5];

function queue(arr, item) {
// Your code here
myArr.push(item);

      myArr.shift();

return item; // Change this line
}

queue(2, 1);

Herman Fassett
@HermanFassett
Jan 04 2016 01:14
@Aoxom where is your app?
mauroyamaguchi
@mauroyamaguchi
Jan 04 2016 01:14

hello, someone, please, can say what's wrong in this code? // Setup
function phoneticLookup(val) {
var result = "";

// Only change code below this line
var lookup = {
alpha:"Adams",
bravo:"Boston",
charlie:"Chicago",
delta:"Denver",
echo:"Easy",
foxtrot:"Frank"
};
result = lookup.val;

// Only change code above this line
return result;
}

// Change this value to test
phoneticLookup("charlie");

Herman Fassett
@HermanFassett
Jan 04 2016 01:15
@Aoxom well it's cold here and that's what your app says... :D
Erland Lami
@Texber
Jan 04 2016 01:15
var myVar = 87;

// Only change code below this line
myVar = myVar + 1;
Set remainder equal to the remainder of 11 divided by 3 using the remainder (%) operator.
please help anyone. I'm very lost on this
Chris
@Aoxom
Jan 04 2016 01:15
@HermanFassett lol, sounds right then. thanks
CamperBot
@camperbot
Jan 04 2016 01:15
aoxom sends brownie points to @hermanfassett :sparkles: :thumbsup: :sparkles:
:star: 1265 | @hermanfassett | http://www.freecodecamp.com/hermanfassett
Erland Lami
@Texber
Jan 04 2016 01:15
// Only change code below this line

var remainder;
Set remainder equal to the remainder of 11 divided by 3 using the remainder (%) operator.
Leonard Johnson
@Jarvis3000
Jan 04 2016 01:16
kirah1314 I'm going to check the nesting. I believe that's how I got my earlier functions to work.
Herman Fassett
@HermanFassett
Jan 04 2016 01:16
@Aoxom however my phone says it's 2 degrees colder :P
Bill
@kirah1314
Jan 04 2016 01:17
@Jarvis3000 are you getting maximum call stack? You'll probably need to delete that checkpoint from your local storage now like
@Jarvis3000 also you're not returning your shift() like the last line of instructions is asking
Chris
@Aoxom
Jan 04 2016 01:18
@HermanFassett was the location right/close at least?
Brian
@sludge256
Jan 04 2016 01:18
@rckymtndev Do a reset and try it again
Herman Fassett
@HermanFassett
Jan 04 2016 01:18
@Aoxom yep right town
Brian
@sludge256
Jan 04 2016 01:18
@rckymtndev I think you might have added an uneccessary start div somewhere
Ashley
@atan77
Jan 04 2016 01:19
@Texber have a look for the remainder operator
Brian H
@rckymtndev
Jan 04 2016 01:20
@sludge256 ok ill look
YI JIANG
@jennytech
Jan 04 2016 01:21

function myTest(val) {
var answer = "";
// Only change code below this line
case 1:
answer = "alpha";
break;
case 2:
answer = "beta";
break;
case 3:
answer = "gamma";
break;
case 4:
answer = "delta";
break;

// Only change code above this line
return answer;
}

// Change this value to test
myTest(1);

hi why not give me a pass?
where is wrong?
Bill
@kirah1314
Jan 04 2016 01:21
@mauroyamaguchi val is a parameter variable and not a property
Franco Zapata
@Francozt01
Jan 04 2016 01:22
@jennytech switch (val) at the beginning
Bill
@kirah1314
Jan 04 2016 01:23
@mauroyamaguchi you have to use bracket notation
Franco Zapata
@Francozt01
Jan 04 2016 01:23
before case 1
YI JIANG
@jennytech
Jan 04 2016 01:23

function switch (val) {
var answer = "";
// Only change code below this line
case 1:
answer = "alpha";
break;
case 2:
answer = "beta";
break;
case 3:
answer = "gamma";
break;
case 4:
answer = "delta";
break;

// Only change code above this line
return answer;
}

// Change this value to test
myTest(1);

?
not working
Franco Zapata
@Francozt01
Jan 04 2016 01:24
before case 1
u have to write '' switch (val) ''
and open curly braces
Erland Lami
@Texber
Jan 04 2016 01:25
var a = 3;
var b = 17;
var c = 12;

// Only modify code below this line

a = a + 12;
b = 9 + b;
c = c + 7;
Please help. I need to convert the assignments using the += operator
Franco Zapata
@Francozt01
Jan 04 2016 01:26
@Texber a += 12
Bryan Anderson
@Steoso
Jan 04 2016 01:26

// Setup
var myArr = [1,2,3,4,5];

function queue(arr, item) {
// Your code here
arr = arr.push(item);
item = arr.shift();
return item; // Change this line
}

// Display Code
console.log("Before: " + JSON.stringify(myArr));
console.log(queue(myArr, 6)); // Modify this line to test
console.log("After: " + JSON.stringify(myArr));

Franco Zapata
@Francozt01
Jan 04 2016 01:26
the same for the others
Bryan Anderson
@Steoso
Jan 04 2016 01:26
I keep getting maximum call stack size
Erland Lami
@Texber
Jan 04 2016 01:26
@Francozt01 where would I write that?
Brian
@sludge256
Jan 04 2016 01:27
@Steoso refresh the page and re run your code
It's a bug with the new site content
if refreshing doesn't work restart your browser
Franco Zapata
@Francozt01
Jan 04 2016 01:28
@Texber you have to modify the code below where u see the " a = a +12; "
Bryan Anderson
@Steoso
Jan 04 2016 01:28
ok, thanks. I was starting to figure that out because it wasn't consistent. Also, what about my code arr.shift(); I get an error for that.
Ashley
@atan77
Jan 04 2016 01:28
@Texber there is a guide to what you need to do in the left pane
Bill
@kirah1314
Jan 04 2016 01:28
@Steoso you need to return that
Brian H
@rckymtndev
Jan 04 2016 01:28
@sludge256 did it again. Still tels me I need closing tags
Brian
@sludge256
Jan 04 2016 01:29
Post full code again.
Bryan Anderson
@Steoso
Jan 04 2016 01:30

this is my full code:// Setup
var myArr = [1,2,3,4,5];

function queue(arr, item) {
// Your code here
arr = arr.push(item);
return arr.shift(); // Change this line

}

// Display Code
console.log("Before: " + JSON.stringify(myArr));
console.log(queue(myArr, 6)); // Modify this line to test
console.log("After: " + JSON.stringify(myArr));

Leonard Johnson
@Jarvis3000
Jan 04 2016 01:31

var myArr = [1,2,3,4,5];

function queue(myArr, num) {
// Your code here

      myArr.push(item);


       myArr.shift();

return queue(0); // Change this line

}

queue(2, 1);
Now, I get myArr.push is not a function.

Bryan Anderson
@Steoso
Jan 04 2016 01:31
but i get arr.shift is not a function
Brian H
@rckymtndev
Jan 04 2016 01:31
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  h2 {
    font-family: Lobster, Monospace;
  }

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

<div class="container-fluid">
  <div class="row">
    <div class="col-xs-8">
      <h2 class="text-primary text-center">CatPhotoApp</h2>
    </div>
    <div class="col-xs-4">
      <a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>
    </div>
  </div>
  <img src="http://bit.ly/fcc-running-cats" class="img-responsive">
  <div class="row">
    <div class="col-xs-4">
      <button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
    </div>
    <div class="col-xs-4">
      <button class="btn btn-block btn-info"><i class="fa fa-info-circle"></i> Info</button>
    </div>
    <div class="col-xs-4">
      <button class="btn btn-block btn-danger"><i class="fa fa-trash"></i> Delete</button>
    </div>
  </div>
  <p>Things cats <span class="text-danger">love:</span></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">
    <div class="row">
      <div class="col-xs-6">
        <label><input type="radio" name="indoor-outdoor"> Indoor</label>
        <div class="col-xs-6">
          <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>
Bill
@kirah1314
Jan 04 2016 01:31
@Jarvis3000 you shouldn't edit the parameter in function queue
@Jarvis3000 use this return myArr.shift(); and delete queue(2, 1);
Brian
@sludge256
Jan 04 2016 01:33
@rckymtndev So you need closing divs after each of your radio button labels and one before </form>
Brian H
@rckymtndev
Jan 04 2016 01:34
i will try it
Brian
@sludge256
Jan 04 2016 01:35
@Steoso I think it's because you are using arr = arr.push(item);
push will return the length of the new array
so you're turning arr into a number not an array
so arr.shift() won't work since arr is no longer an array
Brian H
@rckymtndev
Jan 04 2016 01:36
@sludge256 Thank you that worked. been stuck on it for like 2 hrs
CamperBot
@camperbot
Jan 04 2016 01:36
rckymtndev sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 502 | @sludge256 | http://www.freecodecamp.com/sludge256
Brian
@sludge256
Jan 04 2016 01:36
@rckymtndev Glad we got it figured out :+1:
No you can move on
Bryan Anderson
@Steoso
Jan 04 2016 01:37
@sludge256 thank you. I try that.
CamperBot
@camperbot
Jan 04 2016 01:37
steoso sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 503 | @sludge256 | http://www.freecodecamp.com/sludge256
Leonard Johnson
@Jarvis3000
Jan 04 2016 01:38
kirah1314 I'm going to take a meal break. I'll try your suggestion a little later.
Brian H
@rckymtndev
Jan 04 2016 01:38
@sludge256 yep
Brian
@sludge256
Jan 04 2016 01:39
@Steoso All you have to do is remove the variable assignment to arr and your code will work
Jpax411
@Jpax411
Jan 04 2016 01:39
anyone complete Checkpoint: Record Collection?
Bryan Anderson
@Steoso
Jan 04 2016 01:39
@sludge256 thanks, i passed it. That one is seriously broken :)
CamperBot
@camperbot
Jan 04 2016 01:39
steoso sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:warning: steoso already gave sludge256 points
Mark Lawrence
@ninja-ml
Jan 04 2016 01:39
for the Record Collection, the only test I have failing has this code
 if (prop == "tracks" && value !== "") {
    collection[id].tracks.push(value);
  }
Brian
@sludge256
Jan 04 2016 01:39
Mark Lawrence
@ninja-ml
Jan 04 2016 01:40
for If the prop is "tracks" and value is non-blank, push the value onto the end of the tracks array.
it seems like I am pushing the value to the end of the tracks array?
Bryan Anderson
@Steoso
Jan 04 2016 01:40
how do i show code on here in the black like above?
Bill
@kirah1314
Jan 04 2016 01:41
@ninja-ml try ([value])
Jpax411
@Jpax411
Jan 04 2016 01:41
@ninja-ml I'm having the same problem
Jordan Robertson
@Jordanson
Jan 04 2016 01:42
help Checkpoint: Word Blanks
CamperBot
@camperbot
Jan 04 2016 01:42
no wiki entry for: checkpoint word blanks
Mark Lawrence
@ninja-ml
Jan 04 2016 01:43
@kirah1314 that didn't work @Jpax411
Bryan Anderson
@Steoso
Jan 04 2016 01:43
@Jordanson for Word Blanks all you're going is attaching the verb, adverb, ... into a sentence yo choose
Mark Lawrence
@ninja-ml
Jan 04 2016 01:43
@Jpax411 this one is tricky
Brian
@sludge256
Jan 04 2016 01:43
@Steoso read this:
explain format
CamperBot
@camperbot
Jan 04 2016 01:43

:point_right: code formatting [wiki]

Inline code

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

Code Block

```js ⇦ Type 3 backticks and then press [shift + enter ⏎] (type js or html or css)

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

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

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

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

Bryan Anderson
@Steoso
Jan 04 2016 01:43
@Jordanson like "a " . myVerb . " is " . etc
Brian
@sludge256
Jan 04 2016 01:44
and if you have trouble pressing "enter" to submit your code use ctrl + enter
Erland Lami
@Texber
Jan 04 2016 01:44
function convert(celsius) {
  // Only change code below this line


  // Only change code above this line
  if ( typeof fahrenheit !== 'undefined' ) {
  return fahrenheit;
  } else {
    return 'fahrenheit not defined';
  }
}

// Change the inputs below to test your code
convert(30);
Roshan Ghadamian
@RGhadamian
Jan 04 2016 01:44
Hi guys can someone explain to me what’s the difference between these two sets of code. both are buttons but I’m not sure what exactly the difference between them is?
    <button id="new-quote" class="btn btn-lg btn-primary">
      New Quote
    </button>
     <input type="button" class="btn btn-lg btn-primary" id="thisbutton" value="Click" />
Erland Lami
@Texber
Jan 04 2016 01:44
Can someone please walk me through this?
Bill
@kirah1314
Jan 04 2016 01:44
@ninja-ml post your whole codes? Maybe it's elsewhere and not that line
Erland Lami
@Texber
Jan 04 2016 01:44
I'm not just looking for the answer but help in starting to solve the problem
Sarah Schlueter
@SarahMarie73
Jan 04 2016 01:45
Would anyone be able to help me with Checkpoint: Converting Celsius into Fahrenheit?
Mark Lawrence
@ninja-ml
Jan 04 2016 01:45
@kirah1314
```
Jordan Robertson
@Jordanson
Jan 04 2016 01:45
What is up with the periods before and after myVerb? That is where I got stuck. @Steoso
Mark Lawrence
@ninja-ml
Jan 04 2016 01:45
// Setup
var collection = {
    2548: {
      album: "Slippery When Wet",
      artist: "Bon Jovi",
      tracks: [ 
        "Let It Rock", 
        "You Give Love a Bad Name" 
      ]
    },
    2468: {
      album: "1999",
      artist: "Prince",
      tracks: [ 
        "1999", 
        "Little Red Corvette" 
      ]
    },
    1245: {
      artist: "Robert Palmer",
      tracks: [ ]
    },
    5439: {
      album: "ABBA Gold"
    }
};
// Keep a copy of the collection for tests
var collectionCopy = JSON.parse(JSON.stringify(collection));

// Only change code below this line
function update(id, prop, value) {
  if(value !== "") {
    collection[id][prop] = value;
  }

  if (prop == "tracks" && value !== "") {
    collection[id].tracks.push([value]);
  }

   if (value === "") {
     delete collection[id][prop];
   }
  return collection;
}

// Alter values below to test your code
update(5439, "artist", "ABBA");
Erland Lami
@Texber
Jan 04 2016 01:45
@SarahMarie73 I'm in same place lol
Bill
@kirah1314
Jan 04 2016 01:45
@SarahMarie73 sure, post your codes here?
Bryan Anderson
@Steoso
Jan 04 2016 01:45
@sludge256 thank you
CamperBot
@camperbot
Jan 04 2016 01:45
steoso sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:warning: steoso already gave sludge256 points
Erland Lami
@Texber
Jan 04 2016 01:46
function convert(celsius) {
  // Only change code below this line


  // Only change code above this line
  if ( typeof fahrenheit !== 'undefined' ) {
  return fahrenheit;
  } else {
    return 'fahrenheit not defined';
  }
}

// Change the inputs below to test your code
convert(30);
Jpax411
@Jpax411
Jan 04 2016 01:46
@ninja-ml is your first if statement working?
Bill
@kirah1314
Jan 04 2016 01:46
@ninja-ml the issue is here if(value !== "") because this returns true when prop==="tracks" so your 2nd if statement never happens
Sarah Schlueter
@SarahMarie73
Jan 04 2016 01:46
var fahrenheit = celsius * 9/5 +32;
That's what I have between the comments
I can't figure out why it's not working
Sumant Sareen
@SareenCoder
Jan 04 2016 01:47
Good evening. Why do we use ; (semi-colon), and where is it applied? thanks!
Bill
@kirah1314
Jan 04 2016 01:48
@SarahMarie73 that looks good, try resetting and redoing it?
Mark Lawrence
@ninja-ml
Jan 04 2016 01:48
@kirah1314 so switch then and make it if else?
@Jpax411 it would appear it doesn't work competely
Erland Lami
@Texber
Jan 04 2016 01:48
I just wrote that and it worked for me @SareenCoder
RickGrimes808
@RickGrimes808
Jan 04 2016 01:48
@Textber and @SarahMarie73 I just finished that one. You have to create a new variable for Fahrenheit and plug what the instructions say.
Bill
@kirah1314
Jan 04 2016 01:48
@ninja-ml OR you can add another condition inside the first if statement so it doesn't return true when prop==="tracks"
Erland Lami
@Texber
Jan 04 2016 01:48
@SarahMarie73 I just wrote the line you posted and it worked for me
Bryan Anderson
@Steoso
Jan 04 2016 01:49
i think there is a problem with the site, getting errors at times and a refresh with the exact same code works.... after a couple tries
Bill
@kirah1314
Jan 04 2016 01:51
@Steoso I've had the same issue with a waypoint too, it's probably due to FCC constantly updating and fixing some bugs
Bryan Anderson
@Steoso
Jan 04 2016 01:52
better to deal with things for a bit than have things never get done :)
Jpax411
@Jpax411
Jan 04 2016 01:52
@ninja-ml you also want to get rid of the [] around value
Mark Lawrence
@ninja-ml
Jan 04 2016 01:52

@kirah1314 changed it to

 if(value !== "" && prop !== "tracks") {
    collection[id][prop] = value;
  }

thanks!

CamperBot
@camperbot
Jan 04 2016 01:52
ninja-ml sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 732 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Mark Lawrence
@ninja-ml
Jan 04 2016 01:53
@Jpax411 thanks... finally got it working!
CamperBot
@camperbot
Jan 04 2016 01:53
ninja-ml sends brownie points to @jpax411 :sparkles: :thumbsup: :sparkles:
Roshan Ghadamian
@RGhadamian
Jan 04 2016 01:53
@awalthefirst thx, so basically they are the same thing
CamperBot
@camperbot
Jan 04 2016 01:53
:star: 274 | @jpax411 | http://www.freecodecamp.com/jpax411
Bill
@kirah1314
Jan 04 2016 01:53
@ninja-ml great! glad to help
Quin
@quintonp
Jan 04 2016 01:54
What did I do wrong?
Mark Lawrence
@ninja-ml
Jan 04 2016 01:54
@kirah1314 i seem to have issues with understanding objects in general but I am learning
Quin
@quintonp
Jan 04 2016 01:54

<style>
body {
background-color: black;
font-family: Monospace;
color: green;
}
.pink-text {
color: pink;
}

.blue-text{
color: blue;
}

</style>

<h1 class=class1 class2 "pink-text""blue-text">Hello World!</h1>

dragen2101
@dragen2101
Jan 04 2016 01:56
FUCK EVERYTING
Sarah Schlueter
@SarahMarie73
Jan 04 2016 01:56
@kirah1314 thanks for the tip about the resetting! totally worked
CamperBot
@camperbot
Jan 04 2016 01:56
sarahmarie73 sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 733 | @kirah1314 | http://www.freecodecamp.com/kirah1314
dragen2101
@dragen2101
Jan 04 2016 01:56
i cant do this
Bill
@kirah1314
Jan 04 2016 01:56
@ninja-ml no worries, use it more and it becomes natural :)
dragen2101
@dragen2101
Jan 04 2016 01:56
;(9(((((
Brian
@sludge256
Jan 04 2016 01:56
@dragen2101 Stay strong
dragen2101
@dragen2101
Jan 04 2016 01:56
RAGE QUITING
RickGrimes808
@RickGrimes808
Jan 04 2016 01:56
@quintonp your <h1 class></h1> shouldn't have the class1 and class2 in there
Mark Lawrence
@ninja-ml
Jan 04 2016 01:57
@kirah1314 will I use objects in the javascript calculator? that's my next project after I do the caesar cipher
Nicole F.
@gitasong
Jan 04 2016 01:57
Hey, @dragen2101 —What's going on?
Bill
@kirah1314
Jan 04 2016 01:57
@SarahMarie73 great! If you have good codes but it's not passing, try to reset and redo and it'll usually works
dragen2101
@dragen2101
Jan 04 2016 01:58
idk
Brian
@sludge256
Jan 04 2016 01:58
Auto respond to max call stack errors with "refresh the page and re run your code if you believe it's correct" :D
Nicole F.
@gitasong
Jan 04 2016 01:58
What are you having trouble with?
dragen2101
@dragen2101
Jan 04 2016 01:58
its just this wont go through
Nicole F.
@gitasong
Jan 04 2016 01:58
Which one?
Pawan
@pawan92
Jan 04 2016 01:58
@dragen2101 which one lol
dragen2101
@dragen2101
Jan 04 2016 01:58
ive looked it up and it said minor bug but idk
Nicole F.
@gitasong
Jan 04 2016 01:59
Are you on a Waypoint, Bonfire, or what?
dragen2101
@dragen2101
Jan 04 2016 01:59
use a CSS Class to Style an Element
waypoint
Nicole F.
@gitasong
Jan 04 2016 01:59
Okay; hang on...
Bill
@kirah1314
Jan 04 2016 01:59
@sludge256 I think for max calls, you have to close the browser right?
Brian
@sludge256
Jan 04 2016 02:00
It works for some with a refresh
Roshan Ghadamian
@RGhadamian
Jan 04 2016 02:00
what does <button value> mean?
Nicole F.
@gitasong
Jan 04 2016 02:00
So what's not working, @dragen2101 ?
Roshan Ghadamian
@RGhadamian
Jan 04 2016 02:00
or <button name>?
Nicole F.
@gitasong
Jan 04 2016 02:00
What have you done?
Aaron Graves
@gravesmeister
Jan 04 2016 02:00
I can't believe I'm stuck on such an early waypoint. It's like I can't understand what's EXACTLY it's asking me to do. I
dragen2101
@dragen2101
Jan 04 2016 02:01
one sec
Nicole F.
@gitasong
Jan 04 2016 02:01
Okay.
dragen2101
@dragen2101
Jan 04 2016 02:01
yeah idk its just not making sense
Nicole F.
@gitasong
Jan 04 2016 02:02
Okay. What part is not making sense?
dragen2101
@dragen2101
Jan 04 2016 02:02

<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>

Aaron Graves
@gravesmeister
Jan 04 2016 02:02
You're stuck where I am
RickGrimes808
@RickGrimes808
Jan 04 2016 02:02
@RGhadamian I think its just assigning a button a name
Nicole F.
@gitasong
Jan 04 2016 02:02
So what is it telling you to do, @dragen2101 ? What are the instructions?
Aaron Graves
@gravesmeister
Jan 04 2016 02:02

Instead of creating a new style element, try removing the h2 style declaration from your existing style element, then replace it with the class declaration for .red-text

Create a CSS class called red-text and apply it to your h2 element.

Brian
@sludge256
Jan 04 2016 02:02
@RGhadamian I believe that data is passed when you submit a form and you can handle that data with your code depending on what you want to do with it
dragen2101
@dragen2101
Jan 04 2016 02:02
well i get everything until it says my stylesheet should declare a red-text class
@gitasong yeah
Quin
@quintonp
Jan 04 2016 02:03
@RickGrimes808 but my text should be blue
dragen2101
@dragen2101
Jan 04 2016 02:03
@gravesmeister uh im a little new to this tbh
Brian
@sludge256
Jan 04 2016 02:03
@RGhadamian You can also reference your buttons by name with JavaScript
Jpax411
@Jpax411
Jan 04 2016 02:03
will someone look over my code, I'm not sure why it isn't working

// Setup
var collection = {
"2548": {
album: "Slippery When Wet",
artist: "Bon Jovi",
tracks: [
"Let It Rock",
"You Give Love a Bad Name"
]
},
"2468": {
album: "1999",
artist: "Prince",
tracks: [
"1999",
"Little Red Corvette"
]
},
"1245": {
artist: "Robert Palmer",
tracks: [ ]
},
"5439": {
album: "ABBA Gold"
}
};
// Keep a copy of the collection for tests
var collectionCopy = JSON.parse(JSON.stringify(collection));

// Only change code below this line
function update(id, prop, value) {

if (value !== "" && value !== "tracks"){
collection[id][prop] = value;
}
else if (prop === "tracks" && value !== ""){
collection[id][prop].push(value);
}
else {
delete collection[id][prop];
}

return collection;
}

// Alter values below to test your code
update(1245, "tracks", "Addicted to Love");

Aaron Graves
@gravesmeister
Jan 04 2016 02:03
I'm brand new lol
Nicole F.
@gitasong
Jan 04 2016 02:03
Ah. Okay. Are you clear that we have two different things going on here, @dragen2101 — the CSS <style> section and the HTML section?
Jpax411
@Jpax411
Jan 04 2016 02:04
(this is for Checkpoint: Record Collection)
dragen2101
@dragen2101
Jan 04 2016 02:04
im on waypoint use a css class to style an element
Nicole F.
@gitasong
Jan 04 2016 02:04
The CSS part is at the top, between the <style></style> tags. The HTML part is the rest. @dragen2101
dragen2101
@dragen2101
Jan 04 2016 02:04
@gravesmeister ;I
David Rivera
@dvriv
Jan 04 2016 02:04

@Jpax411

value !== "tracks"

Should be

prop !== "tracks"
RickGrimes808
@RickGrimes808
Jan 04 2016 02:04
@quintonp could u post your code again please? For me to see what your talking about.
dragen2101
@dragen2101
Jan 04 2016 02:04
@gitasong ok gotcha
Nicole F.
@gitasong
Jan 04 2016 02:05
So, @dragen2101 , do you understand what they mean when they say, "Instead of creating a new style element, try removing the h2 style declaration from your existing style element"?
Jpax411
@Jpax411
Jan 04 2016 02:05
thanks @Dav1605 !
CamperBot
@camperbot
Jan 04 2016 02:05
jpax411 sends brownie points to @dav1605 :sparkles: :thumbsup: :sparkles:
:star: 201 | @dav1605 | http://www.freecodecamp.com/dav1605
Aaron Graves
@gravesmeister
Jan 04 2016 02:05
That's where I'm having a hard time understanding
Bill
@kirah1314
Jan 04 2016 02:05
@Jpax411 collection[id][prop].push(value); you want to push value into the "tracks" property not [prop]
dragen2101
@dragen2101
Jan 04 2016 02:06
ok lemme try that
Nicole F.
@gitasong
Jan 04 2016 02:06
That's where you're having trouble, too, @gravesmeister ?
Aaron Graves
@gravesmeister
Jan 04 2016 02:06
Yes
Erland Lami
@Texber
Jan 04 2016 02:07
var myStr ="\\ \t \r \n";
Nicole F.
@gitasong
Jan 04 2016 02:07
@dragen2101 @gravesmeister They're saying remove the h2 style declaration from the CSS part, between the <style></style> tags at the top. Leave the <h2></h2> part at the bottom in; that's the HTML part. :)
Erland Lami
@Texber
Jan 04 2016 02:07
Encode the following sequence, separated by spaces:
backslash tab tab carriage-return new-line and assign it to myStr
Please help me see what I have done wrong
David Rivera
@dvriv
Jan 04 2016 02:08
@kirah1314 in that moment [prop] = "tracks"
Bill
@kirah1314
Jan 04 2016 02:08
@Texber it looks good, did you put your codes in the right place?
dragen2101
@dragen2101
Jan 04 2016 02:08
yeah well
Nicole F.
@gitasong
Jan 04 2016 02:08
So in other words, @dragen2101 , @gravesmeister —You just remove this part:
h2 {
    color: blue;
  }
Erland Lami
@Texber
Jan 04 2016 02:08
@kirah1314 I'm not sure what you mean
Brian
@sludge256
Jan 04 2016 02:08
@Texber It asks for two tabs
Nicole F.
@gitasong
Jan 04 2016 02:08
And then replace it with a class declaration. @dragen2101 @gravesmeister
Erland Lami
@Texber
Jan 04 2016 02:08
there's only 1 line
Nicole F.
@gitasong
Jan 04 2016 02:08
@dragen2101 — ?
dragen2101
@dragen2101
Jan 04 2016 02:09
yeah i did that and put this<h2 class = "red-text" style= "color: red;">CatPhotoApp</h2>
Aaron Graves
@gravesmeister
Jan 04 2016 02:09
I don't get it. Maybe I'll just start all over. I want to understand fully what I'm doing
Erland Lami
@Texber
Jan 04 2016 02:09
@sludge256 yes that was it. Thanks so much
CamperBot
@camperbot
Jan 04 2016 02:09
texber sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 504 | @sludge256 | http://www.freecodecamp.com/sludge256
Jordan Robertson
@Jordanson
Jan 04 2016 02:09
 result = "Your " + myAdjective + myNoun + myVerb + myAdverb + "." ;
Erland Lami
@Texber
Jan 04 2016 02:09
thanks @kirah1314
CamperBot
@camperbot
Jan 04 2016 02:09
texber sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
Mateja Trifunovski
@Matko95
Jan 04 2016 02:09
bonfire exact change hint
Bill
@kirah1314
Jan 04 2016 02:09
@Dav1605 ah you're right, thanks!
CamperBot
@camperbot
Jan 04 2016 02:09

:fire:Bonfire: Exact Change :link:

function drawer(price, cash, cid) {
  var change;
  // Here is your change, ma'am.
  return change;
}

// Example cash-in-drawer array:
// [['PENNY', 1.01],
// ['NICKEL', 2.05],
// ['DIME', 3.10],
// ['QUARTER', 4.25],
// ['ONE', 90.00],
// ['FIVE', 55.00],
// ['TEN', 20.00],
// ['TWENTY', 60.00],
// ['ONE HUNDRED', 100.00]]

drawer(19.50, 20.00, [['PENNY', 1.01], ['NICKEL', 2.05], ['DIME', 3.10], ['QUARTER', 4.25], ['ONE', 90.00], ['FIVE', 55.00], ['TEN', 20.00], ['TWENTY', 60.00], ['ONE HUNDRED', 100.00]]);

Design a cash register drawer function that accepts purchase price as the first argument, payment as the second argument, and cash-in-drawer (cid) as the third argument.

more info:  bf details | bf links | hint

kirah1314 sends brownie points to @dav1605 :sparkles: :thumbsup: :sparkles:
:star: 734 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Aaron Graves
@gravesmeister
Jan 04 2016 02:09
Thanks anyaway
CamperBot
@camperbot
Jan 04 2016 02:09
:star: 202 | @dav1605 | http://www.freecodecamp.com/dav1605
dragen2101
@dragen2101
Jan 04 2016 02:09
@gravesmeister yeah i kinda understand what your saying
Roshan Ghadamian
@RGhadamian
Jan 04 2016 02:09
@sludge256 so <button name> allows you reference it is JS? so you don’t need to add a class or id?
Nicole F.
@gitasong
Jan 04 2016 02:09
Okay, but they're telling you to add the class declaration in the CSS part, not the HTML part, @dragen2101 , @gravesmeister .
Mateja Trifunovski
@Matko95
Jan 04 2016 02:09
hint
CamperBot
@camperbot
Jan 04 2016 02:09
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
B. Garber
@TheBGar
Jan 04 2016 02:10
Anyone able to help me with a bonfire?
CamperBot
@camperbot
Jan 04 2016 02:10
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
Brian
@sludge256
Jan 04 2016 02:10
@RGhadamian You can do it any of those ways
dragen2101
@dragen2101
Jan 04 2016 02:10
ok so i need to put the <h2 class = "red-text" style= "color: red;">CatPhotoApp</h2>
in the CSS which is between the styles and not the Html
@gitasong
Nicole F.
@gitasong
Jan 04 2016 02:10
So in other words, @dragen2101 , @gravesmeister , ONLY add the class declaration between the <style> tags.
Yes—you've got it, @dragen2101 !
dragen2101
@dragen2101
Jan 04 2016 02:10
ok thanks one sec lemme try
Nicole F.
@gitasong
Jan 04 2016 02:11
(There's a little more, but that's the main part.) @dragen2101
Brian
@sludge256
Jan 04 2016 02:11
Are they on Waypoint: Use CSS Selectors to Style Elements
?
Nicole F.
@gitasong
Jan 04 2016 02:11
Yes, they are.
It's somewhat confusingly worded.
dragen2101
@dragen2101
Jan 04 2016 02:11

<style>

<h2 class = "red-text" style= "color: red;">CatPhotoApp</h2>

</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>

Jordan Robertson
@Jordanson
Jan 04 2016 02:12
 result = "Your " + myAdjective + myNoun + myVerb + myAdverb + "." ;
How do i make spaces between myAdjective, myVerb, etc...?
Brian
@sludge256
Jan 04 2016 02:12
They shouldnt be using classes then yet
dragen2101
@dragen2101
Jan 04 2016 02:12
@gitasong now i have this
David Rivera
@dvriv
Jan 04 2016 02:12
add
Jelena Cvijetic
@jelicopter
Jan 04 2016 02:12
how do I create CSS class?
Nicole F.
@gitasong
Jan 04 2016 02:12
Okay, @dragen2101 —That's the correct syntax for the HTML portion, but not the CSS portion. They have totally different syntaxes.
Bill
@kirah1314
Jan 04 2016 02:12
@Jordanson + " " +
Abdul Awali
@awalthefirst
Jan 04 2016 02:12
@Jordanson myAdjective + ' '+ myNoun
dragen2101
@dragen2101
Jan 04 2016 02:12
uh new word what is a syntaxes
@gitasong
Bill
@kirah1314
Jan 04 2016 02:13
help syntax
CamperBot
@camperbot
Jan 04 2016 02:13
no wiki entry for: syntax
Jordan Robertson
@Jordanson
Jan 04 2016 02:13
ohhhhhh thanks @awalthefirst and @kirah1314
CamperBot
@camperbot
Jan 04 2016 02:13
jordanson sends brownie points to @awalthefirst and @kirah1314 :sparkles: :thumbsup: :sparkles:
Nicole F.
@gitasong
Jan 04 2016 02:13
@dragen2101 —Let's try this in a PM, so we don't have all this other conversation around us, okay?
CamperBot
@camperbot
Jan 04 2016 02:13
:star: 735 | @kirah1314 | http://www.freecodecamp.com/kirah1314
:star: 481 | @awalthefirst | http://www.freecodecamp.com/awalthefirst
dragen2101
@dragen2101
Jan 04 2016 02:13
ok how do i pm?
@gitasong
Nicole F.
@gitasong
Jan 04 2016 02:13
Syntax is like the punctuation and grammar, @dragen2101 . :)
I will do it, @dragen2101 . :)
Ah—you got it. :)
Abdul Awali
@awalthefirst
Jan 04 2016 02:13
@dragen2101 click the person's avatar
Brian
@sludge256
Jan 04 2016 02:14
Theyre not on the red text waypoint yet btw
Sumant Sareen
@SareenCoder
Jan 04 2016 02:15

// Setup
var myArr = [1,2,3,4,5];

function queue(arr, item) {

arr.push(item);

return arr.shift();
}

// Display Code
console.log("Before: " + JSON.stringify(myArr));
console.log(queue(myArr, 6)); // Modify this line to test
console.log("After: " + JSON.stringify(myArr));

Why is this not wokring?
Brian
@sludge256
Jan 04 2016 02:15
max call stack error?
Sumant Sareen
@SareenCoder
Jan 04 2016 02:15
and why does it say maximum call stack exceded
yes!
Brian
@sludge256
Jan 04 2016 02:15
refresh the page and run it again
it's a bug :(
Sumant Sareen
@SareenCoder
Jan 04 2016 02:16
Thank you! it worked :smile:
Brian
@sludge256
Jan 04 2016 02:16
:+1:
KoToZ
@Mohamedtareque
Jan 04 2016 02:17
Checkpoint: Record Collection
qu13ns01y0
@qu13ns01y0
Jan 04 2016 02:18
What I have to do with this "Be sure to delete all trailing comment tags, i.e. -->."?
Help , please :(
CamperBot
@camperbot
Jan 04 2016 02:18
no wiki entry for: please
KoToZ
@Mohamedtareque
Jan 04 2016 02:18
if i wanna access any prop or value inside object
through paramerers or variables
Brittany
@brittanyleigh
Jan 04 2016 02:19
Ah! @SareenCoder & @sludge256 - You guys are my heroes, I've been stuck on this waypoint and could not figure out what was wrong! Perfect timing. :)
KoToZ
@Mohamedtareque
Jan 04 2016 02:19
collection[id][prop][value]
is this true one
Roshan Ghadamian
@RGhadamian
Jan 04 2016 02:20
@sludge256 so how would I reference a <button name> in JS?
Katelyn Yael McKenna
@Katie-Yael
Jan 04 2016 02:21
@RGhadamian you would use the document.getElementByID(whatever you named the button)
Bill
@kirah1314
Jan 04 2016 02:22
@Mohamedtareque something to that extend, yes. Depends what you're tying to access in the object
Brian
@sludge256
Jan 04 2016 02:22
@brittanyleigh I'm hoping it gets fixed soon so people don't think they're doing something wrong
Khushi Atreya
@khushiatreya
Jan 04 2016 02:23
hey guys i need help on uncommenting HTML
Quin
@quintonp
Jan 04 2016 02:24
@RickGrimes808 ok
Brian
@sludge256
Jan 04 2016 02:24
@RGhadamian Something like this I believe
var x = document.getElementsByName("fname");
It's been awhile since i've done a lot of DOM manipulation with JS though so I wouldn't use me as the best source :P
Quin
@quintonp
Jan 04 2016 02:24

<style>
body {
background-color: black;
font-family: Monospace;
color: green;
}
.pink-text {
color: pink;
}

.blue-text{
color: blue;
}

</style>

<h1 class="pink-text""blue-text">Hello World!</h1>

Abdul Awali
@awalthefirst
Jan 04 2016 02:24
@RGhadamian
$('button')  // jquery
$('#button-id-name')  // jquery
$('.button-class-name')  // jquery

document.getElementByID(button-id-name) // vanilla js 
document.getElementsByClassName(button-class-name) // vanilla js 
document.getElementsByTagName(button) // vanilla js
Roshan Ghadamian
@RGhadamian
Jan 04 2016 02:26
@awalthefirst @Katie-Yael @sludge256 thx
CamperBot
@camperbot
Jan 04 2016 02:26
rghadamian sends brownie points to @awalthefirst and @katie-yael and @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 483 | @awalthefirst | http://www.freecodecamp.com/awalthefirst
:star: 505 | @sludge256 | http://www.freecodecamp.com/sludge256
:star: 182 | @katie-yael | http://www.freecodecamp.com/katie-yael
Khushi Atreya
@khushiatreya
Jan 04 2016 02:26
that is not what i am looking for
Katelyn Yael McKenna
@Katie-Yael
Jan 04 2016 02:26
ok guys and gals, I'm off for the night. Have fun :)
Abdul Awali
@awalthefirst
Jan 04 2016 02:26
@Katie-Yael goodnight
Coco-Moloko
@Coco-Moloko
Jan 04 2016 02:26
sup guys, I think my waypoint is buggin. All I want to do is make some text italic with jquery
<script>
$(document).ready(function() {
$("#target4").html("<i>target4</i>");
});
</script>
Brian
@sludge256
Jan 04 2016 02:27
@khushiatreya If you want to uncomment remove the things that create the comment
<!-- and -->
Coco-Moloko
@Coco-Moloko
Jan 04 2016 02:28
its asking to do it through HTML
Brian
@sludge256
Jan 04 2016 02:28
@quintonp You only need one set of quotes
class="class1 class2"
Mox Gaa
@9-9-0
Jan 04 2016 02:28
Hey can someone explain the difference between /\d/g and /\d+/g? I swapped out the d+ for d in my code and the output is still the same (even when I only use .match() on testString)
// Setup
var testString = "There are 3 cats but 4 dogs.";

// Only change code below this line.

var expression = /\d+/g;  // Change this line

// Only change code above this line

// This code counts the matches of expression in testString
var digitCount = testString.match(expression).length;
B. Garber
@TheBGar
Jan 04 2016 02:28
@Katie-Yael Goodnight! happy coding!
Abdul Awali
@awalthefirst
Jan 04 2016 02:29
@Coco-Moloko which waypoint
Coco-Moloko
@Coco-Moloko
Jan 04 2016 02:29
@awalthefirst Change Text Inside an Element Using jQuery
Brian
@sludge256
Jan 04 2016 02:29
@qqTpp the + I believe will match multi char lengths that match \d
but since you're using a global flag it will match all \d anyways
Irma Mesa
@justirma
Jan 04 2016 02:30
@quintonp if you want your text to be blue, then you do not need the "pink-text" classe in your h1 nor a .pink-text style
Abdul Awali
@awalthefirst
Jan 04 2016 02:30
@Coco-Moloko $("#target4").html("<i>#target4</i>");
Mox Gaa
@9-9-0
Jan 04 2016 02:31
@sludge256 could you give me an example?
Coco-Moloko
@Coco-Moloko
Jan 04 2016 02:31
@awalthefirst ahh thanks! I missed that stupid #
CamperBot
@camperbot
Jan 04 2016 02:31
coco-moloko sends brownie points to @awalthefirst :sparkles: :thumbsup: :sparkles:
:star: 484 | @awalthefirst | http://www.freecodecamp.com/awalthefirst
Abdul Awali
@awalthefirst
Jan 04 2016 02:31
@Coco-Moloko lol
Sumant Sareen
@SareenCoder
Jan 04 2016 02:32
Whats the difference?

if (testMe > 5) {
return "Yes";
}

return "No";

if (testMe > 5) {
return "Yes";
}

return "No";
}

Brian
@sludge256
Jan 04 2016 02:32
@qqTpp ok
Sumant Sareen
@SareenCoder
Jan 04 2016 02:32
Apparently the ending semi-colon on the second one is wrong
Brian
@sludge256
Jan 04 2016 02:33

@qqTpp
Let's start with regex with no global flag which is the g at the end of your expression

/\d/

would match the 2 in 200
but if we do

/\d+/

it will match the full 200

However since you have

/\d/g

It will search your entire string anyways and would match the 200 also

without the g at the end it will return the first match
and stop searching i think
Nelson M.
@nmed2545
Jan 04 2016 02:35

<style>

.smaller-image {

width: 100px;

}

</style>

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

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

im having a hard time creating a smaller image for the image source
Mox Gaa
@9-9-0
Jan 04 2016 02:35
@sludge256 gotcha, makes a lot more sense. Thanks!
CamperBot
@camperbot
Jan 04 2016 02:35
qqtpp sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 506 | @sludge256 | http://www.freecodecamp.com/sludge256
Nelson M.
@nmed2545
Jan 04 2016 02:35
can anyone help?
Manish Giri
@Manish-Giri
Jan 04 2016 02:36
@nmed2545 you need to apply the class smaller-image to your img element
Mox Gaa
@9-9-0
Jan 04 2016 02:36
@nmed2545 I believe you attach the class to your img element
Daniel Herring Jr.
@HorrorNerd
Jan 04 2016 02:36
I'm having trouble nesting my radio buttons inside div class row
KoToZ
@Mohamedtareque
Jan 04 2016 02:37

After update(1245, "tracks", "Addicted to Love"), tracks should have a length of 1

i have this problem >>>> Checkpoint: Record Collection

Nelson M.
@nmed2545
Jan 04 2016 02:37
what do you mean? @Manish-Giri
im new to coding sorry
Manish Giri
@Manish-Giri
Jan 04 2016 02:37
@nmed2545 this
<style>

  .smaller-image {

    width: 100px;

  }

</style>

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

<img class=“smaller-image” src="https://bit.ly/fcc-relaxing-cat”>
Nelson M.
@nmed2545
Jan 04 2016 02:38
ooh i see
dotsandchipsandthings
@dotsandchipsandthings
Jan 04 2016 02:38
same as you applied the class "red text" to <h2> @nmed2545
post your code @HorrorNerd
Nic Miller
@nicopotomus
Jan 04 2016 02:40
starring at the screen here:
http://www.freecodecamp.com/challenges/waypoint-assignment-with-a-returned-value

// Setup
var processed = 0;

function process(num) {
  return (num + 3) / 5;
}

// Only change code below this line

function process(7) {
  return ();
}
Nelson M.
@nmed2545
Jan 04 2016 02:40
that did the trick thank you @Manish-Giri and @dotsandchipsandthings @qqTpp
CamperBot
@camperbot
Jan 04 2016 02:40
nmed2545 sends brownie points to @manish-giri and @dotsandchipsandthings and @qqtpp :sparkles: :thumbsup: :sparkles:
:star: 562 | @manish-giri | http://www.freecodecamp.com/manish-giri
:star: 229 | @qqtpp | http://www.freecodecamp.com/qqtpp
:star: 213 | @dotsandchipsandthings | http://www.freecodecamp.com/dotsandchipsandthings
Daniel Herring Jr.
@HorrorNerd
Jan 04 2016 02:41
think i figured out my problem just a typo. if it doesn't work this time i'll post my code
Elifaz Filho
@Elifaz
Jan 04 2016 02:44
@nicopotomus in javascript functions are objects as well, and they can be returned as a value of a variable. Basically that’s what the exercise is asking you, to use the variable processed and put the function process(7) as it’s value.
Sarah Sivilich
@ssivilich
Jan 04 2016 02:44
@nicopotomus you need to ireturn process() to var processed
mhasz239
@mhasz239
Jan 04 2016 02:44
@nicopotomus nvm what they said... haha was typing it out
Nic Miller
@nicopotomus
Jan 04 2016 02:45
I'm feeling really dumb - it's just not clicking
Ngocphu
@Ngocphu123
Jan 04 2016 02:46
how answer " You should use two double quotes (") and four escaped double quotes (\")"
mhasz239
@mhasz239
Jan 04 2016 02:46
@nicopotomus var processed = process(7);
Nic Miller
@nicopotomus
Jan 04 2016 02:47
lol i've done that
mhasz239
@mhasz239
Jan 04 2016 02:47
your not creating the function again, all its asking you to do is call the function and store it into the variable processed
Nic Miller
@nicopotomus
Jan 04 2016 02:47
let me refresh
that might be the problem
mhasz239
@mhasz239
Jan 04 2016 02:47
don't write var processed, it already created the variable above it.
Elifaz Filho
@Elifaz
Jan 04 2016 02:47

@nicopotomus alright, by assigning a variable you would do

var world = “Hello Mom”;

now you have a function that needs to be assigned as the value of this variable, say:

function tellMom() {
 return “Hello World”;
}
 world = tellMom();
mhasz239
@mhasz239
Jan 04 2016 02:48
so the actual code would be
processed = process(7);
Sarah Sivilich
@ssivilich
Jan 04 2016 02:48
This message was deleted
dotsandchipsandthings
@dotsandchipsandthings
Jan 04 2016 02:49
@Ngocphu123 You use two double quotes outside the entire string, and inside the string use the four escape double quotes so that your string doesn't end prematurely.
Elifaz Filho
@Elifaz
Jan 04 2016 02:49
@nicopotomus got it?
Nic Miller
@nicopotomus
Jan 04 2016 02:50
yea... i think
that's making sense
yes
Elifaz Filho
@Elifaz
Jan 04 2016 02:50
@nicopotomus javascript is crazy awesome! You will get the hang of it
Nic Miller
@nicopotomus
Jan 04 2016 02:51
thanks @Elifaz i've been stumped on the last few of these... the examples are really helpful - thanks for that!
CamperBot
@camperbot
Jan 04 2016 02:51
nicopotomus sends brownie points to @elifaz :sparkles: :thumbsup: :sparkles:
:star: 284 | @elifaz | http://www.freecodecamp.com/elifaz
Elifaz Filho
@Elifaz
Jan 04 2016 02:51
This message was deleted
@nicopotomus no problem, sounds good. Keep on going!
shovopoddar
@shovopoddar
Jan 04 2016 02:52
queue([], 1) should return 1
queue(2, 1) should return 2
After queue(myArr, 10), myArr[4] should be 10
Ronald Steadman-Keanon
@Rontastic
Jan 04 2016 02:53
how do i link what I am working on to the chat here?
shovopoddar
@shovopoddar
Jan 04 2016 02:54

// Setup
var myArr = [1,2,3,4,5];

function queue(arr, item) {
// Your code here
var myArr = [2,4,2,2,2];
return item; // Change this line
}

// Display Code
console.log("Before: " + JSON.stringify(myArr));
console.log(queue([], 1)); // Modify this line to test
console.log("After: " + JSON.stringify(myArr));

anyone help ?
Elifaz Filho
@Elifaz
Jan 04 2016 02:54
on the right side of your chat there is a message balloon and an M with a down arrow, click in there @Rontastic
Quin
@quintonp
Jan 04 2016 02:55
@irmattg but they're both supposed to be there
Waypoint: Override Styles in Subsequent CSS
Elifaz Filho
@Elifaz
Jan 04 2016 02:56
@shovopoddar which waypoint is this, or what the exercise is asking? so far you havea variable inside a function and you are returning one of the arguments..
@quintonp what is your issue?
jorgon1022
@jorgon1022
Jan 04 2016 02:57
hi guys. can someone explain the sort array function to me?
Quin
@quintonp
Jan 04 2016 02:57
@sludge256 thanks!
CamperBot
@camperbot
Jan 04 2016 02:57
quintonp sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 508 | @sludge256 | http://www.freecodecamp.com/sludge256
jorgon1022
@jorgon1022
Jan 04 2016 02:57
im literally lost when it comes to this and how it works
RebAmissio
@RebAmissio
Jan 04 2016 02:58
I'm totally stuck with the Local Scope and Functions exercise...
I think I get it but for some reason it won't lemme go forward
Elifaz Filho
@Elifaz
Jan 04 2016 02:58
Sort is a method prototype of the Array object. Basically it will grab your array and based on the function instruction it will sort out your given array. check this out Array.prototype.sort() @jorgon1022
jorgon1022
@jorgon1022
Jan 04 2016 02:59
@Elifaz @awalthefirst thanks guys. I will look at these resources
CamperBot
@camperbot
Jan 04 2016 02:59
jorgon1022 sends brownie points to @elifaz and @awalthefirst :sparkles: :thumbsup: :sparkles:
:star: 485 | @awalthefirst | http://www.freecodecamp.com/awalthefirst
:star: 285 | @elifaz | http://www.freecodecamp.com/elifaz
Elifaz Filho
@Elifaz
Jan 04 2016 03:00
@RebAmissio show us what you’ve got.
Abdul Awali
@awalthefirst
Jan 04 2016 03:00
@RebAmissio can you paste your code
RebAmissio
@RebAmissio
Jan 04 2016 03:00

function myFunction() {
var myVar = 'use strict';

console.log(myVar);
}
myFunction();
console.log(myVar);

Sarah Sivilich
@ssivilich
Jan 04 2016 03:00

can anyone help?// Setup
var myArr = [1,2,3,4,5];

function queue(arr, item) {
// Your code here
arr.push(item);
var a = arr.shift();
return a; // Change this line
}

// Display Code
console.log("Before: " + JSON.stringify(myArr));
console.log(queue(myArr, 6)); // Modify this line to test
console.log("After: " + JSON.stringify(myArr));

Elifaz Filho
@Elifaz
Jan 04 2016 03:01
@jorgon1022 np, once you use it you will totally understand it’s purpose.
Sarah Sivilich
@ssivilich
Jan 04 2016 03:01
I can't figure out how to paste my code nicely either!
jorgon1022
@jorgon1022
Jan 04 2016 03:01
@awalthefirst so I have to understand the 'this' keyword in order to understand the sort array function?
Abdul Awali
@awalthefirst
Jan 04 2016 03:01
This message was deleted
Elifaz Filho
@Elifaz
Jan 04 2016 03:02
@ssivilich your function is removing the first element of the array and returning it to the console. That’s all that is doing, is that what the exercise required from you?
cannelflow
@cannelflow
Jan 04 2016 03:02
// Setup
function phoneticLookup(val) {
  var result = "";

  // Only change code below this line
var looup={
  "alpha":"Adams",
  "bravo":"Bostan",
  "charlie":"Chicago",
  "delta":"Denver",
  "echo":"Easy",
  "foxtrot":"Frank"
};
  // Only change code above this line
  return result;
}

// Change this value to test
phoneticLookup("charlie");
any help for Waypoint: Using Objects for Lookups
Elifaz Filho
@Elifaz
Jan 04 2016 03:02
*ssivilich code
var myArr = [1,2,3,4,5];

function queue(arr, item) {
  // Your code here
  arr.push(item);
  var a = arr.shift();
  return a;  // Change this line
}

// Display Code
console.log("Before: " + JSON.stringify(myArr));
console.log(queue(myArr, 6)); // Modify this line to test
console.log("After: " + JSON.stringify(myArr));
Abdul Awali
@awalthefirst
Jan 04 2016 03:02
@jorgon1022 not really it depends
Elifaz Filho
@Elifaz
Jan 04 2016 03:04
@cannelflow what have you tried so far? on the code I’m looking at, there is an object called looup and result being returned with empty strings.
Jpax411
@Jpax411
Jan 04 2016 03:05
@ssivilich I think you need to tell the shift how far to shift, but not sure.
danieljuiche
@danieljuiche
Jan 04 2016 03:05
help stand in line
CamperBot
@camperbot
Jan 04 2016 03:05
no wiki entry for: stand in line
danieljuiche
@danieljuiche
Jan 04 2016 03:05
help checkpoint: stand in line
CamperBot
@camperbot
Jan 04 2016 03:05
no wiki entry for: checkpoint stand in line
Brian
@sludge256
Jan 04 2016 03:05
the new wapoints dont have wiki entries yet
He has the right idea with shift but implementing it incorrectly.
Sarah Sivilich
@ssivilich
Jan 04 2016 03:05
@Jpax411 yes! Thank you!
CamperBot
@camperbot
Jan 04 2016 03:05
ssivilich sends brownie points to @jpax411 :sparkles: :thumbsup: :sparkles:
:star: 276 | @jpax411 | http://www.freecodecamp.com/jpax411
Elifaz Filho
@Elifaz
Jan 04 2016 03:06
@ssivilich your code should run properly..
Brian
@sludge256
Jan 04 2016 03:06
This message was deleted
This message was deleted
danieljuiche
@danieljuiche
Jan 04 2016 03:07
why does mine keep saying "RangeError: Maximum call stack size exceeded"
Andy
@apetersen8
Jan 04 2016 03:07

Hello World! I am working on waypoint: responsive design and am struggling with the lesson: I added a class and 2 div elements but it is not accepting the class or nesting requirements, can you help point me in the right direction? My code is below:

{
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{
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/>
}
</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>

<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>

Brian
@sludge256
Jan 04 2016 03:07
i missed part of his code nvm
CamperBot
@camperbot
Jan 04 2016 03:07

welcome to FreeCodeCamp @apetersen8!

Andy
@apetersen8
Jan 04 2016 03:07
Any help would be great!
cannelflow
@cannelflow
Jan 04 2016 03:07
@Elifaz goal is to convert switch case to object which i tried
Elifaz Filho
@Elifaz
Jan 04 2016 03:07
 {
    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{
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/>
  }
</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>

<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>
MoniqueE
@MoniqueE
Jan 04 2016 03:07

@captainmunie var myArr = [1,2,3,4,5];

function queue(arr, item) {
myArr.push(item);
return myArr.shift();// Your code here

// Change this line
}

Elifaz Filho
@Elifaz
Jan 04 2016 03:08
guys when you post a code in here make sure to use ``` one line before and after the code.
Andy
@apetersen8
Jan 04 2016 03:08
Sorry, will do!
cannelflow
@cannelflow
Jan 04 2016 03:08
@Elifaz Waypoint: Using Objects for Lookups
frsRaza
@frsRaza
Jan 04 2016 03:08
I'm stuck at Waypoint: Adding a default option in Switch statements. any help?
Brian
@sludge256
Jan 04 2016 03:08
If you get max call stack error try refreshing
frsRaza
@frsRaza
Jan 04 2016 03:09
cases are written however "a" is not defined
danieljuiche
@danieljuiche
Jan 04 2016 03:09
Thank you, refreshing the page was what I needed!
Abdul Awali
@awalthefirst
Jan 04 2016 03:09
@apetersen8 which one is failing to pass
Brian
@sludge256
Jan 04 2016 03:09
It's a bug that hopefully will get fixed soon
frsRaza
@frsRaza
Jan 04 2016 03:09

function myTest(val) {
var answer = "";
// Only change code below this line
switch (val) {
case 1:
answer = "apple";
break;
case 2:
answer = "bird";
break;
case 3:
answer = "cat";
break;
default:
answer = "stuff";
}

// Only change code above this line
return answer;
}

// Change this value to test
myTest(1);

danieljuiche
@danieljuiche
Jan 04 2016 03:10
thanks @sludge256
CamperBot
@camperbot
Jan 04 2016 03:10
captainmunie sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 509 | @sludge256 | http://www.freecodecamp.com/sludge256
KoToZ
@Mohamedtareque
Jan 04 2016 03:10

Waypoint: Nesting For Loops >>>

what's wrong here guys !!

function multiplyAll(arr) {
var product = 1;
// Only change code below this line
for(var i=0; i<arr.length; i++){
for(var j =0 ; i < arr[i].length ; j++){
product = product * arr[i][j] ;
}

}
// Only change code above this line
return product;
}

// Modify values below to test your code
multiplyAll([[1,2],[3,4],[5,6,7]]);

Andy
@apetersen8
Jan 04 2016 03:10
@awalthefirst the two that are failing are: your div element should have the class container-fluid and make sure you have nested all HTML elements in .container fluid
Stoner19
@Stoner19
Jan 04 2016 03:11
@frsRaza pretty sure for that one you need to use case "a":
Elifaz Filho
@Elifaz
Jan 04 2016 03:11
@cannelflow ah, I see so you are almost there, you returned the result variable, but result needs come with the argument from the function:
say:
var result = “”;
var lookup = {
objects in here, bla bla bla…
}
return result[val];
}
phoneticLookup(“charlie);
cannelflow
@cannelflow
Jan 04 2016 03:11
@frsRaza what is the problem and which exercise?
Stoner19
@Stoner19
Jan 04 2016 03:11
not 1, 2, 3. It's a, b, c
frsRaza
@frsRaza
Jan 04 2016 03:11
@Stoner19 I have, didn't work
@cannelflow Waypoint: Adding a default option in Switch statements
Abdul Awali
@awalthefirst
Jan 04 2016 03:11
@apetersen8 put everything inside<div class="container-fluid "> </ div >
Stoner19
@Stoner19
Jan 04 2016 03:11
@frsRaza did you put a b c in parenthesis?
sorry, not parenthesis, quotation makr
*marks
Elifaz Filho
@Elifaz
Jan 04 2016 03:12
@cannelflow
// Setup
function phoneticLookup(val) {
  var result = "";

  // Only change code below this line
var looup={
  "alpha":"Adams",
  "bravo":"Bostan",
  "charlie":"Chicago",
  "delta":"Denver",
  "echo":"Easy",
  "foxtrot":"Frank"
};
  // Only change code above this line
  return result[return the argument from the function in here…which is v..l];
}

// Change this value to test
phoneticLookup("charlie");
Stoner19
@Stoner19
Jan 04 2016 03:12
@frsRaza this was actually the last module I finished today. Just got back to the computer to work on the next one.
frsRaza
@frsRaza
Jan 04 2016 03:12
@cannelflow simple fix. quotation makes seemed to do it. Thank you!
CamperBot
@camperbot
Jan 04 2016 03:12
frsraza sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
Stoner19
@Stoner19
Jan 04 2016 03:13
function myTest(val) {
  var answer = "";
  // Only change code below this line
 switch (val) {
   case "a":
     answer = "apple";
     break;
   case "b":
     answer = "bird";
     break;
   case "c":
     answer = "cat";
     break;
   default:
     answer = "stuff";
 } 


  // Only change code above this line  
  return answer;  
}

// Change this value to test
myTest("a");
CamperBot
@camperbot
Jan 04 2016 03:13
:star: 216 | @cannelflow | http://www.freecodecamp.com/cannelflow
Elifaz Filho
@Elifaz
Jan 04 2016 03:13
@cannelflow try it out and see if it makes sense..
Andy
@apetersen8
Jan 04 2016 03:13
thanks @awalthefirst ! I thought I had to define the class before calling it
CamperBot
@camperbot
Jan 04 2016 03:13
apetersen8 sends brownie points to @awalthefirst :sparkles: :thumbsup: :sparkles:
Shams Jiwani
@sjiwani
Jan 04 2016 03:13
Hey Everyone
danieljuiche
@danieljuiche
Jan 04 2016 03:13
@Mohamedtareque which exercise is that one?
CamperBot
@camperbot
Jan 04 2016 03:13
:star: 486 | @awalthefirst | http://www.freecodecamp.com/awalthefirst
Elifaz Filho
@Elifaz
Jan 04 2016 03:13
a lot of messages, who needs help?
Abdul Awali
@awalthefirst
Jan 04 2016 03:13
@Elifaz lol
@Elifaz i do
Elifaz Filho
@Elifaz
Jan 04 2016 03:14
@awalthefirst I got lost hahah
Shams Jiwani
@sjiwani
Jan 04 2016 03:14
I just signed up for freecodecamp today. How is the experience for you so far?
Aaron Graves
@gravesmeister
Jan 04 2016 03:14
So far really good but I'm stuck again lol
Elifaz Filho
@Elifaz
Jan 04 2016 03:14
@sjiwani best community I’ve been part of.
Abdul Awali
@awalthefirst
Jan 04 2016 03:14
@sjiwani amazing ...
Elifaz Filho
@Elifaz
Jan 04 2016 03:14
@awalthefirst what’s up
Stoner19
@Stoner19
Jan 04 2016 03:14
@sjiwani the fact that its free and this community is so big and responsive is awesome. I've had some trouble with some of the waypoints not properly explaining things though
Elifaz Filho
@Elifaz
Jan 04 2016 03:14
@gravesmeister what’s up..
Irma Mesa
@justirma
Jan 04 2016 03:14
@elifaz i need help!
Aaron Graves
@gravesmeister
Jan 04 2016 03:15
I'm doing Waypoint:Size your images
Elifaz Filho
@Elifaz
Jan 04 2016 03:15
@irmattg put it out, if I can’t help someone will!! =)
Aaron Graves
@gravesmeister
Jan 04 2016 03:15
I put in the code and nothing happened
Stoner19
@Stoner19
Jan 04 2016 03:15
I'm very much enjoying helping people when I can, even though I'm still learning. When I help someone get through a waypoint I've completed it just helps me practice and understand it even further
Elifaz Filho
@Elifaz
Jan 04 2016 03:15
@gravesmeister alright, show us what you’ve got and we will go from there..
Shams Jiwani
@sjiwani
Jan 04 2016 03:16
@Stoner19 @awalthefirst @Elifaz Thank you for your feedback. I am excited to learn and support this community to become stronger as a team!
Aaron Graves
@gravesmeister
Jan 04 2016 03:16

<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>

Stoner19
@Stoner19
Jan 04 2016 03:16
a mod for this channel should add something to the topic or something when people first join about how to use markdown for the chat though. markdown helps drastically.
Elifaz Filho
@Elifaz
Jan 04 2016 03:16
@gravesmeister put ``` one line before and after your code in here so it’s formatted for us to see
Aaron Graves
@gravesmeister
Jan 04 2016 03:16
Oh sorry
Stoner19
@Stoner19
Jan 04 2016 03:16
@gravesmeister don't be sorry, you didn't know.
Aaron Graves
@gravesmeister
Jan 04 2016 03:17
:)
Stoner19
@Stoner19
Jan 04 2016 03:17
its a backtick, same key as ~
cannelflow
@cannelflow
Jan 04 2016 03:17
// Setup
function phoneticLookup(val) {
  var result = "";

  // Only change code below this line

  var lookup={
  "alpha":"Adams",
  "bravo":"Bostan",
  "charlie":"Chicago",
  "delta":"Denver",
  "echo":"Easy",
  "foxtrot":"Frank"
};

  // Only change code above this line
  return result[val];
}

// Change this value to test
phoneticLookup("charlie");
@Elifaz Tried Exactly Not Passing
Abdul Awali
@awalthefirst
Jan 04 2016 03:18
@cannelflow whichway point
Elifaz Filho
@Elifaz
Jan 04 2016 03:18
@cannelflow set your result[val]; as the value to a new variable, then return this new variable
such as
var getIt = result[val];
return getIt;
cannelflow
@cannelflow
Jan 04 2016 03:18
@awalthefirst Waypoint: Using Objects for Lookups
Irma Mesa
@justirma
Jan 04 2016 03:19
This message was deleted
Lawrence Jean-Louis
@girlfromhaiti
Jan 04 2016 03:19
Hi everyone. Stuck at Convert Celsius to Fahrenheit
Elifaz Filho
@Elifaz
Jan 04 2016 03:19
@sjiwani we will be here for you and everyone else who needs support!
Abdul Awali
@awalthefirst
Jan 04 2016 03:19
@cannelflow just like what @Elifaz said should work
Aaron Graves
@gravesmeister
Jan 04 2016 03:20
Any ideas what I'm doing wrong?
Abdul Awali
@awalthefirst
Jan 04 2016 03:20
@gravesmeister whichway point
Aaron Graves
@gravesmeister
Jan 04 2016 03:20
Size your images
Abdul Awali
@awalthefirst
Jan 04 2016 03:21
@cannelflow result = obj[val];
Stoner19
@Stoner19
Jan 04 2016 03:21
@girlfromhaiti start with making a Fahrenheit variable
cannelflow
@cannelflow
Jan 04 2016 03:21
@Elifaz but both Are Same
Stoner19
@Stoner19
Jan 04 2016 03:21
@girlfromhaiti what do you have so far?
Abdul Awali
@awalthefirst
Jan 04 2016 03:21
@cannelflow they want you to use results as the variable
Irma Mesa
@justirma
Jan 04 2016 03:22
Stuck here Waypoint: Access MultiDimensional Arrays With Indexes, I'm even having trouble understanding the example.
```
var arr = [
[1,2,3],
[4,5,6],
[7,8,9],
[[10,11,12], 13, 14]
];
arr0; // equals [1,2,3]
arr1; // equals 6
arr31; // equals 11
I messed up on the markdown /:
cannelflow
@cannelflow
Jan 04 2016 03:22
This message was deleted
Elifaz Filho
@Elifaz
Jan 04 2016 03:22

@cannelflow yeah, I just gave you the example, use result as the variable and return the lookup plus the val passed as the argument

result = lookup[val];
  return result;

like this

Abdul Awali
@awalthefirst
Jan 04 2016 03:23
@cannelflow
function phoneticLookup(val) {
  var result = "";

  // Only change code below this line

  var lookup={
  "alpha":"Adams",
  "bravo":"Bostan",
  "charlie":"Chicago",
  "delta":"Denver",
  "echo":"Easy",
  "foxtrot":"Frank"
};
  results  =  lookup[val];
  // Only change code above this line
  return result;
}

// Change this value to test
phoneticLookup("charlie");
Aaron Graves
@gravesmeister
Jan 04 2016 03:24
Anyone out there help me understand what I'm doing wrong please?
Lawrence Jean-Louis
@girlfromhaiti
Jan 04 2016 03:24
@Stoner19 I have var fahrenheit = 9 / 5 + 32; but not sure how to multiply celcius
Stoner19
@Stoner19
Jan 04 2016 03:25
you just need to include celcius in the formula
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:25
@gravesmeister Hey can you post your code again? Make sure to put it between ``` so that it shows correctly. I'll do my best to help :)
Stoner19
@Stoner19
Jan 04 2016 03:25
celcius * 9/5 + 32
Elifaz Filho
@Elifaz
Jan 04 2016 03:25

@gravesmeister you have an image link in your code, you need to place the class in there, so as an example

<img class=“beautiful-cats" src=“http://google.com/images/cat.png”>

check where I left a class in my code and see if is what you need in your code, the class name I used is just an example, try to follow the class name on your exercise.

Lawrence Jean-Louis
@girlfromhaiti
Jan 04 2016 03:25
wow, that's it? Thanks @Stoner19!
CamperBot
@camperbot
Jan 04 2016 03:25
girlfromhaiti sends brownie points to @stoner19 :sparkles: :thumbsup: :sparkles:
:star: 219 | @stoner19 | http://www.freecodecamp.com/stoner19
Aaron Graves
@gravesmeister
Jan 04 2016 03:25
<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>
Stoner19
@Stoner19
Jan 04 2016 03:26
@girlfromhaiti I was stuck on that one FOREVER
Bill
@kirah1314
Jan 04 2016 03:26
@irmattg does it help to look at it like this? var arr = [ [1,2,3], [4,5,6], [7,8,9], [10,11,12], 13, 14] ];
Lawrence Jean-Louis
@girlfromhaiti
Jan 04 2016 03:26
@Stoner19 LOL... I was about to be. Thanks.
CamperBot
@camperbot
Jan 04 2016 03:26
girlfromhaiti sends brownie points to @stoner19 :sparkles: :thumbsup: :sparkles:
:warning: girlfromhaiti already gave stoner19 points
Stoner19
@Stoner19
Jan 04 2016 03:26
you're very welcome
B. Garber
@TheBGar
Jan 04 2016 03:26
anyone able to help with a bonfire?
CamperBot
@camperbot
Jan 04 2016 03:26
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
Aaron Graves
@gravesmeister
Jan 04 2016 03:26
@Elifaz it's staying to put it in the style
Elifaz Filho
@Elifaz
Jan 04 2016 03:27
@gravesmeister see the .smaller-image class atribute being used in your css style?
you need to place that class under your image link
<img [here] src=“….”>
Stoner19
@Stoner19
Jan 04 2016 03:27
can someone help with Waypoint: Return Early Pattern for Functions?
Abdul Awali
@awalthefirst
Jan 04 2016 03:27
@irmattg ...var arr = [1,2,3] to get 1 do arr[0] ...so var arr2 = [ 1,[5,7,3],2,3] to get 5 do arr2[2][1]
cannelflow
@cannelflow
Jan 04 2016 03:28
// Setup
function phoneticLookup(val) {
  var result = "";

  // Only change code below this line

  var lookup={
   "alpha":"Adams",
  "bravo":"Bostan",
  "charlie":"Chicago",
  "delta":"Denver",
  "echo":"Easy",
  "foxtrot":"Frank"
};

  // Only change code above this line
  result=lookup[val];
  return result;
}

// Change this value to test
phoneticLookup("charlie");
@Elifaz @awalthefirst it worked but not passing for phoneticLookup("bravo") saying should equal "Boston"
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:28
@Stoner19 what issue are you having with it?
Stoner19
@Stoner19
Jan 04 2016 03:28
I'm not even sure where to start.
if (a || b < 0)
return "undefined";
Elifaz Filho
@Elifaz
Jan 04 2016 03:28
@cannelflow you have Bostan as the value for the key bravo
@gravesmeister did you get it?
cannelflow
@cannelflow
Jan 04 2016 03:29
@Elifaz @awalthefirst got it should "Boston" not "Bostan" thank you both
CamperBot
@camperbot
Jan 04 2016 03:29
cannelflow sends brownie points to @elifaz and @awalthefirst :sparkles: :thumbsup: :sparkles:
:star: 487 | @awalthefirst | http://www.freecodecamp.com/awalthefirst
:star: 286 | @elifaz | http://www.freecodecamp.com/elifaz
Aaron Graves
@gravesmeister
Jan 04 2016 03:29
I'm still trying to figure out what you're saying. I'm very new as of today lol
Elifaz Filho
@Elifaz
Jan 04 2016 03:29
@cannelflow there you go..
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:29
@Stoner19 well gotta try and break down the instructions. I would hate to just give out the answer to you.
Aaron Graves
@gravesmeister
Jan 04 2016 03:29
So I'm reading over it until it makes sense
Elifaz Filho
@Elifaz
Jan 04 2016 03:29
@gravesmeister alright, so lets use the code you just posted as an example read what I will write inside alright?
Stoner19
@Stoner19
Jan 04 2016 03:30
@Jonatan-B I don't want the answer given to me either. but I don't think it's asking for console.log like in the example
Abdul Awali
@awalthefirst
Jan 04 2016 03:30
@gravesmeister i'm sorry which waypoint :smile:
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:30
@Stoner19 correct, its not asking for a console.log, its asking to return a value if the conditions are met.
Mox Gaa
@9-9-0
Jan 04 2016 03:30
What's the difference between "wheels": and wheels: when used in an object?
Aaron Graves
@gravesmeister
Jan 04 2016 03:30
@Elifaz Ok
Dan Strong
@strongdan
Jan 04 2016 03:30

For the counting cards JS waypoint/checkpoint I'm not sure how to return "bet" or "hold"

var count = 0;

function cc(card) {
// Only change code below this line

switch(card) {
case 2:
case 3:
case 4:
case 5:
case 6:
count += 1;
break;
case 7:
case 8:
case 9:
count += 0;
break;
case 10:
case 'J':
case 'Q':
case 'K':
case 'A':
count -= 1;
}
return "count" //this is the line that I'm confused about
return "Change Me";
// Only change code above this line
}

Stoner19
@Stoner19
Jan 04 2016 03:31
@Jonatan-B it's a terrible example for the waypoint
Abdul Awali
@awalthefirst
Jan 04 2016 03:31
@qqTpp same no difference
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:31
@qqTpp that's a good question. I would think that none, but if you get a better answer let me know.
Elifaz Filho
@Elifaz
Jan 04 2016 03:31
@gravesmeister
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

/* This is elifaz */
/* this is a class atribute that is being called in your css, 
but it doesn’t exist in the image */ Im referring to the .smaller-image
  .smaller-image {    

    width: 100px;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

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

<h2 class="red-text">CatPhotoApp</h2>
<!--here is the image, and where is the class? put after the “img” class=“smaller-image”  and run the code —>
<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>
Rovshen Gurdov
@7urkm3n
Jan 04 2016 03:31

Any Help ???

"You should not use case, switch, or if statements"

// Setup
function phoneticLookup(val) {
  var result = '';

  // Only change code below this line

  switch(val) {
    case "alpha": 
      result = "Adams";
      break;
    case "bravo": 
      result = "Boston";
      break;
    case "charlie": 
      result = "Chicago";
      break;
    case "delta": 
      result = "Denver";
      break;
    case "echo": 
      result = "Easy";
      break;
    case "foxtrot": 
      result = "Frank";
      break;

    default:
      result = undefined;
  }
  return result;
}

// Change this value to test
phoneticLookup("");
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:32
@Stoner19 I don't believe its a bad waypoint. The thing is that the provided function already works; however, you are adding a way to ensure that there is no errors in execution. So you have to check the parameters to ensure they aren't less than 0. If they were the result would be undefined.
Stoner19
@Stoner19
Jan 04 2016 03:32
@Jonatan-B
if(a < 0)
return "undefined";
else if(b < 0)
return "undefined";
Abdul Awali
@awalthefirst
Jan 04 2016 03:32
@qqTpp red wheels: // this won't work "red wheels": //now it will work
cannelflow
@cannelflow
Jan 04 2016 03:33
 if(count>0){
    return count+" Bet";
  }
  else {
    return count+" Hold";
  }
add if statement @strongdan
Mox Gaa
@9-9-0
Jan 04 2016 03:33
@awalthefirst Thanks for clarifying that.
CamperBot
@camperbot
Jan 04 2016 03:33
qqtpp sends brownie points to @awalthefirst :sparkles: :thumbsup: :sparkles:
:star: 488 | @awalthefirst | http://www.freecodecamp.com/awalthefirst
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:33
@Stoner19 remove the "" undefined is an existing property.
Dan Strong
@strongdan
Jan 04 2016 03:34
@cannelflow Thanks! That worked
CamperBot
@camperbot
Jan 04 2016 03:34
strongdan sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:star: 218 | @cannelflow | http://www.freecodecamp.com/cannelflow
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:34
@7urkm3n maybe an object?
Rovshen Gurdov
@7urkm3n
Jan 04 2016 03:34
@Jonatan-B any example ?
Elifaz Filho
@Elifaz
Jan 04 2016 03:35

@gravesmeister so in your image link that before was like this:

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

will be like this

<img class=“smaller-image” src="https://bit.ly/fcc-relaxing-cat”>
Stoner19
@Stoner19
Jan 04 2016 03:35
@Jonatan-B wow, I actually figured the majority of that on out on my own! rather impressed (and surprised) with myself. Thanks for the last little hint.
CamperBot
@camperbot
Jan 04 2016 03:35
stoner19 sends brownie points to @jonatan-b :sparkles: :thumbsup: :sparkles:
:star: 275 | @jonatan-b | http://www.freecodecamp.com/jonatan-b
Rovshen Gurdov
@7urkm3n
Jan 04 2016 03:35
@Jonatan-B I got it
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:35
@Stoner19 glad that I was able to provide some help :)
@7urkm3n sweet, i was about to start writing something :P
cannelflow
@cannelflow
Jan 04 2016 03:36
@7urkm3n
// Setup
function phoneticLookup(val) {
  var result = "";

  // Only change code below this line

  var lookup={
   "alpha":"Adams",
  "bravo":"Boston",
  "charlie":"Chicago",
  "delta":"Denver",
  "echo":"Easy",
  "foxtrot":"Frank"
};

  // Only change code above this line
  result=lookup[val];
  return result;
}

// Change this value to test
phoneticLookup("charlie");
Stephanie R.
@RideoutS21
Jan 04 2016 03:36
Ugh I'm still having trouble with Checkpoint Word Blanks
Elifaz Filho
@Elifaz
Jan 04 2016 03:36
@gravesmeister got it? after you solve this exercise try going back to it and understand what you’ve done, because thats really important..
Stephanie R.
@RideoutS21
Jan 04 2016 03:36

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
var result = wordBlanks;
// Your code below this line

result = ("myNoun" + "myAdjective" + "myVerb" + "myAdverb");

// Your code above this line

return result;
}

// Change the words here to test your function
wordBlanks = ("dog", "big", "ran", "quickly");

Aaron Graves
@gravesmeister
Jan 04 2016 03:37
It didn't do anything and it doesn't make any sense from what the lesson says. All it says it to add it to the Style area
cannelflow
@cannelflow
Jan 04 2016 03:37
@7urkm3n convert everything to object and use result as variable at the end
Abdul Awali
@awalthefirst
Jan 04 2016 03:37
@RideoutS21 add some arbitrary string to it
Irma Mesa
@justirma
Jan 04 2016 03:37
@kirah1314 @awalthefirst got it! thank youu
CamperBot
@camperbot
Jan 04 2016 03:37
irmattg sends brownie points to @kirah1314 and @awalthefirst :sparkles: :thumbsup: :sparkles:
:star: 489 | @awalthefirst | http://www.freecodecamp.com/awalthefirst
:star: 739 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Aaron Graves
@gravesmeister
Jan 04 2016 03:37
@Elifaz I put in the code word for word and it didn't work
Elifaz Filho
@Elifaz
Jan 04 2016 03:37
@RideoutS21 almost, you are assigning result to wordblanks, which is inside your own function. start by removing that.
@gravesmeister show me what you’ve got.
Stoner19
@Stoner19
Jan 04 2016 03:38
@RideoutS21 you need to concatenate strings and variables. "statement 1 " +myNoun+ " statement 2 " +myAdjective+ etc
Aaron Graves
@gravesmeister
Jan 04 2016 03:38
<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 class="smaller image" 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>
Stephanie R.
@RideoutS21
Jan 04 2016 03:38
Ah! Thanks so much @Stoner19 @Elifaz !
CamperBot
@camperbot
Jan 04 2016 03:38
rideouts21 sends brownie points to @stoner19 and @elifaz :sparkles: :thumbsup: :sparkles:
:star: 287 | @elifaz | http://www.freecodecamp.com/elifaz
:star: 221 | @stoner19 | http://www.freecodecamp.com/stoner19
Elifaz Filho
@Elifaz
Jan 04 2016 03:39
add a dash to your smaler image @gravesmeister your missing a -
Abdul Awali
@awalthefirst
Jan 04 2016 03:39
@RideoutS21
result = " something... something..." +"myNoun" 
+ "myAdjective" + "myVerb" + "myAdverb"; 
 // the length has to be 30  so  add 30 characters
Elifaz Filho
@Elifaz
Jan 04 2016 03:39
@gravesmeister now is
class="smaller-image"
Aaron Graves
@gravesmeister
Jan 04 2016 03:40
Wow something so small. I wish these lessons would explain things better. Thanks so much for your help @Elifaz
CamperBot
@camperbot
Jan 04 2016 03:40
gravesmeister sends brownie points to @elifaz :sparkles: :thumbsup: :sparkles:
:star: 288 | @elifaz | http://www.freecodecamp.com/elifaz
Jess R
@Raindove
Jan 04 2016 03:40

Hi, I'm having some trouble with Waypoint: Accessing Nested Arrays in JSON
// Setup
var myPlants = [
{
type: "flowers",
list: [
"rose",
"tulip",
"dandelion"
]
},
{
type: "trees",
list: [
"fir",
"pine",
"birch"
]
}
];

// Only change code below this line
var secondTree = myPlants.type1.list1;

Stephanie R.
@RideoutS21
Jan 04 2016 03:40
Thanks @awalthefirst !
CamperBot
@camperbot
Jan 04 2016 03:40
rideouts21 sends brownie points to @awalthefirst :sparkles: :thumbsup: :sparkles:
Elifaz Filho
@Elifaz
Jan 04 2016 03:40
@gravesmeister no problem, it’s just a start, the more you hack the more you learn. Keep on hacking.
CamperBot
@camperbot
Jan 04 2016 03:40
:star: 490 | @awalthefirst | http://www.freecodecamp.com/awalthefirst
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:40
@gravesmeister attention to detail is imperative in programming :)
Aaron Graves
@gravesmeister
Jan 04 2016 03:40
I know but it's hard to be detailed when they don't explain enough @Jonatan-B . Thanks guys
CamperBot
@camperbot
Jan 04 2016 03:41
gravesmeister sends brownie points to @jonatan-b :sparkles: :thumbsup: :sparkles:
:star: 276 | @jonatan-b | http://www.freecodecamp.com/jonatan-b
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:41
@Raindove what issue are you having?
Shifaza
@Shifatsar
Jan 04 2016 03:41
Can anyone help me out with Checkpoint: Stand in Line
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:41
@Raindove oh i see what you mean now in the last line of code. Try to put ``` between your code so that it makes it look properly.
Jess R
@Raindove
Jan 04 2016 03:42
@Jonatan-B Thanks
CamperBot
@camperbot
Jan 04 2016 03:42
raindove sends brownie points to @jonatan-b :sparkles: :thumbsup: :sparkles:
:star: 277 | @jonatan-b | http://www.freecodecamp.com/jonatan-b
Elifaz Filho
@Elifaz
Jan 04 2016 03:42
This message was deleted
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:42
@Raindove that one was actually confusing for me at first too. The thing is that you had been working with objects for the past few waypoints that you forget that this one is an object holding an array.
cannelflow
@cannelflow
Jan 04 2016 03:42
@Shifatsar
arr.push(item);
  return arr.shift();
Jess R
@Raindove
Jan 04 2016 03:42
// Setup
var myPlants = [
{
type: "flowers",
list: [
"rose",
"tulip",
"dandelion"
]
},
{
type: "trees",
list: [
"fir",
"pine",
"birch"
]
}
];

// Only change code below this line
var secondTree = myPlants.type1.list1;
Elifaz Filho
@Elifaz
Jan 04 2016 03:42
@Shifatsar show us what you’ve got.
Jess R
@Raindove
Jan 04 2016 03:43
There we go, sorry
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:43
@Raindove awesome, but yeah you're trying to access the object properties; however, myPlants is actually an array that contains 2 objects.
@Raindove i don't wish to give out the answer so let me know if you understand what I'm saying and if its helping you. If not so I can try to explain it better
Jess R
@Raindove
Jan 04 2016 03:44
@Jonatan-B Appreciate the help, I'll give it another look.
@Jonatan-B Yeah, I think I understand, thanks
CamperBot
@camperbot
Jan 04 2016 03:45
raindove sends brownie points to @jonatan-b :sparkles: :thumbsup: :sparkles:
:warning: raindove already gave jonatan-b points
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:45
@Raindove awesome :clap:
Elifaz Filho
@Elifaz
Jan 04 2016 03:45
did we skip helping anyone?
Yvan DiVirgilio
@YvanDi
Jan 04 2016 03:45
@justinshort2015 Its a bad test, being resolved by FCC.
Elifaz Filho
@Elifaz
Jan 04 2016 03:46
my cat keep jumping on my desk and sitting on my keyboard :shipit:
Abdul Awali
@awalthefirst
Jan 04 2016 03:46
@Elifaz :smile:
Elifaz Filho
@Elifaz
Jan 04 2016 03:47
@awalthefirst show us where are you at, and we will go from there..
Abdul Awali
@awalthefirst
Jan 04 2016 03:48
@Elifaz 2 more d3 js zipline
Elifaz Filho
@Elifaz
Jan 04 2016 03:51
@awalthefirst I haven’t done mine yet, just about to finish the portfolio zipline.. studying event handling to move ahead with all of them at once..Javascript & jQuery Interactive front-end web development - Jon Duckett - really good book!
Jess R
@Raindove
Jan 04 2016 03:52
@Jonatan-B Got it!
Scott
@Gangezilla
Jan 04 2016 03:52
Hey there, does anybody have any clue about how to refresh just a div using JS or jQuery?
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:52
@Raindove good job :)
Abdul Awali
@awalthefirst
Jan 04 2016 03:52
@Gangezilla what do you mean by refresh
Christopher Mayfield
@christophermayfield
Jan 04 2016 03:53
@Raindove good job rainDove
Shifaza
@Shifatsar
Jan 04 2016 03:53

// Setup
var myArr = [1,2,3,4,5];

function queue(arr, item) {
// Your code here
var removedItem = arr.shift();
arr.push(item)

return removedItem; // Change this line
}

// Display Code
console.log("Before: " + JSON.stringify(myArr));
console.log(queue([], 1)); // Modify this line to test
console.log("After: " + JSON.stringify(myArr));
console.log(myArr[4]);

queue([], 1) should return 1 <--- that i dont understand

Jess R
@Raindove
Jan 04 2016 03:53
Thanks all
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:54
@Gangezilla do you mean fetching data from the server side?
Abdul Awali
@awalthefirst
Jan 04 2016 03:54
@Raindove any time
Scott
@Gangezilla
Jan 04 2016 03:54
Well, I'm trying to do the Local Weather Zipline, right? And I'm trying to make two buttons that will switch between celsius and fahrenheit. I've implemented code that will alter this on load/based on the JSON, but if I wanted to do this whilst the page is loaded, and without having to refresh the whole page, I figured that refreshing just a div, and changing a boolean to show F/C would be a way to do it. Does that make any sense?
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:54
@Shifatsar please put your code in `` so that it is formatted correctly. the '' is located to the left of the number 1 key in the US keyboard.
@Gangezilla JavaScript can do this
Shifaza
@Shifatsar
Jan 04 2016 03:55

@Jonatan-B
`// Setup
var myArr = [1,2,3,4,5];

function queue(arr, item) {
// Your code here
var removedItem = arr.shift();
arr.push(item)

return removedItem; // Change this line
}

// Display Code
console.log("Before: " + JSON.stringify(myArr));
console.log(queue([], 1)); // Modify this line to test
console.log("After: " + JSON.stringify(myArr));
console.log(myArr[4]);`

Leonard Johnson
@Jarvis3000
Jan 04 2016 03:55

I get maximum call stack size exceeded on this piece of code.var myArr = [1,2,3,4,5];

function queue(arr, item) {
// Your code here

      myArr.push(item);


   var v  =  myArr.shift();

return v; // Change this line

}

DJ
@qualitymanifest
Jan 04 2016 03:55
@Gangezilla you can use a click function and if/else statements to convert between the two
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:55
@Shifatsar you need 3 of them, `
Scott
@Gangezilla
Jan 04 2016 03:56
@Jonatan-B Ooh, that's exciting news. Any ideas how, or I should just have a bit of a Google?
DJ
@qualitymanifest
Jan 04 2016 03:56
@Gangezilla and to "refresh" the div you can just use jquery's .text()
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:56
@Gangezilla @qualitymanifest gave an idea already :)
Scott
@Gangezilla
Jan 04 2016 03:57
Okay, cool! I'll give those a go. Thanks very much, @qualitymanifest and @Jonatan-B :)
CamperBot
@camperbot
Jan 04 2016 03:57
gangezilla sends brownie points to @qualitymanifest and @jonatan-b :sparkles: :thumbsup: :sparkles:
:star: 279 | @jonatan-b | http://www.freecodecamp.com/jonatan-b
:star: 717 | @qualitymanifest | http://www.freecodecamp.com/qualitymanifest
Shifaza
@Shifatsar
Jan 04 2016 03:57
@Jonatan-B really cant seem to figure out the ``
pecansalad
@pecansalad
Jan 04 2016 03:57
Screen Shot 2016-01-04 at 11.56.21 AM.png
Leonard Johnson
@Jarvis3000
Jan 04 2016 03:57
hello out there can someone explain why this piece of code may not be working
Elifaz Filho
@Elifaz
Jan 04 2016 03:57
I will go back to my study here, good night everyone..
Scott
@Gangezilla
Jan 04 2016 03:58
Rad. Thanks very much guys!
pecansalad
@pecansalad
Jan 04 2016 03:58
Am i doing this wrong?
Waypoint: Return Early Pattern for Functions
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:58
You put in `` then put your code, and then put the three again.
Pawan
@pawan92
Jan 04 2016 03:58
@Jarvis3000 refresh page
Abdul Awali
@awalthefirst
Jan 04 2016 03:58
@Elifaz goodbye
Shifaza
@Shifatsar
Jan 04 2016 03:58

```// Setup
var myArr = [1,2,3,4,5];

function queue(arr, item) {
// Your code here
var removedItem = arr.shift();
arr.push(item)

return removedItem; // Change this line
}

// Display Code
console.log("Before: " + JSON.stringify(myArr));
console.log(queue([], 1)); // Modify this line to test
console.log("After: " + JSON.stringify(myArr));
console.log(myArr[4]);
```

Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:58
Here you go
// Setup
var myArr = [1,2,3,4,5];
function queue(arr, item) {
// Your code here
var removedItem = arr.shift();
arr.push(item)
return removedItem; // Change this line
}
// Display Code
console.log("Before: " + JSON.stringify(myArr));
console.log(queue([], 1)); // Modify this line to test
console.log("After: " + JSON.stringify(myArr));
console.log(myArr[4]);
Shifaza
@Shifatsar
Jan 04 2016 03:59
line break after first ```?
Christian
@Neralizer
Jan 04 2016 03:59
Why is array 2 equal to 8 when array 1 is equal to 6?
Jonatan Bernal
@Jonatan-B
Jan 04 2016 03:59
@Shifatsar I believe that is what was missing.
Shifaza
@Shifatsar
Jan 04 2016 03:59
ah :D thanks
pecansalad
@pecansalad
Jan 04 2016 04:00
What does it mean for a function to immediately exit with a value of undefined?
B. Garber
@TheBGar
Jan 04 2016 04:01
Anyone help with a bonfire?
CamperBot
@camperbot
Jan 04 2016 04:01
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
Jonatan Bernal
@Jonatan-B
Jan 04 2016 04:01

@Shifatsar also you can modify the message to fix formatting by clicking on the three dots by the time. :)

Now to your issue, what is the problem? :P

Abdul Awali
@awalthefirst
Jan 04 2016 04:01
@pecansalad which way point
pecansalad
@pecansalad
Jan 04 2016 04:01
Waypoint: Return Early Pattern for Functions
@awalthefirst
Jonatan Bernal
@Jonatan-B
Jan 04 2016 04:02
@pecansalad could you copy your code? It would help identify the issue
pecansalad
@pecansalad
Jan 04 2016 04:03
Screen Shot 2016-01-04 at 11.56.21 AM.png
KoToZ
@Mohamedtareque
Jan 04 2016 04:03

hey guys >>> Waypoint: Generate Random Whole Numbers within a Range

i can't understand this equ

Math.floor(Math.random() * (max - min + 1)) + min

Abdul Awali
@awalthefirst
Jan 04 2016 04:03
@pecansalad remove the else if
pecansalad
@pecansalad
Jan 04 2016 04:05
@awalthefirst doesn't work? :/
Jonatan Bernal
@Jonatan-B
Jan 04 2016 04:05
@pecansalad as @awalthefirst said you have an else if statement that doesn't close.
@pecansalad but you also have an extra '{' after the function ends, on line 16.
Abdul Awali
@awalthefirst
Jan 04 2016 04:06
@pecansalad
 if ( a < 0 || b < 0){
     return undefined;    // you only need this 
   }
pecansalad
@pecansalad
Jan 04 2016 04:06
it closes @Jonatan-B , i put the extra } to close it
@awalthefirst oh so you don't need to "" undefined
KoToZ
@Mohamedtareque
Jan 04 2016 04:07
Math.floor(Math.random() * (max - min + 1)) + min
Jonatan Bernal
@Jonatan-B
Jan 04 2016 04:07
@pecansalad I believe you put that one in the wrong place then, line 16 should not have the }
Leonard Johnson
@Jarvis3000
Jan 04 2016 04:08
when I refresh the page do you mean reload the page with the browser
Jonatan Bernal
@Jonatan-B
Jan 04 2016 04:08
@Jarvis3000 I believe that is what it is meant by refresh the page.
Leonard Johnson
@Jarvis3000
Jan 04 2016 04:08
thanks
Abdul Awali
@awalthefirst
Jan 04 2016 04:08
This message was deleted
pecansalad
@pecansalad
Jan 04 2016 04:09
@awalthefirst @Jonatan-B ok got it thanks so much !!!! :)
CamperBot
@camperbot
Jan 04 2016 04:09
pecansalad sends brownie points to @awalthefirst and @jonatan-b :sparkles: :thumbsup: :sparkles:
:star: 491 | @awalthefirst | http://www.freecodecamp.com/awalthefirst
:star: 280 | @jonatan-b | http://www.freecodecamp.com/jonatan-b
Jonatan Bernal
@Jonatan-B
Jan 04 2016 04:09
@pecansalad woot :clap:
Shifaza
@Shifatsar
Jan 04 2016 04:09
@Jarvis3000 just realized you answered the question. and your part worked. i dont understand why though.
Jonatan Bernal
@Jonatan-B
Jan 04 2016 04:10
@Mohamedtareque the equation is creating a random number between a given maximum and a minimum parameter.
jadd
@koopsta
Jan 04 2016 04:15
how to post code?
Leonard Johnson
@Jarvis3000
Jan 04 2016 04:15
Jonatan-B thanks. I get the last two queue arguments in the exercise, but now I don't get the first. I change the paremeters in the second line of console.log(queue(). Also, is arr a data type in the queue()?
Abhishek Kumar
@Mr-Kumar-Abhishek
Jan 04 2016 04:16
could I ask help about my zipline projects here ?
Leonard Johnson
@Jarvis3000
Jan 04 2016 04:17
@Jonatan-B Jonatan-B thanks. I get the last two queue arguments in the exercise, but now I don't get the first. I change the paremeters in the second line of console.log(queue(). Also, is arr a data type in the queue()?
CamperBot
@camperbot
Jan 04 2016 04:17
jarvis3000 sends brownie points to @jonatan-b :sparkles: :thumbsup: :sparkles:
:star: 282 | @jonatan-b | http://www.freecodecamp.com/jonatan-b
Jonatan Bernal
@Jonatan-B
Jan 04 2016 04:18
@Jarvis3000 can you post your code again? That way we can all help identify the issue.
Leonard Johnson
@Jarvis3000
Jan 04 2016 04:19

@Jonatan-B // Setup
var myArr = [1,2,3,4,5];

function queue(arr, item) {
// Your code here

var v = arr.shift();

  arr.push(item);

return v; // Change this line

}