These are chat archives for FreeCodeCamp/Help

8th
Feb 2016
Franco Zapata
@Francozt01
Feb 08 2016 00:00
@outspc u have to push the item to the array with push(); and subtract the first element of the array with shift(); and return that element subtracted from the array
Mat Forsberg
@MatForsberg
Feb 08 2016 00:00
go to settings in the upper right hand corner -> javascript -> enable jquery
Franco Zapata
@Francozt01
Feb 08 2016 00:00
@out read abut how works push() and shift();
@outspc
outspc
@outspc
Feb 08 2016 00:01
@Francozt01 thanx, will try it, i already read about
CamperBot
@camperbot
Feb 08 2016 00:01
outspc sends brownie points to @francozt01 :sparkles: :thumbsup: :sparkles:
:star: 526 | @francozt01 | http://www.freecodecamp.com/francozt01
Fearnostigma
@fearnostigma
Feb 08 2016 00:01
@MatForsberg kk, done.
Still not seeing output from the HTML
outspc
@outspc
Feb 08 2016 00:02
@Francozt01 i'm tring to figure out some queue() function, instead of push(), shift()...
Mat Forsberg
@MatForsberg
Feb 08 2016 00:02
add $("#output").text(collection); at end
Franco Zapata
@Francozt01
Feb 08 2016 00:03
@outspc that's ok good luck
Raincode
@Raincode
Feb 08 2016 00:05
need help? pm me
VinCoding
@VinCoding
Feb 08 2016 00:09
Can someone explain what each language does in a few words? I am new here and would like to know
ukualf
@ukualf
Feb 08 2016 00:15
¿How do I create a css class with pink text?
Raincode
@Raincode
Feb 08 2016 00:19
css:
.pink {
    color: pink;
}
html:
<h1 class="pink">Text</h1>
I hope css actually has pink defined lol
not tested
also missing the closing >
Aleksander Gębicki
@Takumar
Feb 08 2016 00:20
@Raincode yes, pink is a very important colour ;-) it is defined :-)
Raincode
@Raincode
Feb 08 2016 00:22
g
haha
@VinCoding which language? Every programming language? That would be a long list..
Marc
@wumpafruits
Feb 08 2016 00:28

Instructions:

Create a class called gray-background with the background-color of gray. Assign this class to your div element.

My Editor:

I've created the style class 'gray-background' but don't know how to assign it to my div element:

<div>

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

Aleksander Gębicki
@Takumar
Feb 08 2016 00:29
@wumpafruits just add to your DIV: <div class="gray-background">
Michael Aubrey
@mca62511
Feb 08 2016 00:29
So, I'm on "Change the font size of an element" and it isn't accepting my answer
Marc
@wumpafruits
Feb 08 2016 00:30
gotchya, thankyou
Aleksander Gębicki
@Takumar
Feb 08 2016 00:30
@wumpafruits look how @Raincode declared class for pink color :point_up: 8 lutego 2016 01:19
Michael Aubrey
@mca62511
Feb 08 2016 00:30
the sidebar says that I'll need my browser text zoom set to 100% in order for the answer to be accepted.... except it is.
Aleksander Gębicki
@Takumar
Feb 08 2016 00:30
@mca62511 show your code
Michael Aubrey
@mca62511
Feb 08 2016 00:31
<style>
  .red-text {
    color: red;
  }
  p {
    font-size: 16px;
  }
</style>

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

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

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

What isn't passing is,

Give elements with the p tag a font-size of 16px. Browser and Text zoom should be at 100%.

Aleksander Gębicki
@Takumar
Feb 08 2016 00:31
@mca62511 your second paragraph should not have .red-text class!
This: <p class="red-text">Purr jump ea...
Marc
@wumpafruits
Feb 08 2016 00:31
How do you show your code like @mca62511??
Michael Aubrey
@mca62511
Feb 08 2016 00:32
put four spaces in front of it
Aleksander Gębicki
@Takumar
Feb 08 2016 00:32
@wumpafruits read about formatting code in Markdown
wiki format
CamperBot
@camperbot
Feb 08 2016 00:32

: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

Michael Aubrey
@mca62511
Feb 08 2016 00:33
It never specifies not to?
I'll try removing it.
Well, that did it
thanks
huh, didn't know the tidle worked like thatI was using four spaces before each line
<p>Test</p>
that is easier
:thumbsup: thanks again
max77p
@max77p
Feb 08 2016 00:36
did we learn a lot about implementing api in webpages?
if not, can someone direct me to where i can learn it best?
i am on the quote machine problem
Raincode
@Raincode
Feb 08 2016 00:45
getJSON() ?
Jawbh
@CaBra503
Feb 08 2016 00:54
Does anyone here work on a laptop with 2 gigs of ram?
whooops wrong chat
Jawbh
@CaBra503
Feb 08 2016 01:04
How about this one. Anyone want to give me an insight for why my return early pattern isnt passing? @anyone xD
if (a || b >= 0) { return;}
I get my undefined pass but nothing else passes...?
Raincode
@Raincode
Feb 08 2016 01:07
arent you supposed to check a < 0 ||b < 0?
and return undefined
since sqrt of a neg number does not yield a real number
@CaBra503
if javascript handles it like C++, then you are saying
if (a != 0 || b >= 0) return;
but you want to check
if (a < 0 || b < 0) return undefined;  // cant sqrt() from negative number
Ill run it down for you:
in all testruns of absTest, the parameter a is not 0, thus your function always returns undefined ,thus the ones expecting undefined pass and the ones expecting a number fail
makes sense right?
Jawbh
@CaBra503
Feb 08 2016 01:12
ohhh
yeah that makes sense when you explain it like that
Catherine Kim
@Catherinesjkim
Feb 08 2016 01:15
I need help with Change the Font Size of an Element
Raincode
@Raincode
Feb 08 2016 01:16
If you want square roots of negative numbers use some kind of complex number lib
@Catherinesjkim Im gonna take a wild guess, dont set the class of 2nd <p> element to "pink"
Catherine Kim
@Catherinesjkim
Feb 08 2016 01:17
It's already in pink color
Raincode
@Raincode
Feb 08 2016 01:18
Exactly, only set the first one to pink, the second one not
Catherine Kim
@Catherinesjkim
Feb 08 2016 01:19
How do I do that?
Got it
Raincode
@Raincode
Feb 08 2016 01:19
Stand in awe of my mind reading telepathic cababilities
jk
Catherine Kim
@Catherinesjkim
Feb 08 2016 01:22
Still not working...
Raincode
@Raincode
Feb 08 2016 01:23
can I see the entire code, please
Jawbh
@CaBra503
Feb 08 2016 01:24
lol @Raincode
in complete awe**
Raincode
@Raincode
Feb 08 2016 01:24
well, as I said, just a wild guess
and daying Got it I thought it worked, mb
saying*
afr0blue
@afr0blue
Feb 08 2016 01:40
hi everyone. so i infinite looped one of the challenges how do i reset it?
Chris
@Aoxom
Feb 08 2016 01:43
@afr0blue with chrome you may be able to do shift+esc to bring up the browsers task manager and kill it
Vinícius
@vinicius978
Feb 08 2016 01:50
Someone can help me with the "Create a Bootstrap headline" challenge?
Nevermind, I could do it!
afr0blue
@afr0blue
Feb 08 2016 01:53
@Aoxom i can kill the tab just fine but the challenge has my infinite loop code saved. so before i can get to reset it crashes.
Jawbh
@CaBra503
Feb 08 2016 02:04
does anyone know of a text editor thats lighter than atom?
ram usage wise?
Catherine Kim
@Catherinesjkim
Feb 08 2016 02:04
I did it. You were right. Thank you Raincode!
@Raincode I did it. Thank you! You were right!
CamperBot
@camperbot
Feb 08 2016 02:04
catherinesjkim sends brownie points to @raincode :sparkles: :thumbsup: :sparkles:
:star: 213 | @raincode | http://www.freecodecamp.com/raincode
Manish Giri
@Manish-Giri
Feb 08 2016 02:21
@CaBra503 sublime text
DavH27
@DavH27
Feb 08 2016 02:53
Hi everyone! I'm going crazy over jQuery
'Target the same element with multiple jQuery Selectors'. Does it have a trick or a bug?
Catherine Kim
@Catherinesjkim
Feb 08 2016 02:53
I need help with CSS: Size your images!
DavH27
@DavH27
Feb 08 2016 02:54
@Catherinesjkim I could help :-) What do you have so far?
Catherine Kim
@Catherinesjkim
Feb 08 2016 02:55

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

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

h2 {
font-family: Lobster, Monospace;
}

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

img
width: 100px;
}
</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>

How do I make the image smaller to 100px?
@DavH27
DavH27
@DavH27
Feb 08 2016 02:57
This message was deleted

@Catherinesjkim You need to have the class between the following elements
'''

<style>
</style>
'''

CamperBot
@camperbot
Feb 08 2016 02:58
:bulb: to format code use backticks! ``` more info
DavH27
@DavH27
Feb 08 2016 02:58
@Catherinesjkim You need to have the class between the following elements
<style>
</style>
Catherine Kim
@Catherinesjkim
Feb 08 2016 02:59
Yeah, that's what I did.
Do I need to add "smaller image" in the img element?
DavH27
@DavH27
Feb 08 2016 02:59
Yes you manipulated the IMG element directly but you need to do it from within a class.
Jawbh
@CaBra503
Feb 08 2016 03:00
@Manish-Giri really??
Catherine Kim
@Catherinesjkim
Feb 08 2016 03:01
Do I need to add anything to this? <img src="https://bit.ly/fcc-relaxing-cat">
DavH27
@DavH27
Feb 08 2016 03:01
@Catherinesjkim Yes you need to reference the class name from the <STYLE> but you also need to enter the class in to the STYLE
@Catherinesjkim Notice the differences.
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

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

  .larger-image {
    width: 500px;
  }

  .smaller-image {
    width: 100px;
  }
</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>
@Catherinesjkim I have simplified this:
<style> 
  .smaller-image {
    width: 100px;
  }
</style>
<img class="smaller-image" src="https://bit.ly/fcc-relaxing-cat">
Catherine Kim
@Catherinesjkim
Feb 08 2016 03:04
Done. Thank you! @DavH27
CamperBot
@camperbot
Feb 08 2016 03:04
catherinesjkim sends brownie points to @davh27 :sparkles: :thumbsup: :sparkles:
:star: 115 | @davh27 | http://www.freecodecamp.com/davh27
DavH27
@DavH27
Feb 08 2016 03:04
woooo! thanks, @camperbot
Does anybody know a thing or two about jQuery?
This message was deleted
Manish Giri
@Manish-Giri
Feb 08 2016 03:24
@DavH27 what’s your question
DavH27
@DavH27
Feb 08 2016 03:24

@Manish-Giri Hi! I am sure the following challenge really needs rewording or at least a bit more explanation. I have figured it out now thanks to the wiki but sheeeeeesh

http://www.freecodecamp.com/challenges/target-the-same-element-with-multiple-jquery-selectors

CamperBot
@camperbot
Feb 08 2016 03:24
davh27 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star: 625 | @manish-giri | http://www.freecodecamp.com/manish-giri
Kevin Mulligan
@kmulligan
Feb 08 2016 03:36
how do I return the value of an object's property?
Kumar Nitesh
@knitesh
Feb 08 2016 03:39
@kmulligan try return obj[prop]
if you want to read key's of Object you can also use return Object.keys(yourObj)
Kevin Mulligan
@kmulligan
Feb 08 2016 03:42
@knitesh Maybe I am doing something wrong... my object is inside an array...
Kumar Nitesh
@knitesh
Feb 08 2016 03:43
paste your code snippet here.. I can look into it
Kevin Mulligan
@kmulligan
Feb 08 2016 03:45
http://www.freecodecamp.com/challenges/profile-lookup
//Setup
var contacts = [
    {
        "firstName": "Akira",
        "lastName": "Laine",
        "number": "0543236543",
        "likes": ["Pizza", "Coding", "Brownie Points"]
    },
    {
        "firstName": "Harry",
        "lastName": "Potter",
        "number": "0994372684",
        "likes": ["Hogwarts", "Magic", "Hagrid"]
    },
    {
        "firstName": "Sherlock",
        "lastName": "Holmes",
        "number": "0487345643",
        "likes": ["Intriguing Cases", "Violin"]
    },
    {
        "firstName": "Kristian",
        "lastName": "Vos",
        "number": "unknown",
        "likes": ["Javascript", "Gaming", "Foxes"]
    }
];


function lookUp(firstName, prop){
// Only change code below this line

   if ((contacts.firstName = "firstName") && (contacts.prop = "prop")) {
    return contacts[prop];
   }
Robert Watts
@Roberto53
Feb 08 2016 03:45
im stuck on creating a bootstrap button. the instructions didnt specify what type of button im creating. It just says to create a new button element with the text "Like" and that it should have the class of btn
Kevin Mulligan
@kmulligan
Feb 08 2016 03:46
@Roberto53 have you tried <button></button> with the class types inside?
Kumar Nitesh
@knitesh
Feb 08 2016 03:46
@Roberto53 you can do <button class="btn btn-default>Like</button>
Kevin Mulligan
@kmulligan
Feb 08 2016 03:47
@knitesh if I do return prop; it returns likes as that is in the test
Robert Watts
@Roberto53
Feb 08 2016 03:47
thanks
it worked
Kevin Mulligan
@kmulligan
Feb 08 2016 03:48
@knitesh I need what the value of prop is
Sophanarith Sok
@sok213
Feb 08 2016 03:55
Can anyone tell me why my onClick function will not run on my React code? I am simply trying to alert("test") when I click a button. It is on line 60
help.png
Kumar Nitesh
@knitesh
Feb 08 2016 03:56
@kmulligan looking into it
Tim Bell
@MindfulBell
Feb 08 2016 03:58
@sok213 are you using codepen? How is your IDE set up? (have you tried this.props.clicktest ?
@sok213 im prob wrong!
Sophanarith Sok
@sok213
Feb 08 2016 03:59
@MindfulBell I am using sublime text, for the react projects, you do not need to have a server set up
because everything is basically a static page
Just have an index.html file and open it in a browser
that's how I do it
Tim Bell
@MindfulBell
Feb 08 2016 04:01
@sok213 cool, and generally, its one component per file really right?
Sophanarith Sok
@sok213
Feb 08 2016 04:02
component?
Kumar Nitesh
@knitesh
Feb 08 2016 04:13
@kmulligan replace your code with this

var contacts = [
{
"firstName": "Akira",
"lastName": "Laine",
"number": "0543236543",
"likes": ["Pizza", "Coding", "Brownie Points"]
},
{
"firstName": "Harry",
"lastName": "Potter",
"number": "0994372684",
"likes": ["Hogwarts", "Magic", "Hagrid"]
},
{
"firstName": "Sherlock",
"lastName": "Holmes",
"number": "0487345643",
"likes": ["Intriguing Cases", "Violin"]
},
{
"firstName": "Kristian",
"lastName": "Vos",
"number": "unknown",
"likes": ["Javascript", "Gaming", "Foxes"]
}
];

function lookUp(firstName, prop){
// Only change code below this line

for(var contact of contacts){
if ((contact.firstName = firstName) && (contact.prop = prop)) {

return console.log(contact[prop]);
}
}}

Jawbh
@CaBra503
Feb 08 2016 04:14
@Raincode thank you btw
CamperBot
@camperbot
Feb 08 2016 04:14
cabra503 sends brownie points to @raincode :sparkles: :thumbsup: :sparkles:
:star: 214 | @raincode | http://www.freecodecamp.com/raincode
Chrono741
@Chrono741
Feb 08 2016 04:20
Hi, there, i have a problem with val() function, it doesnt set value of element permanently, it just blinks
i dont know where the problem is, could you please help me guys?
Kevin Mulligan
@kmulligan
Feb 08 2016 04:22
@knitesh That didn't work, says illegal return statement
Kumar Nitesh
@knitesh
Feb 08 2016 04:22
@kmulligan remove console.log from return console.log(contact[prop]);
Kevin Mulligan
@kmulligan
Feb 08 2016 04:22
same thing
OmMinky
@OmMinky
Feb 08 2016 04:23

working on javascript he algorithm to convert from Celsius to Fahrenheit is the temperature in Celsius times 9/5, plus 32.

You are given a variable celsius representing a temperature in Celsius. Create a variable fahrenheit and apply the algorithm to assign it the corresponding temperature in Fahrenheit.

function convert(celsius) {
// Only change code below this line

var farenheit = celsius * (9/5);
farenheit += 32 ;

what am i missing?
Vinícius
@vinicius978
Feb 08 2016 04:23
Can someone help me with the "Target the same element with multiple jQuery Selectors" problem?
Kevin Mulligan
@kmulligan
Feb 08 2016 04:24
@OmMinky I would do it on one line? var farenheit = (celsius*(9/5)) + 32;
adermer
@adermer
Feb 08 2016 04:24
I'm having a problem with "give a background to a div element". no matter how i word it I cannot move on. The background was even gray at one point as it was supposed to be but I can't remember how I did it and even then I couldnt move on
Kevin Mulligan
@kmulligan
Feb 08 2016 04:24
@adermer can you post your code using the ``` markup?
adermer
@adermer
Feb 08 2016 04:24
not sure how to do that
Kevin Mulligan
@kmulligan
Feb 08 2016 04:25

anything you put in between example will show up as code

like this

example
bah anything you put in between three sets of ` (at the beginning and end)
OmMinky
@OmMinky
Feb 08 2016 04:26
@kmulligan thank you, I get "farenheit not defined"
CamperBot
@camperbot
Feb 08 2016 04:26
omminky sends brownie points to @kmulligan :sparkles: :thumbsup: :sparkles:
Anthony Isaacs
@AnthonyIsaacs
Feb 08 2016 04:26
^That doesn’t really help. lol
CamperBot
@camperbot
Feb 08 2016 04:26
:star: 225 | @kmulligan | http://www.freecodecamp.com/kmulligan
Anthony Isaacs
@AnthonyIsaacs
Feb 08 2016 04:26
```This will show up as a code sample, like below```
This message was deleted
Kevin Mulligan
@kmulligan
Feb 08 2016 04:27
@adermer in Gitter look at the bottom right of the chat box for the M and down arrow
Anthony Isaacs
@AnthonyIsaacs
Feb 08 2016 04:27
This will show up as a code sample, like below
Kevin Mulligan
@kmulligan
Feb 08 2016 04:27
@adermer that shows you how markdown works
adermer
@adermer
Feb 08 2016 04:27

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

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

h2 {
font-family: Lobster, Monospace;
}

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

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

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

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

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

<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back" src="https://bit.ly/fcc-relaxing-cat"></a>

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

<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality" checked> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Energetic</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>``` @kmulligan here is the code at the beginning. I currently have nothing typed in. The lesson is to ad a gray background to your div element under the style element.

Anthony Isaacs
@AnthonyIsaacs
Feb 08 2016 04:28
Ha, why didn’t that work?
Kevin Mulligan
@kmulligan
Feb 08 2016 04:28
the 3 ''' have to be on separate lines before and after the code, I think
CamperBot
@camperbot
Feb 08 2016 04:28
:bulb: to format code use backticks! ``` more info
Anthony Isaacs
@AnthonyIsaacs
Feb 08 2016 04:29
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

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

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

.smaller-image {
width: 100px;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p>Click here for <a href="#">cat photos</a>.</p>
<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back" src="https://bit.ly/fcc-relaxing-cat"></a>
<div>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
</div>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality" checked> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Energetic</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
DJ
@qualitymanifest
Feb 08 2016 04:29
selector {
background-color: unforgiveable;
}
@adermer
Anthony Isaacs
@AnthonyIsaacs
Feb 08 2016 04:29
Yeah, put the backticks (```) on a separate line.
DJ
@qualitymanifest
Feb 08 2016 04:30
This message was deleted
Josue Rodriguez
@Rapidisimo
Feb 08 2016 04:30
@vinicius978 What did you need?
Anthony Isaacs
@AnthonyIsaacs
Feb 08 2016 04:30
Ha
@qualitymanifest Yeah, it autocorrects backticks to backpacks for some reason.
DJ
@qualitymanifest
Feb 08 2016 04:32
ah that explains it
Kevin Mulligan
@kmulligan
Feb 08 2016 04:36
anyone else want to take a crack at this? http://www.freecodecamp.com/challenges/profile-lookup
//Setup
var contacts = [
    {
        "firstName": "Akira",
        "lastName": "Laine",
        "number": "0543236543",
        "likes": ["Pizza", "Coding", "Brownie Points"]
    },
    {
        "firstName": "Harry",
        "lastName": "Potter",
        "number": "0994372684",
        "likes": ["Hogwarts", "Magic", "Hagrid"]
    },
    {
        "firstName": "Sherlock",
        "lastName": "Holmes",
        "number": "0487345643",
        "likes": ["Intriguing Cases", "Violin"]
    },
    {
        "firstName": "Kristian",
        "lastName": "Vos",
        "number": "unknown",
        "likes": ["Javascript", "Gaming", "Foxes"]
    }
];


function lookUp(firstName, prop){
// Only change code below this line

   if ((contacts.firstName = firstName) && (contacts.prop = prop)) {
    return contacts.prop;
   }
return contacts.prop returns likes which is from the test... I need it to give me the actual value, not the name of the prop
Charlie
@arturocdb
Feb 08 2016 04:40
cann´t pass exsercise 19, is a bug?
Max Gardner
@maxgardner
Feb 08 2016 04:42
@arturocdb What’s the name of the challenge and what’s your code?
Charlie
@arturocdb
Feb 08 2016 04:43
@maxgardner name: Import a Google Font
thks
Kumar Nitesh
@knitesh
Feb 08 2016 04:43
@kmulligan here you go
function lookUp(firstName, prop){
// Only change code below this line
for(var contact in contacts){
 if(contacts[contact].firstName == firstName){
  if(contacts[contact][prop]!== undefined){
return (contacts[contact][prop]);

  }
  return "No such property";

 }
}
  return "No such contact";
}
Max Gardner
@maxgardner
Feb 08 2016 04:44
@arturocdb Awesome! Can you post your current code so I can see what it looks like?
Vinícius
@vinicius978
Feb 08 2016 04:44
@Rapidisimo Do I declare the addClass() on the script?
Oh Nevermind, I got it
Thanks @Rapidisimo
CamperBot
@camperbot
Feb 08 2016 04:45
vinicius978 sends brownie points to @rapidisimo :sparkles: :thumbsup: :sparkles:
:star: 183 | @rapidisimo | http://www.freecodecamp.com/rapidisimo
Josue Rodriguez
@Rapidisimo
Feb 08 2016 04:45
@vinicius978 ok cool
Kevin Mulligan
@kmulligan
Feb 08 2016 04:50
@knitesh thanks.. that works.. now to study it so I can understand why! :)
CamperBot
@camperbot
Feb 08 2016 04:50
kmulligan sends brownie points to @knitesh :sparkles: :thumbsup: :sparkles:
:star: 33 | @knitesh | http://www.freecodecamp.com/knitesh
Pawan
@pawan92
Feb 08 2016 04:53
does anyone know how to use radix to change base?
OmMinky
@OmMinky
Feb 08 2016 05:03

I tried @kmulligan 's suggestion javascripts suggestion: for function convert(celsius) {
// Only change code below this line

var farenheit = (celsius*(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);

and got "
convert(0) should return a number
convert(-30) should return a value of -22
convert(-10) should return a value of 14
convert(0) should return a value of 32 "
trying to move on, suggestions on what's missing?
got it! it was a spelling mistake on my part- haha
budimanfix
@budimanfix
Feb 08 2016 05:07

Hello guys... wich i miss here ? : function myTest(num) {
// Only change code below this line
if (num < 5) {
return "Tiny";
}
else if (num < 10) {
return "Small";
}
else if (num < 15)
return "Medium";
{
if (num <20) return "Large"; } if (num >= 20)
return "Huge";

return "Change Me";

DJ
@qualitymanifest
Feb 08 2016 05:08
@budimanfix paste the URL to this challenge
Mohsen
@wohsen
Feb 08 2016 05:09

hi what this shit is meaning about

"Create two div elements within your row, both with the class col-xs-6."???

anyone know?

on this code

"<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">

</div>
</div>"

budimanfix
@budimanfix
Feb 08 2016 05:10
Josue Rodriguez
@Rapidisimo
Feb 08 2016 05:11
@wohsen Put two div’s inside the div that has row attached to it and those divs you create should have the class col-xs-6. You’re making columns.
budimanfix
@budimanfix
Feb 08 2016 05:11
@qualitymanifest Where i should put "else" ??
Mohsen
@wohsen
Feb 08 2016 05:12
@Rapidisimo i did it. doesn't accept it

@Rapidisimo <div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<div class="col-xs-6">

</div>
</div>
</div>
</div>

DJ
@qualitymanifest
Feb 08 2016 05:13
function myTest(num) {
// Only change code below this line
if (num < 5) {
return "Tiny";
}
else if (num < 10) {
return "Small";
}
else if (num < 15) 
return "Medium";
{ // why is this here?
if (num <20) return "Large"; } /*you're missing an opening curly brace to this if statement*/ if (num >= 20)
return "Huge";
return "Change Me"; // why is this still here???
@budimanfix
@budimanfix check the comments i made. the formatting for your first if statements is fine but it gets messed up for your last ones and you're missing else before your last two ifs
Josue Rodriguez
@Rapidisimo
Feb 08 2016 05:15
@wohsen Looks like you put one of the col-xs-6 inside the other. They should be side by side.
lawrencebass
@lawrencebass
Feb 08 2016 05:17
@wohsen Yeah you were close, @Rapidisimo suggestion is correct, should look like this
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
     <div class="col-xs-6">
      </div>
      <div class="col-xs-6">
      </div>
</div>
</div>
budimanfix
@budimanfix
Feb 08 2016 05:17
@qualitymanifest Thanks :+1:
CamperBot
@camperbot
Feb 08 2016 05:17
budimanfix sends brownie points to @qualitymanifest :sparkles: :thumbsup: :sparkles:
:star: 929 | @qualitymanifest | http://www.freecodecamp.com/qualitymanifest
DJ
@qualitymanifest
Feb 08 2016 05:18
no problem :+1:
xin
@nightsin88
Feb 08 2016 05:22

Only add one class with each of your three selectors.

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

error??

DJ
@qualitymanifest
Feb 08 2016 05:23

Only add one class with each of your three selectors.

xin
@nightsin88
Feb 08 2016 05:23
I can't understand "Only add one class with each of your three selectors."
DJ
@qualitymanifest
Feb 08 2016 05:23
#target1 has the class .btn and it is a button so it receives the classes you added to those
xin
@nightsin88
Feb 08 2016 05:23
It means ??
DJ
@qualitymanifest
Feb 08 2016 05:24
button gets animated.
.btn gets shake and already has animated since it is a button
#target1 gets btn-primary and already has animated and shake since it is a button with class .btn
xin
@nightsin88
Feb 08 2016 05:26
let me try thx.
John Sprunger
@JohnSprunger
Feb 08 2016 05:28
This message was deleted
This message was deleted
Josue Rodriguez
@Rapidisimo
Feb 08 2016 05:32
@JohnSprunger got it?
John Sprunger
@JohnSprunger
Feb 08 2016 05:33
@Rapidisimo Yea it was weird, the environment was crashing. I had to refresh the page twice to get it working.
IamKien
@IamKien
Feb 08 2016 05:42
Hi, I am at zipline project where I am suppose to build a random quote machine, but where am I suppose to get the quote itself? It does not have a clear instructions.
Brian
@sludge256
Feb 08 2016 05:44
@tyteeye510 You can make your own list of quotes
or pull from an API
Whichever you want.
Utkarsh Bhimte
@Utkarshbhimte
Feb 08 2016 05:53
I want to navigate it to headline
which is i guess json.response.docs[0].healine.main

This is a JSON API,

http://api.nytimes.com/svc/search/v2/articlesearch.json?q=washington%20dc&page=2&sort=newest&api-key=c47e0e49b2b20e581d919c9e7b309f31:9:74310435

I want to navigate it to headline
which is i guess json.response.docs[0].healine.main

I am using my browser console.
and it show json.response.docs[0] is undefined.
budimanfix
@budimanfix
Feb 08 2016 06:03
Hello how to do this challenge guyy..?? freecodecamp.com/challenges/golf-code#?solution
Devashish
@newbie-07
Feb 08 2016 06:03
@tyteeye510 One way is to create an array of quotes(your collection) and use Math.floor Math.random to retrieve at the click of the button...I did it this way...there are some sites too which you can pull quotes from.
budimanfix
@budimanfix
Feb 08 2016 06:04

function golfScore(par, strokes) {
// Only change code below this line
function golfScore(4, 1)
return "Hole-in-one";

// O

Devashish
@newbie-07
Feb 08 2016 06:05
@budimanfix this is my solution if it helps http://bit.ly/1Qmg0DB
budimanfix
@budimanfix
Feb 08 2016 06:09
@newbie-07 Thank you :+1:
CamperBot
@camperbot
Feb 08 2016 06:09
budimanfix sends brownie points to @newbie-07 :sparkles: :thumbsup: :sparkles:
:star: 302 | @newbie-07 | http://www.freecodecamp.com/newbie-07
Devashish
@newbie-07
Feb 08 2016 06:09
@budimanfix you are welcome
Charles Cross
@spiderkeys
Feb 08 2016 06:14
Hi all. It's kind of hard to google, so I'm having trouble figuring out what it means for a <canvas> element to have the attribute: style="...". If anyone could steer me in the right direction :)
Michael Aubrey
@mca62511
Feb 08 2016 06:18
Could you provide some context?
Charles Cross
@spiderkeys
Feb 08 2016 06:21
I'm reading through the html files for some webcomponents and in the template section for one of the webcomponents, there is a canvas element written as such:
  <template>
    <canvas id="thumbsticks" class="hud" style="width: 100%; height:100%"></canvas>
  </template>
oops
wrong one, sorry
er wait what
It somehow automatically changed the ... to width: 100%, etc when i pasted that haha
Oh... it was webstorm automatically collapsing the contents of that attribute. My bad!
Tim Bell
@MindfulBell
Feb 08 2016 06:24
Anyone around to help with a React question?
Michael Aubrey
@mca62511
Feb 08 2016 06:25
Not I.
huy-tran
@huy-tran
Feb 08 2016 07:00
@MindfulBell If it’s advanced than I can’t but I know a little bit !!
Tim Bell
@MindfulBell
Feb 08 2016 07:02
@huy-tran i got it solved, it was in essence a javascript question actually. i forget that React is just javascript with some added stuff going on
huy-tran
@huy-tran
Feb 08 2016 07:04
lovely. I have been learning React for a month but quite confuse for such a beginner like me :worried:
saran kumar
@sarankumarmamidi
Feb 08 2016 07:13
any salesforce trailhead users here ?
Nick
@nkram4159
Feb 08 2016 07:18
test
jax1000
@jax1000
Feb 08 2016 07:24
welcome to my apartment everyone :-P
Michael Aubrey
@mca62511
Feb 08 2016 07:28
O_O kowai
Ankit Panwar
@coderNoob
Feb 08 2016 07:32
This message was deleted
AniGal
@AniGal
Feb 08 2016 08:06
pls help with this code
http://www.freecodecamp.com/challenges/record-collection#?solution=%2F%2F%20Setup%0Avar%20collection%20%3D%20%7B%0A%20%20%20%202548%3A%20%7B%0A%20%20%20%20%20%20album%3A%20%22Slippery%20When%20Wet%22%2C%0A%20%20%20%20%20%20artist%3A%20%22Bon%20Jovi%22%2C%0A%20%20%20%20%20%20tracks%3A%20%5B%20%0A%20%20%20%20%20%20%20%20%22Let%20It%20Rock%22%2C%20%0A%20%20%20%20%20%20%20%20%22You%20Give%20Love%20a%20Bad%20Name%22%20%0A%20%20%20%20%20%20%5D%0A%20%20%20%20%7D%2C%0A%20%20%20%202468%3A%20%7B%0A%20%20%20%20%20%20album%3A%20%221999%22%2C%0A%20%20%20%20%20%20artist%3A%20%22Prince%22%2C%0A%20%20%20%20%20%20tracks%3A%20%5B%20%0A%20%20%20%20%20%20%20%20%221999%22%2C%20%0A%20%20%20%20%20%20%20%20%22Little%20Red%20Corvette%22%20%0A%20%20%20%20%20%20%5D%0A%20%20%20%20%7D%2C%0A%20%20%20%201245%3A%20%7B%0A%20%20%20%20%20%20artist%3A%20%22Robert%20Palmer%22%2C%0A%20%20%20%20%20%20tracks%3A%20%5B%20%5D%0A%20%20%20%20%7D%2C%0A%20%20%20%205439%3A%20%7B%0A%20%20%20%20%20%20album%3A%20%22ABBA%20Gold%22%0A%20%20%20%20%7D%0A%7D%3B%0A%2F%2F%20Keep%20a%20copy%20of%20the%20collection%20for%20tests%0Avar%20collectionCopy%20%3D%20JSON.parse(JSON.stringify(collection))%3B%0A%0A%2F%2F%20Only%20change%20code%20below%20this%20line%0Afunction%20update(id%2C%20prop%2C%20value)%20%7B%0A%0Aif%20(value!%3D%3D%22%22%20%26%26%20prop!%3Dcollection.id.tracks)%7B%0A%20%20prop%3Dvalue%3B%0A%7D%0A%20%20else%0A%20%20%20%20if(value!%3D%3D%22%22%20%26%26%20prop%3D%3Dcollection.id.tracks)%7B%0A%20%20%20%20%20%20collection.id.tracks.push(value)%3B%0A%20%20%20%20%20%20%0A%20%20%20%20%7D%0A%20%20else%0A%20%20if%20(value%3D%3D%3D%22%22)%7B%0A%20%20%20%20delete%20collection.id.prop%3B%0A%20%20%7D%0A%20%20return%20collection%3B%0A%7D%0A%0A%20%0A%2F%2F%20Alter%20values%20below%20to%20test%20your%20code%0Aupdate(5439%2C%20%22artist%22%2C%20%22ABBA%22)%3B%0A%0A
Ankit Panwar
@coderNoob
Feb 08 2016 08:17
Minimax algorithm for Tic-tac-Toe
I'm not able to grasp the concept of depth in this algorithm. Can anyone please explain it more elaborately ?
Dani
@punkbusterdani
Feb 08 2016 08:56
testing. testing. Hello world :D
Yaroslav
@YVeselovskyi
Feb 08 2016 09:18
Hello:) Could someone help me to upload my projects to github?
it's very important
u can check this guide
Marius
@Drivez
Feb 08 2016 09:33
@punkbusterdani Hello, and welcome
Yaroslav
@YVeselovskyi
Feb 08 2016 09:33
@Apekiox Thank you, I will try
CamperBot
@camperbot
Feb 08 2016 09:33
yveselovskyi sends brownie points to @apekiox :sparkles: :thumbsup: :sparkles:
:star: 115 | @apekiox | http://www.freecodecamp.com/apekiox
Medha Bobbili
@medhatrinky
Feb 08 2016 09:46
why javascript and jquery are needed in front end development when when can do it it with basic html and css..?
@prusso
greg
@wearenotgroot
Feb 08 2016 09:48
@medhatrinky scripts in general will make for a more dynamic website
axel8591
@axel8591
Feb 08 2016 09:51
@medhatrinky for the dynamic ^^
@webdevjedi25 so true!
Medha Bobbili
@medhatrinky
Feb 08 2016 09:51
oohh got it
SuhasHosamani
@SuhasHosamani
Feb 08 2016 10:11
Browser and Text zoom should be at 100%..... how to achieve this??? in CSS
Safeeda Sherin
@Safeeda
Feb 08 2016 10:28
Set the browser zoom as 100%.I just finished it.
Mohamed Fahadh
@fahadh14
Feb 08 2016 10:29
hi can someone help with out with my bonfire exercise
function chunk(arr, size) {
  // Break it up.
  var array = [];
  var test =[];
  var result= [];
  for (var i=0;i < arr.length;i++)
    {
       if (i < size) 
       {
          test.push(arr[i]);
       }
      else 
        {
          array.push(arr[i]);
        }
    }

  return result;
}

chunk(["a", "b", "c", "d"], 2);
Devashish
@newbie-07
Feb 08 2016 10:30
@fahadh14 this is my solution if that helps
Mohamed Fahadh
@fahadh14
Feb 08 2016 10:32
nice
thanks! @newbie-07
CamperBot
@camperbot
Feb 08 2016 10:32
fahadh14 sends brownie points to @newbie-07 :sparkles: :thumbsup: :sparkles:
:star: 303 | @newbie-07 | http://www.freecodecamp.com/newbie-07
Devashish
@newbie-07
Feb 08 2016 10:32
@fahadh14 you are welcome
SuhasHosamani
@SuhasHosamani
Feb 08 2016 10:34
@Safeeda me too btw thanks
CamperBot
@camperbot
Feb 08 2016 10:34
suhashosamani sends brownie points to @safeeda :sparkles: :thumbsup: :sparkles:
:star: 20 | @safeeda | http://www.freecodecamp.com/safeeda
Safeeda Sherin
@Safeeda
Feb 08 2016 10:35
@SuhasHosamani No probs.
afr0blue
@afr0blue
Feb 08 2016 11:40
function largestOfFour(arr) {
  for (i = 0; i < arr.length; i++) {
    arr[i].sort(function(a,b) {
      return b - a;
    });
  }
  var allLargest = [];
  for (i = 0; i > arr.length; i++) {
    allLargest.push(arr[i][0]) ;
  }
  return allLargest;
}

largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);
how come my variable allLargest returns an empty array?
Adarsh Lilha
@adarshlilha
Feb 08 2016 11:44
Hello geeks. i am stuck in Using Objects for Lookups (javascript)
Markus Kiili
@Masd925
Feb 08 2016 11:45
@afr0blue Check your second for loop condition.
afr0blue
@afr0blue
Feb 08 2016 11:48
thanks! @Masd925
CamperBot
@camperbot
Feb 08 2016 11:48
afr0blue sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
:star: 943 | @masd925 | http://www.freecodecamp.com/masd925
Markus Kiili
@Masd925
Feb 08 2016 11:50
@afr0blue You can skip the second loop with:
function largestOfFour(arr) {
  for (i = 0; i < arr.length; i++) {
    arr[i]=arr[i].sort(function(a,b) {
      return b - a;
    })[0];
  }
  return arr;
}
Boris
@boris-in-london
Feb 08 2016 12:06
@adarshlilha can you post your code?
Markus Kiili
@Masd925
Feb 08 2016 12:06
wiki format
CamperBot
@camperbot
Feb 08 2016 12:06

: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

Umut Yalçın
@yalcinumut
Feb 08 2016 12:07

@adarshlilha check this // 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();

this is your solution mate
André Ferreira
@andreferreira-me
Feb 08 2016 12:24
Hey guys, how are you? Why anchors links doesn't work on smartphones using codepen.io? <a href="#projects">Projects</a>
Thomas Tzanetoulakos
@tommasgr
Feb 08 2016 13:03
Good morning everyone!!!!
Olga
@Superprofan
Feb 08 2016 13:04
@tommasgr morning! 16 o'clock here
Thomas Tzanetoulakos
@tommasgr
Feb 08 2016 13:04
Guys i have a little prb and i need help.I am here . Give a Background Color to a Div Element. and i need this "Your div element should have a gray background."
Umut Yalçın
@yalcinumut
Feb 08 2016 13:05
<style></style>
Olga
@Superprofan
Feb 08 2016 13:06
<div style="backgroundcolor: grey"> - like this?
Umut Yalçın
@yalcinumut
Feb 08 2016 13:06
div { background-color:gray } in style tags
Thomas Tzanetoulakos
@tommasgr
Feb 08 2016 13:06
I did it .gray-backround {
background-color: gray;
}
<div class="gray-background"> is that wrong?
i am gonna send you my code to check if you can pls
Umut Yalçın
@yalcinumut
Feb 08 2016 13:07
okay
Thomas Tzanetoulakos
@tommasgr
Feb 08 2016 13:07

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

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

h2 {
font-family: Lobster, Monospace;
}

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

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

.smaller-image {
width: 100px;
}

.gray-backround {
background-color: gray;
}

</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" alt="A cute orange cat lying on its back" src="https://bit.ly/fcc-relaxing-cat"></a>

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

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

Umut Yalçın
@yalcinumut
Feb 08 2016 13:09
check your .gray you write backround
its gonna be background
thats the problem i think
:)
Thomas Tzanetoulakos
@tommasgr
Feb 08 2016 13:11
oooooooo
give me one min pls
@Apekiox Thank you!
CamperBot
@camperbot
Feb 08 2016 13:14
tommasgr sends brownie points to @apekiox :sparkles: :thumbsup: :sparkles:
:star: 118 | @apekiox | http://www.freecodecamp.com/apekiox
Umut Yalçın
@yalcinumut
Feb 08 2016 13:15
@tommasgr no problem mate :)
confox
@confox
Feb 08 2016 13:23
hey, im working on Convert Celsius to Fahrenheit
but im stuck and cant work out where to go from the start
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);
Aharon Hyman
@nachamuami
Feb 08 2016 13:26
@confox you need to start by defining fahrenheit
Sagar Wakchaure
@kaka8shagy
Feb 08 2016 13:27
just create a variable farenheit and find its value using the formula
confox
@confox
Feb 08 2016 13:27
i got it now, thanks guys
Sagar Wakchaure
@kaka8shagy
Feb 08 2016 13:27
i used //noprotect in mycode. and now my editor is stuck
Thomas Tzanetoulakos
@tommasgr
Feb 08 2016 13:27
Guys can you help with this? Give your form element the id of cat-photo-form.
Daniel O'Mahony
@OMahonyD
Feb 08 2016 13:30
id="cat-photo-form" @tommasgr
confox
@confox
Feb 08 2016 13:32
ok i haven't go it
Daniel O'Mahony
@OMahonyD
Feb 08 2016 13:33
@tommasgr located within the element tag >> e.g. <p id="cat-photo-form"></p>
Thomas Tzanetoulakos
@tommasgr
Feb 08 2016 13:33
@OMahonyD thank you!
CamperBot
@camperbot
Feb 08 2016 13:33
tommasgr sends brownie points to @omahonyd :sparkles: :thumbsup: :sparkles:
:star: 229 | @omahonyd | http://www.freecodecamp.com/omahonyd
confox
@confox
Feb 08 2016 13:33
i added fahrenheit = (9*5)+32;
Daniel O'Mahony
@OMahonyD
Feb 08 2016 13:33
@tommasgr Was that it?
Aharon Hyman
@nachamuami
Feb 08 2016 13:34
var fahrenheit for a start
confox
@confox
Feb 08 2016 13:34
tthis gave me an output, how do i take the var convert(10)
Aharon Hyman
@nachamuami
Feb 08 2016 13:34
@confox but you also need it to interact with celcius
confox
@confox
Feb 08 2016 13:35
i see
Aharon Hyman
@nachamuami
Feb 08 2016 13:35
so you would get var fahrenheit =celsius*(9/5) + 32
Daniel O'Mahony
@OMahonyD
Feb 08 2016 13:35
@confox var fahrenheit = ((celcius multiplied by 9) divided by 5) divided by 32
Sorry plus 32
Aharon Hyman
@nachamuami
Feb 08 2016 13:37
@confox did it work?
confox
@confox
Feb 08 2016 13:38
it did thanks @nachamuami
CamperBot
@camperbot
Feb 08 2016 13:38
confox sends brownie points to @nachamuami :sparkles: :thumbsup: :sparkles:
:star: 183 | @nachamuami | http://www.freecodecamp.com/nachamuami
confox
@confox
Feb 08 2016 13:38
thanks @OMahonyD as well
CamperBot
@camperbot
Feb 08 2016 13:38
confox sends brownie points to @omahonyd :sparkles: :thumbsup: :sparkles:
:star: 230 | @omahonyd | http://www.freecodecamp.com/omahonyd
Matthew Brady
@bradym80
Feb 08 2016 13:38
Howdy yall, it's good to see that this page is active.
Daniel O'Mahony
@OMahonyD
Feb 08 2016 13:41
@bradym80 Howdy sir!
Diane
@UXDiane
Feb 08 2016 13:47
Top 'o the Morning @bradym80
Having trouble understanding why this code will not pass, although it appears to pass in the console:

function myTest(val) {
var answer = "";
// Only change code below this line
switch(val){
case 1:
case 2:
case 3:
answer = "Low";
break;
case 4:
case 5:
case 6:
answer = "Mid";
break;
case 7:
case 8:
case 9:
answer = "High";

}

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

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

I receive a red X on the "You should have nine case statements" requirement.
running myTest with all variables works. And I have nine case statements.
Ideas?
No error statements in the console, by the way.
Umut Yalçın
@yalcinumut
Feb 08 2016 13:50
can u send code link and what s the challange
Marcos Antônio de Souza Silva
@massilva
Feb 08 2016 13:52
@UXDiane inserir
Aleksander Gębicki
@Takumar
Feb 08 2016 13:52
@UXDiane your code is good, try to refresh your browser.
Diane
@UXDiane
Feb 08 2016 13:52
Multiple Identical Options in Switch Statements Incomplete 
is the challenge
in JavaScript
Hmmm..how do I send a codelink?
Marcos Antônio de Souza Silva
@massilva
Feb 08 2016 13:53
@UXDiane add break after answer = "High";
Diane
@UXDiane
Feb 08 2016 13:53
I'll give it a try. Just a sec.
Same issue, even with the break statement.
after answer = "High";
Aleksander Gębicki
@Takumar
Feb 08 2016 13:54
@massilva after last case, break is not necessary, you can put it, but it won't change anything.
@UXDiane have you tried refreshing your browser?
Marcos Antônio de Souza Silva
@massilva
Feb 08 2016 13:55
@Takumar I know
Diane
@UXDiane
Feb 08 2016 13:55
Thanks for confirming that @Takumar.
CamperBot
@camperbot
Feb 08 2016 13:55
uxdiane sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 2197 | @takumar | http://www.freecodecamp.com/takumar
Diane
@UXDiane
Feb 08 2016 13:55
Refreshed browser. Same issue. : /
Aleksander Gębicki
@Takumar
Feb 08 2016 13:56
@UXDiane I have just run your code without problems, so it doesn't only look good but it also works good.
Diane
@UXDiane
Feb 08 2016 13:56
(good idea, though!)
Hmmm, why would I receive a red X on the "You should have nine case statements" requirement?
I had no problems with the code, either.
Aleksander Gębicki
@Takumar
Feb 08 2016 13:57
@UXDiane refresh (F5 on Windows) or hard refresh (Ctr +F5), when it doesn't work use "Reset" button and paste your code again.
Diane
@UXDiane
Feb 08 2016 13:58
Hard reboot. Same result.
Do you guys think it might be a bug?
The lack of passing, I mean. The red "X" for code that works just fine.
Aleksander Gębicki
@Takumar
Feb 08 2016 13:59
@UXDiane try another web browser if you have any. Firefox, Chrome, Safari?
Diane
@UXDiane
Feb 08 2016 13:59
?
Good idea!
Aleksander Gębicki
@Takumar
Feb 08 2016 13:59
@UXDiane your code is good, you know the idea of switch() statement, so you can just enter new challenge and leave this if it won't pass today.
Charlie
@arturocdb
Feb 08 2016 14:00
I love this community, no matter what...allways i find help......
Diane
@UXDiane
Feb 08 2016 14:01
Woot! ! Woot! New browser passed the "X" : D
Thanks, @Takumar!
CamperBot
@camperbot
Feb 08 2016 14:01
uxdiane sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:warning: uxdiane already gave takumar points
Aleksander Gębicki
@Takumar
Feb 08 2016 14:01
@UXDiane you are welcome :-)
Diane
@UXDiane
Feb 08 2016 14:01
Well, off to work. Have a great day fellow campers!
Aleksander Gębicki
@Takumar
Feb 08 2016 14:03
@arturocdb the greatest thing with this community is that you can be sure that when you are doing something right and it don't work you can get confirmation from others that problem lays in software, hardware or other place not in your code :-)
confox
@confox
Feb 08 2016 14:17
hey, im stuck again this time on Escape Sequences in Strings
var myStr="\\ backslash \t"tab \t"tab \r"carriage-return \n"new-line"; // Change this line
i've tried many combos but i just can't seem to get it right
Bernardo Tapia
@bernart81
Feb 08 2016 14:20
@confox it only means "\ \t \t \r \n"
confox
@confox
Feb 08 2016 14:20
i tried that and it didnt work :s
ah ha i got it
Yaroslav
@YVeselovskyi
Feb 08 2016 14:21
@confox how you did it ?:)
confox
@confox
Feb 08 2016 14:22
i didn't have the spacing right
Bernardo Tapia
@bernart81
Feb 08 2016 14:22
var myStr="\ \t \t \r \n";
confox
@confox
Feb 08 2016 14:24
i has it as var myStr="\\t\t\r\n";
Yaroslav
@YVeselovskyi
Feb 08 2016 14:25
what is the right variant ?)
Bernardo Tapia
@bernart81
Feb 08 2016 14:25
yes sometimes it is a simple space
Aleksander Gębicki
@Takumar
Feb 08 2016 14:25
@confox but spaces between codes
And code for backlash is two backslashes: \\, maybe it was removed in Gitter, but better make sure.
confox
@confox
Feb 08 2016 14:27
its mad how a space can cause such an issue took me 10mins to solve it lol
Brock
@brockwei
Feb 08 2016 14:29
how do people keep their streak when they are working on the development projects?
Aleksander Gębicki
@Takumar
Feb 08 2016 14:30
@bernart81 better use backticks to show your code some characters may be missing in plain text.
`your code` is your code
Bernardo Tapia
@bernart81
Feb 08 2016 14:31
Ok, Thank you @Takumar
CamperBot
@camperbot
Feb 08 2016 14:31
bernart81 sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 2202 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Feb 08 2016 14:34
@brockwei you can leave some simple challenges and do them everyday one per day :-)
@brockwei for example, now Video challenges was added two or three days ago, you can use them in such purpose :-)
@brockwei or you can spend some time helping the beginners to solve their problems and get points from helping them.
Pankaj mishra
@pankajmishraji
Feb 08 2016 14:37
Hi everyone
Brock
@brockwei
Feb 08 2016 14:38
@Takumar thanks
CamperBot
@camperbot
Feb 08 2016 14:38
brockwei sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 2204 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Feb 08 2016 14:38
@brockwei oh, you see now, I have my streak ;-)
Pankaj mishra
@pankajmishraji
Feb 08 2016 14:38
can I see other people's map i.e how much progress let say person X has made ?
Aleksander Gębicki
@Takumar
Feb 08 2016 14:38
@pankajmishraji about @pankajmishraji
about @pankajmishraji
CamperBot
@camperbot
Feb 08 2016 14:38
:star: 38 | @pankajmishraji | http://www.freecodecamp.com/pankajmishraji
Aleksander Gębicki
@Takumar
Feb 08 2016 14:39
@pankajmishraji you can check this link, there is map of progress there.
Pankaj mishra
@pankajmishraji
Feb 08 2016 14:39
about Takumar
CamperBot
@camperbot
Feb 08 2016 14:39
you need to ask about @someone!
Pankaj mishra
@pankajmishraji
Feb 08 2016 14:39
about @Takumar
Memphis
@Memphis335
Feb 08 2016 14:39
Quick Q? I have a issue on one of the challenges....
Subtract One Number from Another with JavaScript
Aleksander Gębicki
@Takumar
Feb 08 2016 14:39
@pankajmishraji it seems I am hidden ;-)
CamperBot
@camperbot
Feb 08 2016 14:39
:star: 2205 | @takumar | http://www.freecodecamp.com/takumar
Memphis
@Memphis335
Feb 08 2016 14:39
It is not accepting the answer
Pankaj mishra
@pankajmishraji
Feb 08 2016 14:39
Damn 2205 !!!!
Wow sir /\ Massive respect
Memphis
@Memphis335
Feb 08 2016 14:40
It says "Only change the first line" and that is what i did
Aleksander Gębicki
@Takumar
Feb 08 2016 14:40
@Memphis335 and what is your answer? Sometimes you need to refresh your browser if your answer is not accepted.
Umut Yalçın
@yalcinumut
Feb 08 2016 14:41
@Memphis335 change 0 with 33
Memphis
@Memphis335
Feb 08 2016 14:41
"Only change the first line"
Aleksander Gębicki
@Takumar
Feb 08 2016 14:41
@Memphis335 but show your code which is not working.
confox
@confox
Feb 08 2016 14:41
// Example
var firstNameLength = 0;
var firstName = "Ada";

firstNameLength = firstName.length;

// Setup
var lastNameLength = 8;
var lastName = "Lovelace";

// Only change code below this line.

lastNameLength = lastName.length;
Memphis
@Memphis335
Feb 08 2016 14:41
"difference=12"
confox
@confox
Feb 08 2016 14:41
what have i missed here?
Aleksander Gębicki
@Takumar
Feb 08 2016 14:42
@Memphis335 you have to write entire subtraction, which results in putting 12 to difference variable
Memphis
@Memphis335
Feb 08 2016 14:42

\var difference = 45 - 33;

// Only change code above this line.

(function(z){return 'difference='+z;})(difference);

Umut Yalçın
@yalcinumut
Feb 08 2016 14:43
dont use function just var difference =45-33;
Aleksander Gębicki
@Takumar
Feb 08 2016 14:43
@Memphis335 and this line: var difference = 45 - 33; is good code, I don't know why you have this test at the bottom, when I reset code, there is no such thing in my browser.
Umut Yalçın
@yalcinumut
Feb 08 2016 14:43
if i check correct challange thats the answer
Aleksander Gębicki
@Takumar
Feb 08 2016 14:43
@confox don't put answer (length of string) in this line: var lastNameLength = 8; just declare this variable.
Memphis
@Memphis335
Feb 08 2016 14:44
Thank You @Takumar !!
CamperBot
@camperbot
Feb 08 2016 14:44
memphis335 sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
Memphis
@Memphis335
Feb 08 2016 14:44
I removed the bottom line
CamperBot
@camperbot
Feb 08 2016 14:44
:star: 2206 | @takumar | http://www.freecodecamp.com/takumar
confox
@confox
Feb 08 2016 14:44
thanks @Takumar
CamperBot
@camperbot
Feb 08 2016 14:44
confox sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 2207 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Feb 08 2016 14:44
@Memphis335 so remember about "Reset" button in FCC, sometimes challenges are changed and you won't see newest challenge before you reset your exercise.
@confox you are welcome, FCC treated this (putting 8 to variable) as cheating :-)
budimanfix
@budimanfix
Feb 08 2016 14:45
@Takumar hello, what i miss here ? i stuck here : .freecodecamp.com/challenges/returning-boolean-values-from-functions
@Takumar unction isLess(a, b) {
// Fix this code
function isEqual (15, 10) {
return 15 === 10;
return true;
return false;
}
Aleksander Gębicki
@Takumar
Feb 08 2016 14:46
@budimanfix you have to compare parameters not numbers. Your parameters are a and b and you should check if a <b
Don't check if they are equal.
confox
@confox
Feb 08 2016 14:47
@Takumar ah i see
Aleksander Gębicki
@Takumar
Feb 08 2016 14:48
@budimanfix isEqual() function was an example, you have to construct correct isLess(a, b) function.
budimanfix
@budimanfix
Feb 08 2016 14:50
@Takumar function isLess (a,b) {
return false;
} {
return true;
}
}
Aleksander Gębicki
@Takumar
Feb 08 2016 14:51

@budimanfix

return true;
return false;

are not needed, because you have to compare values.

@budimanfix return a === b is returning true when values are equal or false when they are different.
You need only one return: return a < b; this is evaluated and your function will return boolean value (true or false) depending on if this statement a < b is true or false.

@budimanfix this function:

function Check () {
  return 1 < 2;
}

will always return true, because 1 is always less than 2.

function Check () {
  return 11 < 2;
}

and the second function will always return false, right?

budimanfix
@budimanfix
Feb 08 2016 15:01
@Takumar Thank you :+1:
CamperBot
@camperbot
Feb 08 2016 15:01
budimanfix sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 2208 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Feb 08 2016 15:01
@budimanfix you are welcome :-)
Mohamed Fahadh
@fahadh14
Feb 08 2016 15:07
bonfire
CamperBot
@camperbot
Feb 08 2016 15:07
we're talking about bonfire :fire: Waypoint: Pair Program on Bonfires
Mohamed Fahadh
@fahadh14
Feb 08 2016 15:07
whats the keyword for bonfire hint
Chris Anthony
@CTAnthny
Feb 08 2016 15:15
Hello, I'm a bit new to this chat, but I have a problem with one of the lessons - could someone point me in the right direction to go?
Devashish
@newbie-07
Feb 08 2016 15:15
@CTAnthny please mention the problem and the challenge name
Daniel O'Mahony
@OMahonyD
Feb 08 2016 15:16
@CTAnthny Let us know which one and we'll help buddy
Chris Anthony
@CTAnthny
Feb 08 2016 15:16
oh nm, I just got it! sorry, I just had a new idea as I was waiting
Devashish
@newbie-07
Feb 08 2016 15:16
@CTAnthny Awesome
Daniel O'Mahony
@OMahonyD
Feb 08 2016 15:16
@CTAnthny Yay!!! Keep it up
Chris Anthony
@CTAnthny
Feb 08 2016 15:17
is this the right channel to ask for help though?
thanks!
Devashish
@newbie-07
Feb 08 2016 15:17
@CTAnthny Yup
Chris Anthony
@CTAnthny
Feb 08 2016 15:17
oh ok, cool
Dragos
@dragosdydy
Feb 08 2016 15:30
This message was deleted
Accessing Objects Properties with Variables
This message was deleted
batilc1
@batilc1
Feb 08 2016 15:35
Hi, this code-piece fails with No Access-Control-Allow-Origin header. withCredentials was supposed to enable the CORS protocol. How can I make this work? The forismatic API doesnt seem to require any authentication here. Here is the code
   var xhr = new XMLHttpRequest();
    var forismaticUrl = 'http://api.forismatic.com/api/1.0/';
    var params = 'method=getQuote&format=json&lang=en';

    xhr.withCredentials = true;
    xhr.responseType = 'json';
    xhr.open('POST', forismaticUrl, true);

    xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

    xhr.onload = function(response) {
        console.log('helloooo', response);
        console.log(this);
        console.log(this.responseText);
    };

    xhr.send(params);
ksequeira7
@ksequeira7
Feb 08 2016 15:36
hi i am actually stuck on one step could someone help me with it please !
Make sure you have nested all HTML elements in .container-fluid.
srinjay
@srinjay
Feb 08 2016 15:37
pls post your code
ksequeira7
@ksequeira7
Feb 08 2016 15:38
Screen Shot 2016-02-08 at 10.37.13 AM.png
Devashish
@newbie-07
Feb 08 2016 15:40
@ksequeira7 put <div class = container-fluid> where style tag closes and end the div at the bottom of the code
srinjay
@srinjay
Feb 08 2016 15:40
add a body tag with the class "container-fluid" and make sure everything is inside the body tag.
Michael Schofield
@MScoff
Feb 08 2016 15:41
Hi all, I'm not sure if there is an issue in the code for this one.

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

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

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

The error I have is that the elements with the p tag should be font size 16px
Devashish
@newbie-07
Feb 08 2016 15:42
@MScoff just delete class red-text from both the <p> tags
Michael Schofield
@MScoff
Feb 08 2016 15:43
Seriously :/ the previous challenge wanted red text, I assumed it would be the same for this one
Devashish
@newbie-07
Feb 08 2016 15:45
@MScoff actually it is instructed that the classes need to be deleted which I too didn't get after first read
Nicholas
@DaRealElmo
Feb 08 2016 15:46
@newbie-07 I have one more question
ksequeira7
@ksequeira7
Feb 08 2016 15:46
@newbie-07 @srinjay thank you :)
CamperBot
@camperbot
Feb 08 2016 15:46
ksequeira7 sends brownie points to @newbie-07 and @srinjay :sparkles: :thumbsup: :sparkles:
:star: 305 | @newbie-07 | http://www.freecodecamp.com/newbie-07
:star: 208 | @srinjay | http://www.freecodecamp.com/srinjay
Robert Uivarosi
@URobert
Feb 08 2016 15:47
@MScoff link me your exercise from FCC to take a look
Devashish
@newbie-07
Feb 08 2016 15:47
@ksequeira7 You are welcome
Michael Schofield
@MScoff
Feb 08 2016 15:50
@newbie-07 Thanks, it's working now
CamperBot
@camperbot
Feb 08 2016 15:50
mscoff sends brownie points to @newbie-07 :sparkles: :thumbsup: :sparkles:
:star: 306 | @newbie-07 | http://www.freecodecamp.com/newbie-07
Devashish
@newbie-07
Feb 08 2016 15:51
@MScoff You are welcome
Haoxuan Li
@angel1a
Feb 08 2016 15:54
Excuse me. My Run tests button doesn't work. It is normal in the previous challenges until "Change the Color of Text". Can anyone help me?
RevealingHail6
@RevealingHail6
Feb 08 2016 15:54
Hi guys
Devashish
@newbie-07
Feb 08 2016 16:00
@angel1a It may be the case that the solution is incomplete
@RevealingHail6 Hi
Aleksander Gębicki
@Takumar
Feb 08 2016 16:01
@angel1a show your code, we cannot help you without that.
Devashish
@newbie-07
Feb 08 2016 16:02
@Takumar Hi sir
@Takumar I need your opinion
Aleksander Gębicki
@Takumar
Feb 08 2016 16:03
@newbie-07 hi.
FrostRunner
@FrostRunner
Feb 08 2016 16:03
This message was deleted
Haoxuan Li
@angel1a
Feb 08 2016 16:04
@newbie-07 @Takumar Thanks! I know where the problem is.
CamperBot
@camperbot
Feb 08 2016 16:04
angel1a sends brownie points to @newbie-07 and @takumar :sparkles: :thumbsup: :sparkles:
:star: 2215 | @takumar | http://www.freecodecamp.com/takumar
:star: 307 | @newbie-07 | http://www.freecodecamp.com/newbie-07
Aleksander Gębicki
@Takumar
Feb 08 2016 16:05
@newbie-07 you have to describe your problem before I can tell you if I can help :-)
@angel1a well done! You did it yourself :thumbsup:
Devashish
@newbie-07
Feb 08 2016 16:05
@Takumar In the bonfires I mean now scripting challenges I try on my own. But I never get to the solution. Then I end up checking wiki challenge guide and the answer is revealed. Do you think this is the right practice. Do you think I will be able to be able to learn programming properly if I carry on with this practice.
@angel1a awesome
Charlie
@arturocdb
Feb 08 2016 16:08

plase help, is not working-...smaller-image {
width: 100px;
}

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

</style>

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

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

Aleksander Gębicki
@Takumar
Feb 08 2016 16:09
@newbie-07 the best would be if you could find solution yourself given some tips from people here or from instruction, or from wiki first tips without looking at entire solution.
Of course it is better to do exercise even after seeing solution than not do it at all :-)
I try to do all bonfires (challenges) myself but that is the reason I did so small :-) I could recommend you only, that you should return (after a week or more) to the challenge you did with big help, or by checking solution, and do it again yourself, that's the only way to remember and really know how to solve the problem.
@arturocdb you can put more than one class at a time by typing: <img class="class1 class2 class3"> just separate them with spaces. Add both classes: "thick-green-border" and "smaller-image" that way.
Charlie
@arturocdb
Feb 08 2016 16:11
thank you.;)
batilc1
@batilc1
Feb 08 2016 16:11
Hi, why this isnt working? I keep getting No 'Access-Control-Allow-Origin' header is present on the requested resource.
var xhr = new XMLHttpRequest();
    var forismaticUrl = 'http://api.forismatic.com/api/1.0/';
    var params = 'method=getQuote&format=json&lang=en';

    xhr.withCredentials = true;
    xhr.responseType = 'json';
    xhr.open('POST', forismaticUrl, true);

    //xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest')
    xhr.setRequestHeader('Content-Type', 'text/plain');//'application/x-www-form-urlencoded');

    xhr.onload = function(response) {
        console.log('helloooo', response);
        console.log(this);
        console.log(this.responseText);
    };

    xhr.send(params);
Devashish
@newbie-07
Feb 08 2016 16:12
@Takumar I check solution and then do it on my own. @Takumar Still I think I am copying. There are few things which confuse me still. I hope I learn well before the certification. Thanks. I like your contribution to FCC community. You are a big help for fellow campers like me. Thanks for being you. :)
CamperBot
@camperbot
Feb 08 2016 16:12
newbie-07 sends brownie points to @takumar and @takumar :sparkles: :thumbsup: :sparkles:
:star: 2216 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Feb 08 2016 16:12
@newbie-07 many people now have one rule: when you don't know solution you can google it. I am not that person, I like to know how things works, but maybe that is the reason I am not a senior developer in a big company.
CamperBot
@camperbot
Feb 08 2016 16:12
:star: 2216 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Feb 08 2016 16:12
@newbie-07 thank you for your warm words :-)
CamperBot
@camperbot
Feb 08 2016 16:12
takumar sends brownie points to @newbie-07 :sparkles: :thumbsup: :sparkles:
:star: 308 | @newbie-07 | http://www.freecodecamp.com/newbie-07
Devashish
@newbie-07
Feb 08 2016 16:13
@Takumar :+1:
Aleksander Gębicki
@Takumar
Feb 08 2016 16:15
@newbie-07 you cannot invent everything, we live too short for that. We follow some patterns, we learn by repeating. I think that you can still feel good, when you look at solutions of others.
I have read many articles of great programmers who told that to be great coder you should write a lot and read others code. Sometimes you will write a great code, sometimes you will find how others did it.
It happened to me, that I helped others to solve some problem and than I have rewritten my solution, to try the idea which someone else tried to realize, or I wrote the solution with him/her.
@newbie-07 when you look at others code you sometimes wonder will you ever write code like they. Some solve problems in one line, some tries to use many variables, and solve only one small part in each line commenting it really good.
Just do it if you like it and have chance to work in that area.
Devashish
@newbie-07
Feb 08 2016 16:19
@Takumar Sure...so true.
@Takumar Awesome...thanks sir. See you around :)
CamperBot
@camperbot
Feb 08 2016 16:20
newbie-07 sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:warning: newbie-07 already gave takumar points
Aleksander Gębicki
@Takumar
Feb 08 2016 16:20
@newbie-07 see you later :-)
Devashish
@newbie-07
Feb 08 2016 16:21
@Takumar :+1:
Aleksander Gębicki
@Takumar
Feb 08 2016 16:22
@newbie-07 one thing I learned here is that I write more in English, I still make much language mistakes, but I write a little faster in that language, that is also good :-)
So you do more, you are better :-)
Devashish
@newbie-07
Feb 08 2016 16:25
@Takumar It definitely is
YourCrush
@YourCrush
Feb 08 2016 16:28
I'm having trouble with the "Style Text Inputs as Form Controls" lesson, where it is asking me to give the text input in my form the class form-control. I've found references online saying that it's bugged, but is there any way to actually complete this section?
Devashish
@newbie-07
Feb 08 2016 16:29
@YourCrush There will be an input element in the code <input .....>
@YourCrush just put class="form-control" in there
cannelflow
@cannelflow
Feb 08 2016 16:30
@YourCrush had you tried ?
Aleksander Gębicki
@Takumar
Feb 08 2016 16:31
@YourCrush who said it is bugged?
YourCrush
@YourCrush
Feb 08 2016 16:31
Got it to work. Give me a second and I'll link where people were saying it's bugged
FreeCodeCamp/freecodecamp#1383
Aleksander Gębicki
@Takumar
Feb 08 2016 16:32
@YourCrush there are 221,312campers registere here, FCC is quite well tested ;-)
YourCrush
@YourCrush
Feb 08 2016 16:33
I figured, which is why I was puzzled why it wasn't working. I tried adding the form-control to the actual form, but it didn't like it - ended up putting it with the URL input and it worked. Complete "duh" moment
confox
@confox
Feb 08 2016 16:33
@Takumar i have started challenge Word Blanks but i haven't a clue how to start the code, think you could give me some advice?
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  var result = "";
  // Your code below this line


  // Your code above this line
  return result;
}

// Change the words here to test your function
wordBlanks("dog", "big", "ran", "quickly");
Aleksander Gębicki
@Takumar
Feb 08 2016 16:34
@confox it is based on a game I have not played, but you should create a correct sentence using given parameters.
so assign a concatenated string to result variable and everything will work like a charm :-)
confox
@confox
Feb 08 2016 16:35
i haven't played the game either hence the not knowing where to start
Aleksander Gębicki
@Takumar
Feb 08 2016 16:36
@confox you have four parameters: myNoun, myAdjective, myVerb, myAdverb
You should glue them in random order to create a sentence, you can add any yours words you like to it.
@confox I will begin for you: result = "I like " + ...
confox
@confox
Feb 08 2016 16:37
thanks buddy i shall take it and make a good game
Aleksander Gębicki
@Takumar
Feb 08 2016 16:39
@YourCrush quote from the issue: Seems that QuincyLarson fixed this on 20 June,
Issue is closed now, so it should be solved.
ann
@banannie22
Feb 08 2016 17:05
Hi all, my main page on FCC has a dark green bar going across the top that cuts off items lurking behind it. I've taken a screenshot but not sure how to show it here
Aleksander Gębicki
@Takumar
Feb 08 2016 17:19
@banannie22 if you have a image file, just drag this file to the Gitter window.
Allison Anderson
@Allison80
Feb 08 2016 17:30
how do i label image source with the class smaller-image?
<img src="https://bit.ly/fcc-relaxing-cat">
Aleksander Gębicki
@Takumar
Feb 08 2016 17:36
@Allison80 add class="smaller-image" to your img tag.
<img class="smaller-image" ...
Allison Anderson
@Allison80
Feb 08 2016 17:38
<img class = "smaller-image" src="https://bit.ly/fcc-relaxing-cat">
i did this and it’s not allowing it
valkukatov
@valkukatov
Feb 08 2016 17:40
Could someone explain to me how to access the items within each array in this exercise: Accessing Nested Arrays in JSON? I've tried var secondTree = myPlants.trees[1];
I've tried other ones as well, but I can't figure it out.
This is the full exercise code:
// Setup
var myPlants = [
  { 
    type: "flowers",
    list: [
      "rose",
      "tulip",
      "dandelion"
    ]
  },
  {
    type: "trees",
    list: [
      "fir",
      "pine",
      "birch"
    ]
  }  
];

// Only change code below this line

var secondTree = myPlants.trees[1]; // Change this line
Aleksander Gębicki
@Takumar
Feb 08 2016 17:44
@valkukatov you have array of two objects, you first want to get access to second element of your array.
@valkukatov also there is no such thing as trees property anywhere in your object!
IrishAlex
@IrishAlex
Feb 08 2016 17:44
Hey guys this might sound like a strange question I dunno but I'm getting this feeling that I'm going through the basics here (I'm on challenge 44,fairly easy stuff right) but I think I'm going through the challenges at a pace where I don't FULLY understand all the concepts behind them. I was going through codecademy basics (HTML,CSS) a month or so ago but heard FCC was better so I switched, but because Codecademy was using HTML&CSS and not the updated versions,it seemed like I was going through their challenges at a slower pace, submersed more into these markup languages, whereas here at FCC it just seems like the challenges jump from one concept to the other, is this normal? is this just to get the feet wet for coding in general and the small stuff is not as important so that's why they don't sweat it? Eg on codecademy the challenge would be CSS styling..."let's add a border-radius,lets add margin/padding as the next" etc....the topic is the same every single challenge,whereas here at FCC (It's great don't worry), the topics seem to just jump from one to the other. I wan't to be proficient enough to have enough skills by the end of the year to get into a coding bootcamp and land a developer job, I don't want to half ass this lol. Long question I know
valkukatov
@valkukatov
Feb 08 2016 17:46
@Takumar so then, do I just go to myPlants.list[1] ?
Aleksander Gębicki
@Takumar
Feb 08 2016 17:46
@valkukatov myPlants[1] and more, because first you select element of your array!
Then you will use list property which is also an array!
Justin Stanger
@JStanger13
Feb 08 2016 17:47
how do you assign a class to a div?
srinjay
@srinjay
Feb 08 2016 17:48
@IrishAlex i was in the exact situation last year,
soulsistashakti
@soulsistashakti
Feb 08 2016 17:48
Hey @IrishAlex I'm new around here but I've seen this topic come up a lot this week. From what I understand is don't worry about it, go through the course, find some good supplements and it will all come together. You are thinking about the end of the year when you are still tudging through the basics. My motto is "one day at a time. " :)
*trudging
srinjay
@srinjay
Feb 08 2016 17:49
dont worry,complete every challenge and work on a project you will see how much you learnt.
IrishAlex
@IrishAlex
Feb 08 2016 17:50
@srinjay @soulsistashakti cheers folks. I have to remind myself this will be my craft in progress. journey not the destination
soulsistashakti
@soulsistashakti
Feb 08 2016 17:50
Can somebody help me with this just so I cn move forward please. I've been trying to figure this out for 2 hours lol. What is wrong with this code? <input type="text" class="form-control" placeholder="cat photo URL" required>
<button btn="btn btn-primary" type="submit" <i class="fa fa-paper-plane"</i>Submit</button>
:)
srinjay
@srinjay
Feb 08 2016 17:51
class="btn " not btn="btn"
clausgp91
@clausgp91
Feb 08 2016 17:51
Hi everyone! Quick question, I'd appreciate your help. I'm creating a CSS style element making the element blue. FreeCodeCamp won't read that I made it blue, am I writing the code wrong? I wrote <style> h2 {color: blue;} </style>
srinjay
@srinjay
Feb 08 2016 17:51
i think that should work
valkukatov
@valkukatov
Feb 08 2016 17:51
@Takumar Okay, I figured it out. Thanks for the hints :D
CamperBot
@camperbot
Feb 08 2016 17:51
valkukatov sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 2224 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Feb 08 2016 17:51
@valkukatov you are welcome :-)
srinjay
@srinjay
Feb 08 2016 17:52
@clausgp91 can you send a screenshot of the entire code?
@soulsistashakti class="btn " not btn="btn"
soulsistashakti
@soulsistashakti
Feb 08 2016 17:53
thank you!
Alexander Køpke
@alexanderkopke
Feb 08 2016 17:54
@IrishAlex The initial stages are intros to get a feeling for it and do some coding. When you hit the bonfires and later on the ziplines you won't think it's too easy. The entire course is 2000+ hours. When you've done 200 reevaluate if it is for you.
igorfilipe
@igorfilipe
Feb 08 2016 18:02
Hello People I am having trouble at the challenge "Accessing Nested Arrays in JSON
" I don't know how to reach the asked value, could somebody help me? thanks in advance
valkukatov
@valkukatov
Feb 08 2016 18:32
@igorfilipe scroll up just a little bit, I had the same question, you'll see some helpful tips by @Takumar
Pankaj mishra
@pankajmishraji
Feb 08 2016 18:46
wiki div
CamperBot
@camperbot
Feb 08 2016 18:46

:point_right: waypoint assignment with divided by equals [wiki]

Assignment with Divided by Equals

The /= operator divides a variable by another number.

myVar = myVar / 5;

Will divide myVar by 5. This can be rewritten as:

myVar /= 5;

:pencil: read more about waypoint assignment with divided by equals on the FCC Wiki

Pankaj mishra
@pankajmishraji
Feb 08 2016 18:46
wiki <div>
CamperBot
@camperbot
Feb 08 2016 18:46

:point_right: waypoint assignment with divided by equals [wiki]

Assignment with Divided by Equals

The /= operator divides a variable by another number.

myVar = myVar / 5;

Will divide myVar by 5. This can be rewritten as:

myVar /= 5;

:pencil: read more about waypoint assignment with divided by equals on the FCC Wiki

DinnerFingers
@DinnerFingers
Feb 08 2016 19:15
Good evening all :sparkles:
Is there a specific browser I need to use for the catphotoapp challenges? I can see my code is perfect and the zoom is 100% but its not giving me the last tick
oops looks like free code camp are really popular lately!
Aleksander Gębicki
@Takumar
Feb 08 2016 19:22
@DinnerFingers share your code and title of challenge with us, so we can check if it is 100% correct.
cannelflow
@cannelflow
Feb 08 2016 19:28
@DinnerFingers can you show your code perhaps you want to read this https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/Using-browsec-for-securing-your-connection-to-fcc
Allison Anderson
@Allison80
Feb 08 2016 19:28
is the site going extremely slow for anyone else?
it’s taking minutes between each challenge
DinnerFingers
@DinnerFingers
Feb 08 2016 19:29

The challenge is called Change the Font Size of an Element, and it show up fine in the viewer mabob

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

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

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

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

Brian
@sludge256
Feb 08 2016 19:29
@DinnerFingers don't add a class to your second p element
as stated on the last line of the instructions
DinnerFingers
@DinnerFingers
Feb 08 2016 19:29
sorry for the delay I switched browser, incidently edge was not the best choice of browser either :l
I need to read things properly
Brian
@sludge256
Feb 08 2016 19:30
No problem :+1:
DinnerFingers
@DinnerFingers
Feb 08 2016 19:30
I didn't even see it that way, thanks @s
CamperBot
@camperbot
Feb 08 2016 19:30
dinnerfingers sends brownie points to @s :sparkles: :thumbsup: :sparkles:
cannelflow
@cannelflow
Feb 08 2016 19:30
@DinnerFingers you don't need class red-text for p tag
CamperBot
@camperbot
Feb 08 2016 19:30
:warning: could not find receiver for s
Brian
@sludge256
Feb 08 2016 19:30
Yep, we're updating the text to hopefully prevent confusion
DinnerFingers
@DinnerFingers
Feb 08 2016 19:31
gah thanks @sludge256
CamperBot
@camperbot
Feb 08 2016 19:31
dinnerfingers sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 1356 | @sludge256 | http://www.freecodecamp.com/sludge256
DinnerFingers
@DinnerFingers
Feb 08 2016 19:32
I love this place, maybe one day I can do the helping :smile:
Brian
@sludge256
Feb 08 2016 19:32
That would be ideal :+1:
cannelflow
@cannelflow
Feb 08 2016 19:32
@DinnerFingers :+1:
Brian
@sludge256
Feb 08 2016 19:32
Sometimes there's too much of an imbalance between help seekers and helpers
DinnerFingers
@DinnerFingers
Feb 08 2016 19:32
It's pretty busy tonight huh? generally I mean
Brian
@sludge256
Feb 08 2016 19:33
Seems ok right now.
DinnerFingers
@DinnerFingers
Feb 08 2016 19:34
I think I got confused because I didn't read it properly rather than bad wording though. as soon as it was pointed out it seemed so obvious
Brian
@sludge256
Feb 08 2016 19:35
Well the word "extra" seems a bit ambiguous.
as some people might think red-text is still required
The original intention of not allowing people to add a class to the new p element
was to prevent users from adding the font-size rule to the red-text class and applying the class to the new element
As the intention is to add the rule to the p selector.
DinnerFingers
@DinnerFingers
Feb 08 2016 19:42
would it be useful for people to submit possible replacements for any parts they find confusing or would that make things more difficult to organise?
gts00k
@gts00k
Feb 08 2016 19:44
any help with the ROT13 ?
DinnerFingers
@DinnerFingers
Feb 08 2016 19:49
@gts00k what's that?
Eran Finkle
@finklez
Feb 08 2016 19:49
@gts00k post your code
idietmoran
@idietmoran
Feb 08 2016 19:49
@DinnerFingers it's one of the algorithm problems
gts00k
@gts00k
Feb 08 2016 19:50
@finklez
function rot13(str) {   
  var a = []; 

  for(var i = 0; i < str.length; i++){
    a.push(str.charCodeAt(i)+13);
}
  var k = a.toString();

   for (var j = 0; j < k.length; i++){
     if (k.charCodeAt(j) > 90){
       a.push(k.charCodeAt(j)-26);
     }
   }
return a;
}
Eran Finkle
@finklez
Feb 08 2016 19:50
@DinnerFingers you can go on github and suggest whatever you feel is right
Pankaj mishra
@pankajmishraji
Feb 08 2016 19:50
please post problem link also @gts00k
DinnerFingers
@DinnerFingers
Feb 08 2016 19:51
Oooh I have a fair way to go before I get there, I can't even manage adding a kitty image with css
Eran Finkle
@finklez
Feb 08 2016 19:52
@gts00k well first you can just use one loop, just check if it's greater than a charCode +13, then decide if to add or deduct 13
second you never translate the codes back to chars
Charley B
@charleyblue
Feb 08 2016 19:55
help title case a sentence
CamperBot
@camperbot
Feb 08 2016 19:55

:point_right: bonfire title case a sentence [wiki]

Explanation:

We have to return a sentence with camel case. This means that the first letter will always be in uppercase and the rest lowercase.

:pencil: read more about bonfire title case a sentence on the FCC Wiki

gts00k
@gts00k
Feb 08 2016 19:55
@finklez saw it with code
Charley B
@charleyblue
Feb 08 2016 19:56
How come the bonfire help now points to the wiki home page? Is there no longer hints on the topics?
Eran Finkle
@finklez
Feb 08 2016 19:58
@gts00k what is the name of this challenge i forgot?
gts00k
@gts00k
Feb 08 2016 19:58
This message was deleted
@finklez Caesars Cipher
aaronK
@aaronk73
Feb 08 2016 20:03
hello
DinnerFingers
@DinnerFingers
Feb 08 2016 20:03
hello!
Brian
@sludge256
Feb 08 2016 20:03
@charleyblue the wiki links are being updated
since they're no longer called bonfires
DinnerFingers
@DinnerFingers
Feb 08 2016 20:03
I got stumped again :confused:
Brian
@sludge256
Feb 08 2016 20:03
help algorithm title case
CamperBot
@camperbot
Feb 08 2016 20:03
no wiki entry for: algorithm title case
aaronK
@aaronk73
Feb 08 2016 20:04
will somone help me with USE conditional logic with the if statement
Brian
@sludge256
Feb 08 2016 20:04
bf title case
CamperBot
@camperbot
Feb 08 2016 20:04

:fire:Bonfire: Title Case a Sentence :link:

function titleCase(str) {
  return str;
}

titleCase("I'm a little tea pot");

Return the provided string with the first letter of each word capitalized.

more info:  bf details | bf links | hint

aaronK
@aaronk73
Feb 08 2016 20:04
@DinnerFingers hello
aaronK
@aaronk73
Feb 08 2016 20:05
Use Conditional Logic with If Statements
Eran Finkle
@finklez
Feb 08 2016 20:05
@gts00k ok, so there are few thing, you must not transform non alphabetic chars, second you return an array, and you should return a string
aaronK
@aaronk73
Feb 08 2016 20:05
// Setup
function myFunction(wasThatTrue) {

  // Only change code below this line.
  if (myFunction) {
    return "That was true";
    }
    return "That was false";

  // Only change code above this line.

}

// Change this value to test
myFunction(false);
biggbuddy
@biggbuddy
Feb 08 2016 20:06
Hi All, I got stumped in this http://www.freecodecamp.com/challenges/change-the-font-size-of-an-element. How can I "Browser and text zoom should be at 100%"
Eran Finkle
@finklez
Feb 08 2016 20:06
@gts00k and don't forget to use String.fromCharCode() to get the codes back to chars
biggbuddy
@biggbuddy
Feb 08 2016 20:06
I think i have already been 100%
Brian
@sludge256
Feb 08 2016 20:06
@biggbuddy Don't add any classes to your second p element
Eran Finkle
@finklez
Feb 08 2016 20:06
@biggbuddy in windows it's ctrl + 0 or ctrl + ins
DinnerFingers
@DinnerFingers
Feb 08 2016 20:06
@biggbuddy double check instructions, second para doesn't need text colour class
gts00k
@gts00k
Feb 08 2016 20:06
@finklez ok thx
CamperBot
@camperbot
Feb 08 2016 20:06
gts00k sends brownie points to @finklez :sparkles: :thumbsup: :sparkles:
Thomas Tzanetoulakos
@tommasgr
Feb 08 2016 20:06
Good evening everyone!!!! I need help if somebody can help.. i want to do this class="class1 class2" can you tell me where im wrong? <h1 class="class1 class2" class="pink-text" class="blue-text">Hello World!</h1>
DinnerFingers
@DinnerFingers
Feb 08 2016 20:07
I just got stuck on that, now stuck on Size your Images
CamperBot
@camperbot
Feb 08 2016 20:07
:star: 475 | @finklez | http://www.freecodecamp.com/finklez
Eran Finkle
@finklez
Feb 08 2016 20:07
@tommasgr you can only have 1 class="" statement, but inside you can have as many classes as you want space separated
ndcregut
@ndcregut
Feb 08 2016 20:08
im trying to add tags to a button without changing the text inside of the button, im not sure how to keep the text thats already there
Brian
@sludge256
Feb 08 2016 20:08
@aaronk73 you should be checking wasThatTrue
It's your function parameter. Don't input your function
ndcregut
@ndcregut
Feb 08 2016 20:08
im using jquery
Eran Finkle
@finklez
Feb 08 2016 20:09
@ndcregut you can grab the text, add what you need and put it back $('#..').html( $('#..').text() + '<tags>' )
Thomas Tzanetoulakos
@tommasgr
Feb 08 2016 20:09
@finklez You were perfect!
Eran Finkle
@finklez
Feb 08 2016 20:09
:D
DinnerFingers
@DinnerFingers
Feb 08 2016 20:09
I've tried a couple of browsers and cant seem to get the zoom right for the Size your Images challenge
Thomas Tzanetoulakos
@tommasgr
Feb 08 2016 20:09
@finklez Thank you
CamperBot
@camperbot
Feb 08 2016 20:09
tommasgr sends brownie points to @finklez :sparkles: :thumbsup: :sparkles:
ndcregut
@ndcregut
Feb 08 2016 20:09
@finklez thank you
aaronK
@aaronk73
Feb 08 2016 20:10
leave myFunction blank
CamperBot
@camperbot
Feb 08 2016 20:10
:star: 476 | @finklez | http://www.freecodecamp.com/finklez
Brian
@sludge256
Feb 08 2016 20:11
@aaronk73
  if (myFunction) {
check the function parameter not the function
@DinnerFingers share your code
DinnerFingers
@DinnerFingers
Feb 08 2016 20:13

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

eep How do I share code neatly? I'm so sorry
Kevin Mulligan
@kmulligan
Feb 08 2016 20:14
@DinnerFingers put "```" before and after your code, on separate lines, without the quotes
DinnerFingers
@DinnerFingers
Feb 08 2016 20:14
Thanks @kmulligan
CamperBot
@camperbot
Feb 08 2016 20:14
dinnerfingers sends brownie points to @kmulligan :sparkles: :thumbsup: :sparkles:
Kevin Mulligan
@kmulligan
Feb 08 2016 20:14
@DinnerFingers I believe it is called a backpack, usually located on the key to the left of your 1 key above q key :)
Brian
@sludge256
Feb 08 2016 20:14
Good old backpack :d
aaronK
@aaronk73
Feb 08 2016 20:14

@sludge256```
// Setup
function (myFunction) {

// Only change code below this line.
if (myFunction) {
return "That was true";
}
return "That was false";

// Only change code above this line.

}

// Change this value to test
myFunction (false);
```

Brian
@sludge256
Feb 08 2016 20:14
@DinnerFingers You have an underscore instead of a dash in your CSS
aaronK
@aaronk73
Feb 08 2016 20:14
// Setup
function (myFunction) {

  // Only change code below this line.
  if (myFunction) {
    return "That was true";
    }
    return "That was false";

  // Only change code above this line.

}

// Change this value to test
myFunction (false);
DinnerFingers
@DinnerFingers
Feb 08 2016 20:15
I thought it was exclusively for the creation of donglers, you learn something new everyday!
CamperBot
@camperbot
Feb 08 2016 20:15
api offline
Brian
@sludge256
Feb 08 2016 20:15
@aaronk73 the top line was fine as it was before
Your if statement is incorrect.
DinnerFingers
@DinnerFingers
Feb 08 2016 20:15
@sludge256 I am such a muppet, thanks for your patience
CamperBot
@camperbot
Feb 08 2016 20:15
dinnerfingers sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:warning: dinnerfingers already gave sludge256 points
DinnerFingers
@DinnerFingers
Feb 08 2016 20:16
I thought I read through it, but apparently not :exclamation:
Kevin Mulligan
@kmulligan
Feb 08 2016 20:22
Does it normally take a while to go between lessons in FCC?
Every time I submit it seems to hang for a while
Or is that the part where @camperbot just said "api offline"?
Weird... when I open in a new tab it is showing the current problem as completed, but it never loaded the next challenge
DinnerFingers
@DinnerFingers
Feb 08 2016 20:23
I think its busy, it was a little slow yesterday too
I've been going to the map almost every time
Natalia
@nataliamelissas
Feb 08 2016 20:26
sorry dumb question, how should i screenshot my code since i need some help right now.
Kevin Mulligan
@kmulligan
Feb 08 2016 20:26
@nataliamelissas You can paste it in here. However, make sure you put "```" before and after your code, on separate lines, without the ""s
DinnerFingers
@DinnerFingers
Feb 08 2016 20:26
oh you use "` " without the quotes @nataliamelissas
oops
Kevin Mulligan
@kmulligan
Feb 08 2016 20:26
Example:
" ` "
test
" ` "
hah same thing
DinnerFingers
@DinnerFingers
Feb 08 2016 20:26
`
Kevin Mulligan
@kmulligan
Feb 08 2016 20:26
Alternatively, see the M downarrow in the bottom right hand of the chat box?
DinnerFingers
@DinnerFingers
Feb 08 2016 20:27
like that anyway lmao
Kevin Mulligan
@kmulligan
Feb 08 2016 20:27
That shows the markdown

!!!
Example code
!!!

Except turn the !!! into 3 `

DinnerFingers
@DinnerFingers
Feb 08 2016 20:27
oh my word!! @kmulligan shows I dont read anything properly :exclamation:
aaronK
@aaronk73
Feb 08 2016 20:27
@sludge256
function myFunction(wasThatTrue) {

  // Only change code below this line.
  if (wasthatTrue) { 
    return "That was true";
  }
  return "That was false";
}


  // Only change code above this line.

}

// Change this value to test
myFunction(false);
confox
@confox
Feb 08 2016 20:28
how do i call a function and assign something to it again?
Aleksander Gębicki
@Takumar
Feb 08 2016 20:28
```
you can use backslashes as escape character to display backticks
```
Kevin Mulligan
@kmulligan
Feb 08 2016 20:28
@Takumar Once again shows his genius :D
Alright signing off
Aleksander Gębicki
@Takumar
Feb 08 2016 20:29
@kmulligan ;-) that's not so big deal
Brian
@sludge256
Feb 08 2016 20:33
@aaronk73 you should have an else for the false return
Natalia
@nataliamelissas
Feb 08 2016 20:33
`

`

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);

});
$("well").remove("#target4")
</script>

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

confox
@confox
Feb 08 2016 20:34
i cant assign this fuction
Natalia
@nataliamelissas
Feb 08 2016 20:34
Crap >_<
confox
@confox
Feb 08 2016 20:35
the bit im stuck on " You should assign process to processed "
Aleksander Gębicki
@Takumar
Feb 08 2016 20:36
@confox var processed = process(yourArgument);
confox
@confox
Feb 08 2016 20:36
i tried that ealier :(
Natalia
@nataliamelissas
Feb 08 2016 20:36
I can't finish the "Use jQuery to remove your target4 element from your page." step in my code up above. What am I doing wrong?
George Phalen
@gphalen
Feb 08 2016 20:36
How do you set text zoom to `100%? It won't let me finish #18 and this is the only issue I can see.
Aleksander Gębicki
@Takumar
Feb 08 2016 20:37
@nataliamelissas press Shift + Enter after putting three backticks, it will allow you do put your code, than again Shift+Enter to write three ending backticks.
confox
@confox
Feb 08 2016 20:37
@Takumar it worked, yet when i tried it it didn't :(
DinnerFingers
@DinnerFingers
Feb 08 2016 20:37
@gphalen if you're at 100% you've missed something, at least thats what I've learned over the last half hour
Aleksander Gębicki
@Takumar
Feb 08 2016 20:37
@gphalen Ctrl+0 works on Windows for setting 100% zoom in browsers.
confox
@confox
Feb 08 2016 20:38
@gphalen whats you code?
aaronK
@aaronk73
Feb 08 2016 20:38
@sludge256 thank you :stuck_out_tongue_winking_eye:
Aleksander Gębicki
@Takumar
Feb 08 2016 20:39
@nataliamelissas maybe you should use remove() function. Without any arguments, just select #target4 element.
aaronK
@aaronk73
Feb 08 2016 20:39
@sludge256 thank you
CamperBot
@camperbot
Feb 08 2016 20:39
aaronk73 sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 1358 | @sludge256 | http://www.freecodecamp.com/sludge256
Natalia
@nataliamelissas
Feb 08 2016 20:40
I'm not sure where to place the remove() function, I've tried in various ways
gts00k
@gts00k
Feb 08 2016 20:41
how do I loop into an array and change it's numbers ?
for example
array = [1,2,3,99,94]
I want to find the numbers of >90
and make them -26
Kirby Simmons
@puckett15
Feb 08 2016 20:42
@nataliamelissas
<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
/*#needs to be in document.ready function so onload jQuery knows the classes of the
#html elements,
#also added period to well class, jQuery uses css selectors so you need the .well
#also forgot the semicolon after
#also needs to be .empty jQuery function so that you don't remove the .well element #along with it's child elements */
$(".well").empty("#target4");
});

</script>
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
Markus Kiili
@Masd925
Feb 08 2016 20:42
@gts00k .map() method is just for that.
gts00k
@gts00k
Feb 08 2016 20:43
@Masd925 ok thanks
CamperBot
@camperbot
Feb 08 2016 20:43
gts00k sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
DinnerFingers
@DinnerFingers
Feb 08 2016 20:44
I'm trying to complete Nest an Anchor Element within a Paragraph , when I remove the words "cat photos" from my a element I get a check/tick for "Your p element should have the text "View more " (with a space after it)." but when I add the text cat photos back into my a element, which I need to complete the challenge, I lose the check/tick again :confused:
CamperBot
@camperbot
Feb 08 2016 20:44
api offline
Natalia
@nataliamelissas
Feb 08 2016 20:44
Oh never mind. I figured my problem out
DinnerFingers
@DinnerFingers
Feb 08 2016 20:45
Darn, had the p text on the wrong side :laughing:
George Phalen
@gphalen
Feb 08 2016 20:45

@confox this is my code <style>
.red-text {
color: red;
font-size: 16px;
}
</style>

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

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

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

Aleksander Gębicki
@Takumar
Feb 08 2016 20:46
@nataliamelissas $("#target4").remove();
You select element, and call remove() function on it.
@gphalen your second paragraph should not have .red-text class! Leave only: <p>Purr...
Marcos Antônio de Souza Silva
@massilva
Feb 08 2016 20:50
@gphalen use p {font-size: 16px;}
George Phalen
@gphalen
Feb 08 2016 20:51
@massilva, thanks, that worked
CamperBot
@camperbot
Feb 08 2016 20:51
gphalen sends brownie points to @massilva :sparkles: :thumbsup: :sparkles:
:star: 280 | @massilva | http://www.freecodecamp.com/massilva
gts00k
@gts00k
Feb 08 2016 20:52
any help with ROT13 ?
Marcos Antônio de Souza Silva
@massilva
Feb 08 2016 20:53
@gts00k describe you problem?
igorfilipe
@igorfilipe
Feb 08 2016 20:56
@valkukatov thanks for the answer I got it!
CamperBot
@camperbot
Feb 08 2016 20:56
igorfilipe sends brownie points to @valkukatov :sparkles: :thumbsup: :sparkles:
:star: 219 | @valkukatov | http://www.freecodecamp.com/valkukatov
Marcos Antônio de Souza Silva
@massilva
Feb 08 2016 20:58
@gts00k you need to the inverse process of Rot13.
Mat Forsberg
@MatForsberg
Feb 08 2016 20:59
@gts00k what is your code?
gts00k
@gts00k
Feb 08 2016 21:00
@MatForsberg
Marcos Antônio de Souza Silva
@massilva
Feb 08 2016 21:00
@gts00k the algorithm get the char code, ex 'A' => 65, and sum 13, 65 (A) + 13 = 78 (N).
gts00k
@gts00k
Feb 08 2016 21:00
function rot13(str) {   
  var a = []; 


  for(var i = 0; i < str.length; i++){
      a.push(str.charCodeAt(i)+13);        
}

var k = a.map(function(x) {
if (x>90){
  return x - 26;
}
});
  return k;

}
Marcos Antônio de Souza Silva
@massilva
Feb 08 2016 21:02
1111-》
Mat Forsberg
@MatForsberg
Feb 08 2016 21:03
You need to use String.fromCharCode()
var s = arrayOfInts.map(function(x) {
  return String.fromCharCode(x) ;
});
this is an example of using String.fromCharCode()
Markus Kiili
@Masd925
Feb 08 2016 21:05
@gts00k It is better to just split and map, without any pushing.
gts00k
@gts00k
Feb 08 2016 21:07
@MatForsberg doesnt work
@Masd925 ?
Mat Forsberg
@MatForsberg
Feb 08 2016 21:07
@gts00k you also need to account for non alphabetic characters such as space and .
gts00k
@gts00k
Feb 08 2016 21:07
can you saw me with some code what you mean ?
Markus Kiili
@Masd925
Feb 08 2016 21:07
@gts00k You can split the string into an array with .split("") and then use .map() on it. The code is clearer that way.
Mat Forsberg
@MatForsberg
Feb 08 2016 21:09
@gts00k do you know about regular expressions?
gts00k
@gts00k
Feb 08 2016 21:09
@MatForsberg yep
@MatForsberg doesn't make sense
Mat Forsberg
@MatForsberg
Feb 08 2016 21:10
what would be the regular expression to check that something is A to Z
you only want to change the values of the characters A to Z
gts00k
@gts00k
Feb 08 2016 21:11
/[A-Z]/g
Jesus Africano
@elafrikano
Feb 08 2016 21:12
hi i have a problem, my code return goods results in console but i can not pass
Aleksander Gębicki
@Takumar
Feb 08 2016 21:12
@MatForsberg @gts00k or rather /[A-Z]/g ^ means "not"
gts00k
@gts00k
Feb 08 2016 21:12
ok
Markus Kiili
@Masd925
Feb 08 2016 21:12
@elafrikano Post the code please.
gts00k
@gts00k
Feb 08 2016 21:12
that's what I wrote
@Masd925 /[A-Z]/g
Jesus Africano
@elafrikano
Feb 08 2016 21:14
function destroyer(arr) {
  // Remove all the values
  for(var i=1; i < arguments.length; i++)
    arr = arr.filter(destroy, arguments[i]);

  return arr;
}

function destroy(temp){

  return temp !== this;
}

destroyer([1, 2, 3, 1, 2, 3], 2, 3);
Markus Kiili
@Masd925
Feb 08 2016 21:14
@elafrikano Use !=
Jesus Africano
@elafrikano
Feb 08 2016 21:14
-.-''
Mat Forsberg
@MatForsberg
Feb 08 2016 21:15
//split string into array of chars and put in var arr
// for each char in arr
//         if(char.match(/[A-Z]/))
//                 rotate accordingly
//        else
//                 use existing char
//   return result
Jesus Africano
@elafrikano
Feb 08 2016 21:15
thank you very much friend @Masd925
CamperBot
@camperbot
Feb 08 2016 21:15
elafrikano sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
:star: 950 | @masd925 | http://www.freecodecamp.com/masd925
Brian
@sludge256
Feb 08 2016 21:15
What's odd is that strict inequality still produces seemingly correct output
Markus Kiili
@Masd925
Feb 08 2016 21:16
@elafrikano It is better to filter only once by passing arguments in and looping inside the callback.
@elafrikano You can also use indexOf inside the callback instead of looping.
The problem with your code was that this is an object and the number got coerced to Number object.
Mat Forsberg
@MatForsberg
Feb 08 2016 21:18

i was just editing the filter entry on the wiki @elafrikano

Array.prototype.filter()

The filter() method creates a new array with all elements that pass the test implemented by the provided function

arr.filter(callback[, thisArg])

filter() Parameters

Parameter Description
Required arr Array being filtered
Required callback Function with 3 arguments (element, index, array)
Optional thisArg Value of this while executing callback

Return: A new array that contains all the values for which the callback function returns true. If the callback function returns false for all elements of arr, the length of the new array is 0.

MDN link | MSDN link

callback Parameters

Parameter Description
Optional element current element of array being filtered
Optional index current index of array being filtered
Optional array current array being filtered

Examples

// Define a callback function.
function CheckIfPrime(value, index, ar) {
    high = Math.floor(Math.sqrt(value)) + 1;

    for (var div = 2; div <= high; div++) {
        if (value % div == 0) {
            return false;
        }
    } 
    return true;
}

// Create the original array.
var numbers = [31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53];

// Get the prime numbers that are in the original array. 
var primes = numbers.filter(CheckIfPrime);

document.write(primes);
// Output: 31,37,41,43,47,53
// Create the original array.
var arr = [5, "element", 10, "the", true];

// Create an array that contains the string
// values that are in the original array.
var result = arr.filter(
    function (value) {
        return (typeof value === 'string');
    }
);

document.write(result);
// Output: element, the
Brian
@sludge256
Feb 08 2016 21:18
Ah yep that was the issue
Was helping someone out with the same issue last night but wasn't able to give a full explanation
Jesus Africano
@elafrikano
Feb 08 2016 21:18
I understand, thank you very much! @Masd925 @MatForsberg
CamperBot
@camperbot
Feb 08 2016 21:18
elafrikano sends brownie points to @masd925 and @matforsberg :sparkles: :thumbsup: :sparkles:
:warning: elafrikano already gave masd925 points
:star: 79 | @matforsberg | http://www.freecodecamp.com/matforsberg
AbdelRahman MassriAttal
@abedattal98
Feb 08 2016 21:29
Nest the existing img element within an a element.
what this mean?
DinnerFingers
@DinnerFingers
Feb 08 2016 21:35
@abedattal98 you need to put the a element outside of your img element
<a etc><img href="#"></img></a> kind of I think
dont use my example though eh, just note how its nested
Ryan
@FLc0den00b
Feb 08 2016 21:52
2 questions. 1 how do you post pictures for help?
2 can someone help me with local scope and functions?
Raincode
@Raincode
Feb 08 2016 21:52
prefer to post code
camberbot wil help you out
DinnerFingers
@DinnerFingers
Feb 08 2016 21:52
use the m arrow button in the chat box
Raincode
@Raincode
Feb 08 2016 21:53
It's faster to post code, than upload the image and then post here, imho.
Ryan
@FLc0den00b
Feb 08 2016 21:54

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

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

// run and check the console
// myVar is not defined outside of myFunction
console.log(myVar);

// now remove the console log line to pass the test

Raincode
@Raincode
Feb 08 2016 21:54
camperbot , you're up
Ryan
@FLc0den00b
Feb 08 2016 21:57
Its saying no global myVar variable
do I need to add something?
Raincode
@Raincode
Feb 08 2016 21:57
well simple isn't it? myVar is defined inside the scope of myFunction(). I guess you could say the scope begins with the { and ends with the }. Since console.log(myVar) is outside of the function body of myFunction(), thus outside the scope of myFunction, the name myVar is unknown. It only exists locally to everything inside myFunction
just remove the console.log line, as described.
something like that. I don't always get the terms 100% correct.
Ryan
@FLc0den00b
Feb 08 2016 21:58
still getting the same feedback. Says no global myVar variable. Do I need to add that as well?
Raincode
@Raincode
Feb 08 2016 21:58
That is, the console.log() line outside of myFunction()
Ryan
@FLc0den00b
Feb 08 2016 21:59
YEa. When I remove that line, it still fails
Raincode
@Raincode
Feb 08 2016 21:59
OK let me see
Brian
@sludge256
Feb 08 2016 21:59
@FLc0den00b try refreshing
Ryan
@FLc0den00b
Feb 08 2016 22:00
That did it
Brian
@sludge256
Feb 08 2016 22:00
I think the attempted reference to the global var is persisting in the cache
Ryan
@FLc0den00b
Feb 08 2016 22:00
Thanks @sludge256
CamperBot
@camperbot
Feb 08 2016 22:00
flc0den00b sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 1361 | @sludge256 | http://www.freecodecamp.com/sludge256
Raincode
@Raincode
Feb 08 2016 22:01
function myFunction() {
  var myVar = 'use strict';


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

// run and check the console 
// myVar is not defined outside of myFunction

// now remove the console log line to pass the test
worked for me
Ryan
@FLc0den00b
Feb 08 2016 22:01
yea. refreshing made it work for some reason
Anyone else finding the site running slow today?
Ryan
@FLc0den00b
Feb 08 2016 22:04
@sludge256 to the rescue again. Thanks
CamperBot
@camperbot
Feb 08 2016 22:04
flc0den00b sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:warning: flc0den00b already gave sludge256 points
Dustin
@Key-Banger
Feb 08 2016 22:09
Would someone mind checking out my pen, and help me out with the javascript. I cant quite seem to get the timer to start. Thanks!
http://codepen.io/Key-Banger/pen/KVxxdE
aaronK
@aaronk73
Feb 08 2016 22:14
may someone help me with this code
Comparisons with the Logical And Operator
  if (val >=25) {
    if (val<=50) {
      return "Yes";
    }
  }

  // Only change code above this line
  if (val >= && <=50) {
  return "No";
}
`
Franco Zapata
@Francozt01
Feb 08 2016 22:16
@aaronk73 if (val >= 25 || val <= 50 ) { return "Yes"; }
if val is mayor or equal to 25 or val is less or equal to 50 ?
return yes
aaronK
@aaronk73
Feb 08 2016 22:20
  if (val >=25) {
    if (val<=50) 
      if (val >= 25 && val <= 50 ) {return "Yes";

    }
  }
Aleksander Gębicki
@Takumar
Feb 08 2016 22:20
@aaronk73 too many conditions :-(
You have just created one and only needed:
if (val >= 25 && val <= 50 ) {return "Yes"; }
aaronK
@aaronk73
Feb 08 2016 22:21
remove other two if val statements
Aleksander Gębicki
@Takumar
Feb 08 2016 22:21
@aaronk73 it means if value is from range [25, 50] return "Yes"
Outside that you can freely return "No", because value is for example either 2 or 78
Allan
@allanx2000
Feb 08 2016 22:22
hye just curious, anyone do the Roman Numeral Converter challenge yet?
Aleksander Gębicki
@Takumar
Feb 08 2016 22:23
@allanx2000 surely many campers.
aaronK
@aaronk73
Feb 08 2016 22:23
if (val >= 25 && val <= 50 ) 
      {return "Yes";

    }
  }
Allan
@allanx2000
Feb 08 2016 22:23
ah ok, was wondering for the conversion did you you switch case
basically just if the digit is 1,2,3,4,5 ... then ....
Aleksander Gębicki
@Takumar
Feb 08 2016 22:24
@allanx2000 personally not, I used only one if-else statement.
Allan
@allanx2000
Feb 08 2016 22:24
or <. > . =?
@Takumar o ok well switch if else are similar but did you use like if n < 3 then I
or like if (n === 3) then III, if (n===1) then I
i gues i mean to print it did you actually use a loop or just listed all the cases?
1-9
Aleksander Gębicki
@Takumar
Feb 08 2016 22:26
@allanx2000 I don't know if my solution was the best but I have created two arrays one with roman numbers and one with decimal equivalents, and then iterated over elements of that array.
aaronK
@aaronk73
Feb 08 2016 22:27
@Francozt01 @Takumar thank you
Allan
@allanx2000
Feb 08 2016 22:27
@Takumar oh ok, but i mean you had to do like different letters for 1, 10, 100, 1000
CamperBot
@camperbot
Feb 08 2016 22:27
aaronk73 sends brownie points to @francozt01 and @takumar :sparkles: :thumbsup: :sparkles:
:star: 2232 | @takumar | http://www.freecodecamp.com/takumar
:star: 527 | @francozt01 | http://www.freecodecamp.com/francozt01
Allan
@allanx2000
Feb 08 2016 22:28
just wondering if I need to list out all 30+ cases
Aleksander Gębicki
@Takumar
Feb 08 2016 22:28
@allanx2000 yes, all values that are distinct:
var r = [ 'M', 'CM', 'DCCC', 'DCC', 'DC', 'D', 'CD', 'CCC', 'CC', 'C', 'XC', 'LXXX', 'LXX', 'LX', 'L', 'XL', 'XXX', 'XX', 'X', 'IX', 'VIII', 'VII', 'VI', 'V', 'IV', 'III', 'II', 'I' ];
Allan
@allanx2000
Feb 08 2016 22:29
ah ok
thanks @Takumar
CamperBot
@camperbot
Feb 08 2016 22:29
allanx2000 sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 2233 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Feb 08 2016 22:29
@allanx2000 now you can simply subtract values of that numbers from your number and that's entire algorithm :-)
@aaronk73 you are welcome.
Allan
@allanx2000
Feb 08 2016 22:30
@Takumar not sure what you mean tough, like if I had 1000
how do I look that up with your array?
Aleksander Gębicki
@Takumar
Feb 08 2016 22:32
@allanx2000 I have told you that I have equivalents in second array, so I can loop through that elements, for year 2016 I can subtract 'M' from that, and do next iteration, I can subtract 'M' again and so on.
Allan
@allanx2000
Feb 08 2016 22:34
o ok
Mat Forsberg
@MatForsberg
Feb 08 2016 22:37
on roman numberal converter how do we represent letters with line over them?
aaronK
@aaronk73
Feb 08 2016 22:38
  if (val num > 10 || num < 20) {
    return "Outside";
  }
what am i missing?
Marcos Antônio de Souza Silva
@massilva
Feb 08 2016 22:38
@aaronk73 remove val or change num for val
aaronK
@aaronk73
Feb 08 2016 22:38
hey matforsberg
Marcos Antônio de Souza Silva
@massilva
Feb 08 2016 22:38
@aaronk73 what the argument of function?
Mat Forsberg
@MatForsberg
Feb 08 2016 22:39
@aaronk73 hello
aaronK
@aaronk73
Feb 08 2016 22:39
Comparisons with the Logical Or Operator
Marcos Antônio de Souza Silva
@massilva
Feb 08 2016 22:39
@aaronk73 remove val
aaronK
@aaronk73
Feb 08 2016 22:40
did not work
Combine the two if statements into one statement which returns "Outside" if val is not between 10 and 20, inclusive. Otherwise, return "Inside".
Mat Forsberg
@MatForsberg
Feb 08 2016 22:41
you want greater than 10 and less than 20
AND
aaronK
@aaronk73
Feb 08 2016 22:41
function myTest(val) {
  // Only change code below this line

  if (val) {
    return "Outside";
  }

  if (val) {
    return "Outside";
  }

  // Only change code above this line
  return "Inside";
}

// Change this value to test
myTest(15);
swissricola
@swissricola
Feb 08 2016 22:42
can anyone help me with "Change Text inside an element using jQuery"?
aaronK
@aaronk73
Feb 08 2016 22:42
i removed 2nd val ooutside
swissricola
@swissricola
Feb 08 2016 22:42
<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("target4").html("<i>jQueryPlayground</i>");

});
</script>
Mat Forsberg
@MatForsberg
Feb 08 2016 22:43
the inverse of 10>val && val<20 is val<10 || val>20
@swissricola what are you getting as output?
adermer
@adermer
Feb 08 2016 22:44
On the exercise "Give a background color to a div element" The background has changed correctly but I still cannot progress. Here's my code:
'''
CamperBot
@camperbot
Feb 08 2016 22:44
:bulb: to format code use backticks! ``` more info
aaronK
@aaronk73
Feb 08 2016 22:45
@MatForsberg @massilva thank you
swissricola
@swissricola
Feb 08 2016 22:45
  $(document).ready(function() {
    $("#target1").css("color", "red");
    $("#target4").html("<i>jQuery Playground</i>");

  });
</script>

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

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <h4>#left-well</h4>
      <div class="well" id="left-well">
        <button class="btn btn-default target" id="target1">#target1</button>
        <button class="btn btn-default target" id="target2">#target2</button>
        <button class="btn btn-default target" id="target3">#target3</button>
      </div>
    </div>
    <div class="col-xs-6">
      <h4>#right-well</h4>
      <div class="well" id="right-well">
        <button class="btn btn-default target" id="target4">#target4</button>
        <button class="btn btn-default target" id="target5">#target5</button>
        <button class="btn btn-default target" id="target6">#target6</button>
      </div>
    </div>
  </div>
</div>
need to italicize the text in my target4
not working for some reason
Andreia Melo
@andreiamlm
Feb 08 2016 22:46
help map
CamperBot
@camperbot
Feb 08 2016 22:46

:point_right: bonfire map the debris [wiki]

Problem Explanation:

The first thing to do is to get familiar with what the program is for, for this I would suggest you check the Wikipedia link as that is very important and from where you can also get the formula for the conversion. The hardest part are finding the formula, implementing it and for some modifying objects by the key. However, something that is not very clear is the fact that your program has to be able to check for any number of objects in the array which is what is tested on the second part.

:pencil: read more about bonfire map the debris on the FCC Wiki

adermer
@adermer
Feb 08 2016 22:46
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

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

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

  .smaller-image {
    width: 100px;
  }
  div {
background-color: gray;
}
</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" alt="A cute orange cat lying on its back" src="https://bit.ly/fcc-relaxing-cat"></a>

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

<form action="/submit-cat-photo">
  <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> Outdoor</label>
  <label><input type="checkbox" name="personality" checked> Loving</label>
  <label><input type="checkbox" name="personality"> Lazy</label>
  <label><input type="checkbox" name="personality"> Energetic</label>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>
aaronK
@aaronk73
Feb 08 2016 22:46
@MatForsberg thank you
CamperBot
@camperbot
Feb 08 2016 22:46
aaronk73 sends brownie points to @matforsberg :sparkles: :thumbsup: :sparkles:
:star: 81 | @matforsberg | http://www.freecodecamp.com/matforsberg
Kirby Simmons
@puckett15
Feb 08 2016 22:46
@swissricola change jQueryPlayground to #target4, also change $("target4") to $("#target4") jQuery uses css selectors so you need that pound sign
adermer
@adermer
Feb 08 2016 22:47
the background changes but I still cannot move on
aaronK
@aaronk73
Feb 08 2016 22:47
@massilva thank you
CamperBot
@camperbot
Feb 08 2016 22:47
aaronk73 sends brownie points to @massilva :sparkles: :thumbsup: :sparkles:
:star: 281 | @massilva | http://www.freecodecamp.com/massilva
swissricola
@swissricola
Feb 08 2016 22:47
got it thanks puckett
Kevin Mulligan
@kmulligan
Feb 08 2016 22:47
first bonfire and my marshmellow is burnt
Mat Forsberg
@MatForsberg
Feb 08 2016 22:47
@swissricola $("target4").value("<i>jQueryPlayground</i>"); ???
Kirby Simmons
@puckett15
Feb 08 2016 22:47
np @swissricola
Kevin Mulligan
@kmulligan
Feb 08 2016 22:48
how do I turn reverseString("hello") into an array?
function reverseString(str) {



  return str;
}

reverseString("hello");
I feel like I know how to split and reverse it, but stuck on the first step
Franco Zapata
@Francozt01
Feb 08 2016 22:48
@kmulligan str.reverse();
Mat Forsberg
@MatForsberg
Feb 08 2016 22:48
@kmulligan str.split('');
on roman numberal converter how do we represent letters with line over them?
Kevin Mulligan
@kmulligan
Feb 08 2016 22:50
@Francozt01 @MatForsberg thanks... so yea, this "thinking like a programmer" thing... ugh
CamperBot
@camperbot
Feb 08 2016 22:50
kmulligan sends brownie points to @francozt01 and @matforsberg :sparkles: :thumbsup: :sparkles:
:star: 528 | @francozt01 | http://www.freecodecamp.com/francozt01
:star: 82 | @matforsberg | http://www.freecodecamp.com/matforsberg
Allan
@allanx2000
Feb 08 2016 22:53
@MatForsberg actually it seems the largest test case is like 3000 I just made an assumption they wont be needed
Mat Forsberg
@MatForsberg
Feb 08 2016 22:53
ok thank you
Kevin Mulligan
@kmulligan
Feb 08 2016 22:54
It worked! Ahhhh ok
Brain.. engage
aaronK
@aaronk73
Feb 08 2016 22:54
  if (val > 5) {
    result = "Bigger than 5";
  }

  else (val <= 5) {
    result = "5 or Smaller";
  }
can someone explain why this is wrong?
Aleksander Gębicki
@Takumar
Feb 08 2016 22:55
@aaronk73 you cannot put condition after else, you have to remove condition or use else if !
Gbemi Emmanuel
@bobs95
Feb 08 2016 22:56
for (var i=1; i < arr.multiply; i++) {
  for (var j=1; j < arr.multiply; j++) {
    console.log (arr[i][j]);
  }
}
aaronK
@aaronk73
Feb 08 2016 22:56
still eroor
error
Gbemi Emmanuel
@bobs95
Feb 08 2016 22:56
i'm really stuck
Kevin Mulligan
@kmulligan
Feb 08 2016 22:56
@aaronk73 as @Takumar said, your first if is saying if the value is greater than 5, do something. anything else is do this other thing
aaronK
@aaronk73
Feb 08 2016 22:57
else/if (val <= 5) {
result = "5 or Smaller";
}
Kevin Mulligan
@kmulligan
Feb 08 2016 22:57
result != return
Aleksander Gębicki
@Takumar
Feb 08 2016 22:57
@aaronk73
else if (val <= 5) {
    result = "5 or Smaller";
  }
Kevin Mulligan
@kmulligan
Feb 08 2016 22:57
oh
my bad
Aleksander Gębicki
@Takumar
Feb 08 2016 22:58
@kmulligan no, you are right, somewhere result has to be returned (I don't know if in this exercise though)
Kevin Mulligan
@kmulligan
Feb 08 2016 22:58
@Takumar could you not just do
if (val > 5) { 
result = "Greater than 5"; } 

else {
result = "5 or smaller";
}
Aleksander Gębicki
@Takumar
Feb 08 2016 22:59
@kmulligan of course, but @aaronk73 wanted to put condition, so he needs to use else if()
Kevin Mulligan
@kmulligan
Feb 08 2016 22:59
K, just checking my learning

then you would add

return result; 
}

at the end

Aleksander Gębicki
@Takumar
Feb 08 2016 22:59
@kmulligan there are no other possibilities, if val is not greater than 5 it must be smaller or equal 5
Kevin Mulligan
@kmulligan
Feb 08 2016 23:00
k
aaronK
@aaronk73
Feb 08 2016 23:00
still got error
Gbemi Emmanuel
@bobs95
Feb 08 2016 23:00
trying to multiply product variable by each number in the sub array
function multiplyAll(arr) {
  var product = 1;
  // Only change code below this line
  for (var i=1; i < arr.multiply; i++) {
  for (var j=1; j < arr.multiply; j++) {
    console.log (arr[i][j]);
  }
}
  // Only change code above this line
  return product;
}
Shokryah
@shok-m
Feb 08 2016 23:00
Hello, can someone please help me to understand this "Only add one class with each of your three selectors."
Gbemi Emmanuel
@bobs95
Feb 08 2016 23:01
I knw am wrong
any1 pls
Kevin Mulligan
@kmulligan
Feb 08 2016 23:01
@bobs95 You need to set var product to the result of your multiplication, right?
Gbemi Emmanuel
@bobs95
Feb 08 2016 23:02
@kmulligan don't get u
aaronK
@aaronk73
Feb 08 2016 23:02
both methods returned error
Kevin Mulligan
@kmulligan
Feb 08 2016 23:02
@bobs95 can you link to the lesson url?
Same thing for you @aaronk73
Kevin Mulligan
@kmulligan
Feb 08 2016 23:03
Ok jsut need the first part up to the # :)
Gbemi Emmanuel
@bobs95
Feb 08 2016 23:04
Jason
@jpr00
Feb 08 2016 23:04

`function queue(arr, item) {
// Your code here
arr.pop(item);
item = arr.shift;

return item;
}` I'm supposed to add the item to the end of the array, then take the first item off the array and return it as item....where am i going wrong?

Shokryah
@shok-m
Feb 08 2016 23:06
http://www.freecodecamp.com/challenges/target-the-same-element-with-multiple-jquery-selectors#?solution=fccss%0A%20%20%24(document).ready(function()%20%7B%0A%24(%22button%22).addClass(%22animated%22)%3B%0A%24(%22.btn%22).addClass%20(%22animated%22)%3B%0A%24(%22%23target1%22).addClass(%22animated%20shake%22)%3B%0A%20%20%20%20%24(%22%23target1%22).addClass(%22btn-primary%22)%3B%0A%0A%0A%20%20%20%0A%0A%20%20%7D)%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A anyone pls?
Aleksander Gębicki
@Takumar
Feb 08 2016 23:06
@jpr00 you need push() method for adding element, not pop()
Jason
@jpr00
Feb 08 2016 23:07
@Takumar ahhhh....thank you
CamperBot
@camperbot
Feb 08 2016 23:07
:star: 2234 | @takumar | http://www.freecodecamp.com/takumar
jpr00 sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
Aleksander Gębicki
@Takumar
Feb 08 2016 23:07
@aaronk73 you missed second part of code:
else {
    result = "5 or Smaller";
}
aaronK
@aaronk73
Feb 08 2016 23:08
  if (val > 5) { 
result = "Greater than 5"; } 

else {
result = "5 or smaller";
}
adermer
@adermer
Feb 08 2016 23:08
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

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

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

  .smaller-image {
    width: 100px;
  }

  div {
    background-color: gray;
  }
</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" alt="A cute orange cat lying on its back" src="https://bit.ly/fcc-relaxing-cat"></a>

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