These are chat archives for FreeCodeCamp/Help

24th
Jan 2016
M
@raydiatur
Jan 24 2016 00:03
any idea about making buttons?
<label><input class="btn" type="btn" name="like"> Like</label>
Dora
@DoraEx
Jan 24 2016 00:03
This message was deleted
Raj Dhanju
@rajdhanju1
Jan 24 2016 00:03
@M00kie06 put class="smaller-image" inside the <img> tag
Dora
@DoraEx
Jan 24 2016 00:04
Hi, I'm on the Profile lookup challenge where you have to check if the name matches and if the property exists and if it does, it returns the property value. The issue I"m having is that it never seems to be able to match the contact's first name with the first name passed into the function.
//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
  for (var i = 0; i < contacts.length; i++){ //loops through contact entries
    if ( contacts[i].firstName === firstName ) { //check if first name matches
      for (var j = 1; j < contacts[i].length; j++) //loops through the properties of each contact
        if (contacts[i].hasOwnProperty(prop)) { //checks if has property
          return contacts[i][j];
        } else return "No such property";
    } else return "No such contact";
  }

// Only change code above this line
}

// Change these values to test your function
lookUp("Akira", "likes");
Abdul Awali
@awalthefirst
Jan 24 2016 00:05
<input class="btn" type="button" value='mybutton'> @raydiatur
M
@raydiatur
Jan 24 2016 00:05
<button class="btn"> it seems i overcomplicated my code by A LOT
M00kie06
@M00kie06
Jan 24 2016 00:05
ok ill try that @rajdhanju1
Aleksander Gębicki
@Takumar
Jan 24 2016 00:06
@DoraEx why you start your second loop from 1? for (var j = 1;
Also this line: return contacts[i][j]; is not fully correct :-(
j is not name of property you want to return.
Marouane Rassili
@marouanerassili
Jan 24 2016 00:08
hi
please I need help
Aleksander Gębicki
@Takumar
Jan 24 2016 00:08
@DoraEx last thing, you should consider: else return "No such contact"; you cannot be sure that there is no such contact unless you check every contact in your list, so you can return such message only outside your loop.
Marouane Rassili
@marouanerassili
Jan 24 2016 00:08
how to write comment element correctly
Dora
@DoraEx
Jan 24 2016 00:09
i was a bit confused about how to get the contact properties. i was thinking that they could all be access as arrays but that's not correct...
Aleksander Gębicki
@Takumar
Jan 24 2016 00:09
@DoraEx you are close, first you select contact from your array: contacts[i] and that's very good, but you have to add property name to it.

@marouanerassili do you mean HTML comments or JS comments?
First type is:

<!--
This line is my comment
 -->

JS comments

/*
this is multiline
comment
*/
// this is single line comment
Marouane Rassili
@marouanerassili
Jan 24 2016 00:11
ok thanks Takumar (I mean HTML comments)
@Takumar how to comment an element in particular ?
Aleksander Gębicki
@Takumar
Jan 24 2016 00:14
@marouanerassili
<!-- <p>This paragraph is commented out</p> --><p>This is not</p>
Marouane Rassili
@marouanerassili
Jan 24 2016 00:16
@Takumar when I click Run tests nothing is done
Aleksander Gębicki
@Takumar
Jan 24 2016 00:17
@marouanerassili show your current code.
max77p
@max77p
Jan 24 2016 00:17
// Setup
var myPlants = [
  { 
    type: "flowers",
    list: [
      "rose",
      "tulip",
      "dandelion"
    ]
  },
  {
    type: "trees",
    list: [
      "fir",
      "pine",
      "birch"
    ]
  }  
];

// Only change code below this line

var secondTree = myPlants.list[0]; // Change this line
hey guys how do i access the 2nd tree in the trees list?
Dora
@DoraEx
Jan 24 2016 00:18
@Takumar thank you for your help! I realized i didn't need the inside loop, that i had to access the property with bracket notation, and moved the return statement to outside the for loop
CamperBot
@camperbot
Jan 24 2016 00:18
:star: 1866 | @takumar | http://www.freecodecamp.com/takumar
doraex sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
max77p
@max77p
Jan 24 2016 00:18
i can't seem to figure it out
Aleksander Gębicki
@Takumar
Jan 24 2016 00:18
@max77p myPlants is an array, so you should find trees by accessing second element from your array first. list is is not property of myPlants.
@DoraEx well done, that's the correct solution :-)
max77p
@max77p
Jan 24 2016 00:19
@Takumar ohh perfect thank you
CamperBot
@camperbot
Jan 24 2016 00:19
max77p sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 1867 | @takumar | http://www.freecodecamp.com/takumar
Marouane Rassili
@marouanerassili
Jan 24 2016 00:21
@Takumar how ?
Aleksander Gębicki
@Takumar
Jan 24 2016 00:22
@marouanerassili just copy and paste your code here.
Of course you can make it beauty by formatting it, check @camperbots answer ->
wiki format
CamperBot
@camperbot
Jan 24 2016 00:22

: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

Alexander Melendez
@clutchmcgee
Jan 24 2016 00:23
.gray-background{
background-color: gray;
}
does anyone know hot to do this chalenge
challenge
where you have to make the background color gray?

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

Marouane Rassili
@marouanerassili
Jan 24 2016 00:25

`<<!-- this is a comment -->

<h1>Hello World</h1>

<h2>CatPhotoApp</h2>

<p>Hello Paragraph</p>>`

Dora
@DoraEx
Jan 24 2016 00:26
you guys need to put three backticks before and after code ```
renu shinde
@renushinde
Jan 24 2016 00:27
how do i nest all html elements in.container fluid?this is bootstrap exercise 1
Marouane Rassili
@marouanerassili
Jan 24 2016 00:28
@Takumar
this is a comment
-->
<h1>Hello World</h1>

<h2>CatPhotoApp</h2>

<p>Hello Paragraph</p>
<!--
this is a comment
-->
@marouanerassili <!-- in top has been deleted when copied
Aleksander Gębicki
@Takumar
Jan 24 2016 00:29

@marouanerassili sorry maybe I explained it wrong:
This is start of comment

<!--

and below is end of comment:

-->
Marouane Rassili
@marouanerassili
Jan 24 2016 00:30
@Takumar yes I have it in my code
Aleksander Gębicki
@Takumar
Jan 24 2016 00:30
@marouanerassili but what have you been asked? You should comment some line, or remove comments?
Alexander Melendez
@clutchmcgee
Jan 24 2016 00:31
Marouane Rassili
@marouanerassili
Jan 24 2016 00:31
@Takumar comment h1 and p elements
Aleksander Gębicki
@Takumar
Jan 24 2016 00:32

@marouanerassili so you have to put the commenting tags around your heading <h1>:

<!--
<h1>Hello World</h1>
-->

do the same with paragraph.

Marouane Rassili
@marouanerassili
Jan 24 2016 00:32

this is original code : ``` <!--

<h1>Hello World</h1>

<h2>CatPhotoApp</h2>

<p>Hello Paragraph</p>
-->```

Secil
@senuka
Jan 24 2016 00:34

Hello, I have used everything according to the instructions, but I still get an X on one of them.

instructions are:

Use the $("button") selector.
Use the $(".btn") selector.
Use the $("#target1") selector.
Only add one class with each of your three selectors.
Your #target1 element should have the classes animated‚ shake and btn-primary.
Only use jQuery to add these classes to the element.

I have done every one of them
Aleksander Gębicki
@Takumar
Jan 24 2016 00:34
@marouanerassili yes but you should leave your h2 element uncommented.
So you have to open comment and close before <h2> and open before paragraph and close after paragraph.
Secil
@senuka
Jan 24 2016 00:34
this is my code
<script>
$(document).ready(function() {
$("button") .addClass ("animated")
$(".btn") .addClass ("shake")
$("#target1") .addClass("animated shake btn-primary")
});
</script>
But the one "only add one class with each of your three selectors" is the one i cannot complete
Aleksander Gębicki
@Takumar
Jan 24 2016 00:35

@senuka in last case you have added three classes

$("#target1") .addClass("animated shake btn-primary")

add only btn-primary because element with id target1 already has two classes added earlier.

Marouane Rassili
@marouanerassili
Jan 24 2016 00:35

<h2>CatPhotoApp</h2>
<!--

<p>Hello Paragraph</p>
-->

Secil
@senuka
Jan 24 2016 00:35
but the instructions say:
Your #target1 element should have the classes animated‚ shake and btn-primary.
Marouane Rassili
@marouanerassili
Jan 24 2016 00:35
@Takumar like this ?
Aleksander Gębicki
@Takumar
Jan 24 2016 00:36
@marouanerassili yes, very good.
Marouane Rassili
@marouanerassili
Jan 24 2016 00:36
<h1>Hello World</h1>
-->
<h2>CatPhotoApp</h2>
<!--
<p>Hello Paragraph</p>
-->
Mercedes Smith
@mercedessmith
Jan 24 2016 00:37

I can't figure out how to resize this image. <style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

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

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

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

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

Aleksander Gębicki
@Takumar
Jan 24 2016 00:37
@senuka that's right, but #target1 is button, right? You have also added animated class to button, and it is also element with class .btn so you added also shake class to it.
Secil
@senuka
Jan 24 2016 00:37
@mercedessmith add "class" inside img element, not seperately i guess
Mercedes Smith
@mercedessmith
Jan 24 2016 00:37
Sorry, I also am not sure how to share my code well when asking questions
Marouane Rassili
@marouanerassili
Jan 24 2016 00:38
@Takumar the h1 and p elements disappear from the page, does it mean that they are transformed into comments ?
Aleksander Gębicki
@Takumar
Jan 24 2016 00:38
@mercedessmith check this information :point_up: 24 stycznia 2016 01:22 how to format your code.
@marouanerassili yes, that is what comments are for, they are only for you.
They are not run by web browser.
You can comment fragments of code when they contain bug, or describe problem in them.
@mercedessmith just use three backticks before and after your code, and write:
```
Your code
```
Marouane Rassili
@marouanerassili
Jan 24 2016 00:40
@Takumar thank you for help
CamperBot
@camperbot
Jan 24 2016 00:40
marouanerassili sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 1868 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Jan 24 2016 00:41
@marouanerassili you are welcome :-)
Secil
@senuka
Jan 24 2016 00:41
@Takumar I am sorry I don't quite understand still as to what I should do
Mercedes Smith
@mercedessmith
Jan 24 2016 00:41
@senuka Thank worked. Thanks
CamperBot
@camperbot
Jan 24 2016 00:41
mercedessmith sends brownie points to @senuka :sparkles: :thumbsup: :sparkles:
:star: 115 | @senuka | http://www.freecodecamp.com/senuka
Bashir
@bashiros
Jan 24 2016 00:41
Hi campers, can anyone give me any pointer in how to solve the Find the longest word in a string challange?
Aleksander Gębicki
@Takumar
Jan 24 2016 00:41
@senuka you have to correct this line: $("#target1") .addClass("animated shake btn-primary")
Remove space before ".addClass", and remove two classes, leave only btn-primary
Secil
@senuka
Jan 24 2016 00:41
@mercedessmith you're welcome :smile:
@Takumar I've tried but it didn't work
Aleksander Gębicki
@Takumar
Jan 24 2016 00:44

@senuka look at your button:

<button class="btn btn-default target" id="target1">#target1</button>

it has id: target1 and it is button, and it has class .btn right?

Jason Lee
@JsonLitz
Jan 24 2016 00:44

I'm trying to embed three buttons within a bootstrap grid

 <div class="row">
  <button class="btn btn-block btn-primary">Like</button>
  <button class="btn btn-block btn-info">Info</button>
  <button class="btn btn-block btn-danger">Delete</button>
  </div>

Any tips would be appreciated

Aleksander Gębicki
@Takumar
Jan 24 2016 00:45

@senuka with that code:

$("button") .addClass ("animated");
$(".btn") .addClass ("shake");

you add two classes to #target1 already, add third btn-primary to make it blue.

Secil
@senuka
Jan 24 2016 00:45
@takumar yes that's right
Aleksander Gębicki
@Takumar
Jan 24 2016 00:46
@senuka oh remove that spaces
Secil
@senuka
Jan 24 2016 00:46
@Takumar Oh I'm an idiot, okay now it's done. Thanks a bunch!
CamperBot
@camperbot
Jan 24 2016 00:46
senuka sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 1869 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Jan 24 2016 00:48
@senuka maybe you work too long on the waypoints, do yourself a short pause, it helps when you sit too long on the problem.
Good we completed it :-)
Secil
@senuka
Jan 24 2016 00:49
@Takumar yes you're absolutely right, it's time for a solid break now :smile:
Krista Handel
@meloncatty
Jan 24 2016 00:55
I know that FCC updated their site to automatically start where you left off, it's just kind of annoying because it always starts me off at the 'Getting Started' portion which I completed months ago
it just didn't save it
is there anyway I can keep it from starting me there? because I don't want to go through it again
Yoel Trujillo
@y0el22
Jan 24 2016 00:56
heeelloooo
Yoel Trujillo
@y0el22
Jan 24 2016 01:03
i need help guys
Dora
@DoraEx
Jan 24 2016 01:03
hi, which challenge do you need help with? I'm still in the javscript objects section
Yoel Trujillo
@y0el22
Jan 24 2016 01:04
<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>

<p>Things cats love:</p>
<ul>
  <li>cat nip</li>
  <li>laser pointers</li>
  <li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
  <li>flea treatment</li>
  <li>thunder</li>
  <li>other cats</li>
</ol>
<form action="/submit-cat-photo">
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>
Add a pair of radio buttons to your form. One should have the option of indoor and the other should have the option of outdoor.
is something easy but i dont understand complety
my english doesnt help
anybody?
Dora
@DoraEx
Jan 24 2016 01:06

to add a radio button you put

<label><input type="radio" name="indoor-outdoor"> Indoor</label>

for the second one you would change Indoor to Outdoor

Yoel Trujillo
@y0el22
Jan 24 2016 01:08
but is inside the form tag?
Dora
@DoraEx
Jan 24 2016 01:10
for this challenge it didn't specify but it works either way. if you wanted that information submitted with the rest of the form I image it should be placed within the tags
Yoel Trujillo
@y0el22
Jan 24 2016 01:10
let me see
Jason Lee
@JsonLitz
Jan 24 2016 01:14
 <div class="row">
  <button class="btn btn-block btn-primary">Like</button>
  <button class="btn btn-block btn-info">Info</button>
  <button class="btn btn-block btn-danger">Delete</button>
  </div>
oops
Yoel Trujillo
@y0el22
Jan 24 2016 01:15
thank you @DoraEx !
CamperBot
@camperbot
Jan 24 2016 01:15
y0el22 sends brownie points to @doraex :sparkles: :thumbsup: :sparkles:
:star: 237 | @doraex | http://www.freecodecamp.com/doraex
Dora
@DoraEx
Jan 24 2016 01:15
You're welcome :)
Jason Lee
@JsonLitz
Jan 24 2016 01:17
I'm trying to put my buttons on a Bootstrap grid. Can someone show me what it should look like?
 <div class="row">
  <button class="btn btn-block btn-primary">Like</button>
  <button class="btn btn-block btn-info">Info</button>
  <button class="btn btn-block btn-danger">Delete</button>
  </div>
Franco Zapata
@Francozt01
Jan 24 2016 01:21
@JsonLitz one div with class="row" and inside that div write 2 more divs with the class="col-xs-6"
try that
oh ur buttons
Dora
@DoraEx
Jan 24 2016 01:22
@JsonLitz youll need to add the div tags with class = "col-xs-4" around each button
since there are 3 buttons, 12/3 = 4
Franco Zapata
@Francozt01
Jan 24 2016 01:22
12 grids / 3 buttons 4
do that @JsonLitz
@y0el22 hablame
como estas
Yoel Trujillo
@y0el22
Jan 24 2016 01:24
@Francozt01 what's up men!!
aqui haciendome desarrollador
jajaja
me falta un poquitico pero ahi voy
Franco Zapata
@Francozt01
Jan 24 2016 01:24
jajajaja
todo fino entonces
señor developer
Yoel Trujillo
@y0el22
Jan 24 2016 01:25
si vale, llegue hace poco del trabajo y llegue directo pa' aca
tu como vas en este curso avanzado?
Franco Zapata
@Francozt01
Jan 24 2016 01:25
no
casi intermedio
Yoel Trujillo
@y0el22
Jan 24 2016 01:25
pero estas viendo que? js?
Franco Zapata
@Francozt01
Jan 24 2016 01:25
se
Yoel Trujillo
@y0el22
Jan 24 2016 01:26
pero tu empezaste de 0?
Franco Zapata
@Francozt01
Jan 24 2016 01:26
se
Yoel Trujillo
@y0el22
Jan 24 2016 01:26
o ya sabias toda esta mariquera que estoy haciendo yo?
Franco Zapata
@Francozt01
Jan 24 2016 01:26
lo abandone 3 meses estuve enviciado con un juego online y perdi el camino hacia el exito por un rato xd
ya las sabia
Yoel Trujillo
@y0el22
Jan 24 2016 01:26
jajjajajajajaja
pero igual lo empezaste a hacer desde 0?
aun sabiendolo? o te saltaste todo eso?
Franco Zapata
@Francozt01
Jan 24 2016 01:27
el js es lo medio dificil
si
desde 0
Yoel Trujillo
@y0el22
Jan 24 2016 01:27
bien
pero creo que es lo mas importante el js
Franco Zapata
@Francozt01
Jan 24 2016 01:28
se
Yoel Trujillo
@y0el22
Jan 24 2016 01:28
js es lo mismo que jquery?
Franco Zapata
@Francozt01
Jan 24 2016 01:28
pero para poder trabajar js debes aprender lo demas el html full y el css van de la mano para que la web sea buena
jquery es un framework una libreria hecha a abse de js para facilitar algunas cosas q serian mas ladilla hacerlas en puro js
Yoel Trujillo
@y0el22
Jan 24 2016 01:29
ahhh ok entiendo
marico aqui los trabajos de desarrolladores web los pagan muy brutal
lo minimo minimo que he visto son 1000-1200$ mensuales
Franco Zapata
@Francozt01
Jan 24 2016 01:30
cuanto ganas tu con sueldo minimo
Yoel Trujillo
@y0el22
Jan 24 2016 01:31
aqui el sueldo minimo no lo gana casi nadie
Jason Lee
@JsonLitz
Jan 24 2016 01:31
thank you @Francozt01 @DoraEx
CamperBot
@camperbot
Jan 24 2016 01:31
jsonlitz sends brownie points to @francozt01 and @doraex :sparkles: :thumbsup: :sparkles:
:star: 238 | @doraex | http://www.freecodecamp.com/doraex
:star: 487 | @francozt01 | http://www.freecodecamp.com/francozt01
Yoel Trujillo
@y0el22
Jan 24 2016 01:31
es como 350$
Franco Zapata
@Francozt01
Jan 24 2016 01:31
todos ganan mas q eso
@JsonLitz np :+1:
ahi abri un chat privado para q quede guardado
Yoel Trujillo
@y0el22
Jan 24 2016 01:32
si vale, yo trabajo en una tienda y saco como 500-600 mas o menos
que es un trabajo cualquier vaina
Mehul Kamdar
@mbkamdar
Jan 24 2016 01:53
Why doesn't this work? <button class="btn btn-primary"><i class="fa fa-paper-plane"></i>Submit</button>
nvmd... still needed type="submit"
FreddyAl
@FreddyAl
Jan 24 2016 02:03
how do you prioritze one style over another?
shawnlunny
@shawnlunny
Jan 24 2016 02:03

<form id="cat-photo-app" action="/submit-cat-photo">

but test does not pass. "Give your form element the id of cat-photo-form"

martina carrington
@MartinaCarrington
Jan 24 2016 02:03
ok i am having a little problem
SimonSchruff
@SimonSchruff
Jan 24 2016 02:03
I need to add 2 classes to an image element, but only the one thats directly after img gets recognized. Does somebody know wha t I am doing wrong?
martina carrington
@MartinaCarrington
Jan 24 2016 02:03
h2 {
font-family: <-- Lobster,--> Monospace;
}
i don't know i f i block out
lobster
Eina
@thelittleblacksmith
Jan 24 2016 02:04
@MartinaCarrington that's not the comment format for css
martina carrington
@MartinaCarrington
Jan 24 2016 02:04
ohhh
im sorry
Eina
@thelittleblacksmith
Jan 24 2016 02:04
it's /* Lobster */
SimonSchruff
@SimonSchruff
Jan 24 2016 02:04
Marina its <!--
for html
oh yeah css is already there d
xd
martina carrington
@MartinaCarrington
Jan 24 2016 02:04
boy my face is purple
thanks simons
thanks the littleblack
smith
SimonSchruff
@SimonSchruff
Jan 24 2016 02:05
can somebody help me with adding 2 classes to an image?
shawnlunny
@shawnlunny
Jan 24 2016 02:06
typo on my end
ignore
Eina
@thelittleblacksmith
Jan 24 2016 02:06
@SimonSchruff is this a challenge? (what's the challenge name?) or a link to your code somewhere?
Dora
@DoraEx
Jan 24 2016 02:06
@SimonSchruff you just write the name of both classes with a space inbetween
class = "class-1 class-2"
SimonSchruff
@SimonSchruff
Jan 24 2016 02:07
@thelittleblacksmith the challenge name is Add Borders Around your Elements. I need to resize the picture and give it a border, i can do both separately but if I put both together the second one gets cencelled
Eina
@thelittleblacksmith
Jan 24 2016 02:08
@SimonSchruff do you want to paste your code here?
Franco Zapata
@Francozt01
Jan 24 2016 02:08
@SimonSchruff add !important after
color:red !important;
SimonSchruff
@SimonSchruff
Jan 24 2016 02:08
<img class="thick-green-border" class= "smaller-image" src="https://bit.ly/fcc-relaxing-cat">
this code does not work
Dora
@DoraEx
Jan 24 2016 02:09
@SimonSchruff but them in the same quotes with a space in between
Franco Zapata
@Francozt01
Jan 24 2016 02:09
@SimonSchruff only write one class="1class 2class" just use a space between each class
Elliott McNary
@bighitbiker3
Jan 24 2016 02:09
Anyone on right now familiar with react? :)
SimonSchruff
@SimonSchruff
Jan 24 2016 02:10
ugh. coding makes me feel so stupid every single time :D Thank you a lot guys.
It works now
Franco Zapata
@Francozt01
Jan 24 2016 02:10
@bighitbiker3 go to the main chat there should be experienced developers
Eina
@thelittleblacksmith
Jan 24 2016 02:10
@bighitbiker3 try in the general room, there might be someone there who can help you right now :D
Elliott McNary
@bighitbiker3
Jan 24 2016 02:10
@Francozt01 thanks mate
CamperBot
@camperbot
Jan 24 2016 02:10
bighitbiker3 sends brownie points to @francozt01 :sparkles: :thumbsup: :sparkles:
:star: 488 | @francozt01 | http://www.freecodecamp.com/francozt01
Franco Zapata
@Francozt01
Jan 24 2016 02:11
@bighitbiker3 np bro
lovemyusername
@lovemyusername
Jan 24 2016 02:14
Hi everyone!
Kind of embarrasing. I'm having difficulty embedding the Lobster font into <h2>

My code is below:

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

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


}


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

<h2 class="red-text" font-family: Lobster; >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>

SimonSchruff
@SimonSchruff
Jan 24 2016 02:16
are you supposed to put the font family inline or in the style? it works both, but I cant remember what the tutorial says
lovemyusername
@lovemyusername
Jan 24 2016 02:17
Your h2 element should use the font Lobster.
SimonSchruff
@SimonSchruff
Jan 24 2016 02:17
just checked. put it in the css like this
h2 {
font-family: Lobster, Monospace;
}
Paulo Chaves
@oPauloChaves
Jan 24 2016 02:17
@lovemyusername the tutorial says you have to use in the style {}
SimonSchruff
@SimonSchruff
Jan 24 2016 02:17
yeah.
lovemyusername
@lovemyusername
Jan 24 2016 02:17
Thanks, I will try it now.
Bharatian
@bharatian
Jan 24 2016 02:18
can someone help me with challenge 181
lovemyusername
@lovemyusername
Jan 24 2016 02:18
The only thing is if I put it int he style, the <p> gets affected as well. How would I make it just for <h2>
SimonSchruff
@SimonSchruff
Jan 24 2016 02:19
h2 {
font-family: Lobster, Monospace;
}
thats what you have to put in there
not just font-family: Lobster it has to be in h2 {}
max77p
@max77p
Jan 24 2016 02:20
// Setup
var collection = {
    2548: {
      album: "Slippery When Wet",
      artist: "Bon Jovi",
      tracks: [ 
        "Let It Rock", 
        "You Give Love a Bad Name" 
      ]
    },
    2468: {
      album: "1999",
      artist: "Prince",
      tracks: [ 
        "1999", 
        "Little Red Corvette" 
      ]
    },
    1245: {
      artist: "Robert Palmer",
      tracks: [ ]
    },
    5439: {
      album: "ABBA Gold"
    }
};
// Keep a copy of the collection for tests
var collectionCopy = JSON.parse(JSON.stringify(collection));

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

// Alter values below to test your code
update(5439, "artist", "ABBA");
what am i doing wrong here?
any help please?
SimonSchruff
@SimonSchruff
Jan 24 2016 02:20
sorry thats out of my league :D
Mike
@mike259
Jan 24 2016 02:21
@max77p are you getting anything to pass?
max77p
@max77p
Jan 24 2016 02:22
@mike259 getting this error
cannot set property 'artist' to undefined
of undefined*
Eina
@thelittleblacksmith
Jan 24 2016 02:23
@max77p just a note, id is a variable with number values, so you should use bracket notation, also especially since ID is a variable and there's no property called 'ID' in each object
lovemyusername
@lovemyusername
Jan 24 2016 02:23
@SimonSchruff it worked, thank you so much!
CamperBot
@camperbot
Jan 24 2016 02:23
lovemyusername sends brownie points to @simonschruff :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for simonschruff
SimonSchruff
@SimonSchruff
Jan 24 2016 02:25
@lovemyusername You are very welcome. Glad I could help!
Makesi Hamilton
@kesi2k
Jan 24 2016 02:25
Hi all. Begging for assistance here
max77p
@max77p
Jan 24 2016 02:25
anyone free to help?
Mike
@mike259
Jan 24 2016 02:26
@max77p did you try changing id to bracket notation like @thelittleblacksmith suggested
Makesi Hamilton
@kesi2k
Jan 24 2016 02:26

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

var myArr;

var newArray;

newArray = arr.push(item);

myArr = newArray.shift();

return myArr; // Change this line
}

```

Eina
@thelittleblacksmith
Jan 24 2016 02:26
Oh oops I tagged the wrong person, sorry @mike259!
@max77p :point_up: January 23, 2016 6:23 PM
max77p
@max77p
Jan 24 2016 02:28
@thelittleblacksmith so like this?
collection[id].prop=value;
Eina
@thelittleblacksmith
Jan 24 2016 02:28
even prop should be in square brackets because it's a variable
max77p
@max77p
Jan 24 2016 02:29
hmm maybe i should read up on when to use bracket and when not to..seems to be my problem right now\
@thelittleblacksmith else if(value!==""&&prop=="tracks")
{
collection[id][prop]push(value);
}
is this part correct?
seems like i am doing the push wrong
Eina
@thelittleblacksmith
Jan 24 2016 02:30
you do need a dot before push since it's a method :D
DJ Bondoc
@DJBondoc
Jan 24 2016 02:30
Need assistance. Can't seem to grasp this exercise
var myMusic = [
  {
    "artist": "Billy Joel",
    "title": "Piano Man",
    "release_year": 1993,
    "formats": [ 
      "CS", 
      "8T", 
      "LP" ],
    "gold": true
  }
  // Add record here
  [
    {
      "artist": "Sam Smith",
      "title": "In the Lonely Hour",
      "release_year": 2014,
      "formats": [
        "CS",
        "8T",
        "LP"]
  }
  ]
];
max77p
@max77p
Jan 24 2016 02:31
@thelittleblacksmith ahh perfect thank you!
CamperBot
@camperbot
Jan 24 2016 02:31
max77p sends brownie points to @thelittleblacksmith :sparkles: :thumbsup: :sparkles:
:star: 312 | @thelittleblacksmith | http://www.freecodecamp.com/thelittleblacksmith
Eina
@thelittleblacksmith
Jan 24 2016 02:32
@max77p dot notation is great if you know the specific property you're trying to access. if it's a number, a string with weird characters in them (spaces, etc), or if it's a variable with dynamic values, brackets are your bffs
@DJBondoc have you tried copy/pasting that last bit with the gold:true into your second object? Also, remove the square brace around the second object. You just need a comma in between. So: var myMusic = [{object 1},{object 2}]
max77p
@max77p
Jan 24 2016 02:33
@thelittleblacksmith you say dot notation is great if its a number..then why in this for id we use bracket?
Eina
@thelittleblacksmith
Jan 24 2016 02:34

@max77p

dot notation is great if you know the specific property you're trying to access.

i forgot to mention that dot notation really only works for 'proper' strings oops
Mike
@mike259
Jan 24 2016 02:35
@DJBondoc whats the error your getting?
DJ Bondoc
@DJBondoc
Jan 24 2016 02:35
@thelittleblacksmith saved my ass. thank you! I should definitely read more "Note
You will need a comma in between objects in JSON objects with more than one object in the array."
@mike259 i was trying to make two separate object arrays.
thanks @thelittleblacksmith
CamperBot
@camperbot
Jan 24 2016 02:36
djbondoc sends brownie points to @thelittleblacksmith :sparkles: :thumbsup: :sparkles:
:star: 313 | @thelittleblacksmith | http://www.freecodecamp.com/thelittleblacksmith
Makesi Hamilton
@kesi2k
Jan 24 2016 02:38

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

var myArr;

var newArray;

newArray = arr.push(item);

myArr = newArray.shift();

return myArr; // Change this line
}

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

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

hi, anybody willing to point out why this does not work?
Dora
@DoraEx
Jan 24 2016 02:40
@kesi2k why did you declare myArr and newArray in the function?
jpg8127
@jpg8127
Jan 24 2016 02:41
@bharatian what is the name of it
Makesi Hamilton
@kesi2k
Jan 24 2016 02:41
So that i could manipulate them
with the .shift and .push commands
Dora
@DoraEx
Jan 24 2016 02:42
@kesi2k you can manipulate them without it
Makesi Hamilton
@kesi2k
Jan 24 2016 02:43
oh!...ill go work on that
Dora
@DoraEx
Jan 24 2016 02:43
arr.push(item) and arr.shift() works
also make sure to read all the instructions :)
DBerk
@theberknologist
Jan 24 2016 02:44
I'm stuck can someone help me?
Eina
@thelittleblacksmith
Jan 24 2016 02:44
what are you stuck on? @theberknologist
DBerk
@theberknologist
Jan 24 2016 02:44
i'm new and just beginning so don't laugh at my elementary question, but i can't seem to change my color:
<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>
I used the <div class=""> and </div> what did i do wrong?
Franco Zapata
@Francozt01
Jan 24 2016 02:45
@theberknologist u want to change the color of ur div
DBerk
@theberknologist
Jan 24 2016 02:45
it won't change the color
yes @Francozt01
Eina
@thelittleblacksmith
Jan 24 2016 02:45
no worries, what's the challenge name? @theberknologist
DBerk
@theberknologist
Jan 24 2016 02:45
Div Element Challenge #42
Franco Zapata
@Francozt01
Jan 24 2016 02:45
if u want to change ur div color there u have to write style="background:gray;"
DBerk
@theberknologist
Jan 24 2016 02:46
ok the lesson seems to have it the other way
Makesi Hamilton
@kesi2k
Jan 24 2016 02:46
@DoraEx Thanks. I thought I did. My bad
CamperBot
@camperbot
Jan 24 2016 02:46
kesi2k sends brownie points to @doraex :sparkles: :thumbsup: :sparkles:
:star: 239 | @doraex | http://www.freecodecamp.com/doraex
Franco Zapata
@Francozt01
Jan 24 2016 02:46
@theberknologist also to make it easier u can go to youtube and search for a css basic tutorial
DBerk
@theberknologist
Jan 24 2016 02:46
cool, thx @Francozt01
CamperBot
@camperbot
Jan 24 2016 02:46
theberknologist sends brownie points to @francozt01 :sparkles: :thumbsup: :sparkles:
:star: 489 | @francozt01 | http://www.freecodecamp.com/francozt01
Franco Zapata
@Francozt01
Jan 24 2016 02:47
@theberknologist np :+1: if u have a question come here and campers will help you
DBerk
@theberknologist
Jan 24 2016 02:47
i see! you guys are awesome and thankfully, not judgmental to someone new like me
Franco Zapata
@Francozt01
Jan 24 2016 02:48
we are a community :D we help each other
Eina
@thelittleblacksmith
Jan 24 2016 02:48
just remember to always mention the challenge name if you're asking haha, i skipped most of the html/css so i'm not overly familiar with those challenges
DBerk
@theberknologist
Jan 24 2016 02:48
@Francozt01 😇
thanks @thelittleblacksmith
CamperBot
@camperbot
Jan 24 2016 02:48
theberknologist sends brownie points to @thelittleblacksmith :sparkles: :thumbsup: :sparkles:
:star: 314 | @thelittleblacksmith | http://www.freecodecamp.com/thelittleblacksmith
Eric Whittaker Jr
@ericwhittakerjr
Jan 24 2016 02:58
bonefire Find the Longest Word in a String
bonfire Find the Longest Word in a String
CamperBot
@camperbot
Jan 24 2016 02:58

:fire:Bonfire: Find the Longest Word in a String :link:

function findLongestWord(str) {
  return str.length;
}

findLongestWord('The quick brown fox jumped over the lazy dog');

Return the length of the longest word in the provided sentence.

more info:  bf details | bf links | hint

Eric Whittaker Jr
@ericwhittakerjr
Jan 24 2016 02:58
hint
CamperBot
@camperbot
Jan 24 2016 02:58
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
max77p
@max77p
Jan 24 2016 03:00
hey guys for the profile lookup
would i be using a for loop?
or is there a way to automatically check if the name matches firstname?
Ali Amirazizi
@alivera
Jan 24 2016 03:01
Hi guys can someone help me with the pause button for the pomodor project: http://codepen.io/alivera/pen/JGpvRx
Dora
@DoraEx
Jan 24 2016 03:01
@max77p yes you'll need a for loop
DevPoetsSociety
@DevPoetsSociety
Jan 24 2016 03:10
@alivera Try setting the timer to its own function. E.g., function startTimer()
max77p
@max77p
Jan 24 2016 03:13
is the first part to profile lookup correct?
function lookUp(firstName, prop){
// Only change code below this line
  for{var i=0;i<contacts.length;i++}{
    if(contacts[i].firstName==firstName&&contacts[i][prop]==prop){
      return contacts[i][prop];
    }
  }
i know its not complete, but can someone comment on my first part of the code?
Manish Giri
@Manish-Giri
Jan 24 2016 03:16
@max77p you should separate the two checks
DevPoetsSociety
@DevPoetsSociety
Jan 24 2016 03:16
@max77p That one references the hasProperty, doesn't it?
Manish Giri
@Manish-Giri
Jan 24 2016 03:17
@max77p first check if contacts[i].firstName==firstName, then if it does, check if prop exists and use hasOwnProperty() for that
max77p
@max77p
Jan 24 2016 03:18

@Manish-Giri The function should check if firstName is an actual contact's firstName and the given property (prop) is a property of that contact.

If both are true, then return the "value" of that property.

thats the first part of the question
shouldn't that mean it should be checked together?
DevPoetsSociety
@DevPoetsSociety
Jan 24 2016 03:18
Nope
Could be a valid firstName and not have the property.
max77p
@max77p
Jan 24 2016 03:18
@DevPoetsSociety ohh ok
DevPoetsSociety
@DevPoetsSociety
Jan 24 2016 03:19
It's good practice. Check for each part of the assumption.
Manish Giri
@Manish-Giri
Jan 24 2016 03:20
@max77p what if you get a matching first name but you dont have the property mentioned as prop? Notice the two different type of return statements mentioned, that should give you a hint
@max77p as far as I remember, one return says “no such contact” and the other return says “no such property” or something similar
max77p
@max77p
Jan 24 2016 03:29
@Manish-Giri fixed it a little bit can you critique this?
Mendel Lisbon
@mlisbon
Jan 24 2016 03:30
how do i add font size class to this?
max77p
@max77p
Jan 24 2016 03:30

function lookUp(firstName, prop){
// Only change code below this line
  for(var i=0;i<contacts.length;i++){
    if(contacts[i].firstName!==firstName){
      return "No such contact";
    }
    else if(contacts[i].hasOwnProperty(prop)===false){
      return "No such property";
    }
    else {
      return contacts[i][prop];
    }
  }

// Only change code above this line
}
Mendel Lisbon
@mlisbon
Jan 24 2016 03:30

<style>
.red-text {
color: red;
}
</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>

Manish Giri
@Manish-Giri
Jan 24 2016 03:31
@max77p is it passing the tests?
max77p
@max77p
Jan 24 2016 03:31
@Manish-Giri not fully, i think its something to do with the for loop?
Manish Giri
@Manish-Giri
Jan 24 2016 03:31
@max77p your ideas are correct, but it’s just the wrong order
@max77p try to follow these steps instead
Dora
@DoraEx
Jan 24 2016 03:32
@max77p if the firstname isn't it the first contact but the second, it would still return "no such contact" because it's inside the for loop
max77p
@max77p
Jan 24 2016 03:33
@DoraEx right so at end it would iterate to next one right?
next contact list that is
Dora
@DoraEx
Jan 24 2016 03:33
return ends the loop
max77p
@max77p
Jan 24 2016 03:33
@DoraEx ohh right
Manish Giri
@Manish-Giri
Jan 24 2016 03:34
@max77p
1.Loop
  a.Inside the loop- check if firstname is a match?
  b.If yes-check if property is a match
  ----c.If yes - return the property
  d.If property no match
   ——e. returnno property”
2.Now you’re outside the loop and you haven’t found a matching property, so returnno contact”
Dora
@DoraEx
Jan 24 2016 03:34
@max77p try testing to see if its true instead of false
Manish Giri
@Manish-Giri
Jan 24 2016 03:35
@max77p instead of testing for false, test if the property exists, i.e.: if it’s true
if(contacts[i].hasOwnProperty([prop]))
jpg8127
@jpg8127
Jan 24 2016 03:36
@mlisbon you still need help?
max77p
@max77p
Jan 24 2016 03:40
@Manish-Giri i fixed it a bit
function lookUp(firstName, prop){
// Only change code below this line
  for(var i=0;i<contacts.length;i++){
    if(contacts[i].firstName==firstName)
    {
      if(contacts[i].hasOwnProperty(prop))
      {
      return contacts[i][prop];
    }
    else if(contacts[i].firstName!==firstName)
    {
      return "No such contact";
    }
    else if(contacts[i].hasOwnProperty(prop)===false)
    {
      return "No such property";
    }
    }

  }
but there is one error
Bob", "number" should return "No such contact"
that part is not working
@Manish-Giri figured it out it was becuase the no contact wasn't outside the for loop
why is that?
Manish Giri
@Manish-Giri
Jan 24 2016 03:43
@max77p because unless you loop through the whole thing and find out that no matching contacts exist
@max77p you cant return “no such contact”, so it’s outside the loop
Dora
@DoraEx
Jan 24 2016 03:46
it seems like that would work for the Bob and not work for the others since the return "no such contact" is still in the for loop... hmm
max77p
@max77p
Jan 24 2016 03:48
@Manish-Giri ok one more question
if(contacts[i].firstName==firstName)
        {
          if(contacts[i].hasOwnProperty(prop))
in this case, why are we putting it like this?
whats the difference between this and just using a &&?
Jason Lee
@JsonLitz
Jan 24 2016 03:49
Trying to add a comment, can someone tell me why this is incorrect?
<!-- Only change code above this line
-->
splucena
@splucena
Jan 24 2016 03:50
@JsonLitz what language?
Marc Fogleman
@MFogleman
Jan 24 2016 03:50
I just did Stylize Stories on Camper News, anyone mind looking at it ? Im pretty sure theres a more elegant way to do my solution, and im open to suggestions and pointers
http://codepen.io/CangosGit/pen/BjYxmp
It looks like it doesnt run in the chat room, but should work on code pen
Manish Giri
@Manish-Giri
Jan 24 2016 03:50
@max77p if you put both together with a &&, how will you look for the case where a contact’s firstname matches but it doesnt have the given property
splucena
@splucena
Jan 24 2016 03:51
thats for html /**/ for css or javascript you can use // single line comment for js
max77p
@max77p
Jan 24 2016 03:51
@Manish-Giri ohh ic ok thank you!
CamperBot
@camperbot
Jan 24 2016 03:51
max77p sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star: 600 | @manish-giri | http://www.freecodecamp.com/manish-giri
DBerk
@theberknologist
Jan 24 2016 03:59
Can anyone help with Inheriting Styles from the Body Element? #53

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

<h1>Hello World</h1>

Jason Lee
@JsonLitz
Jan 24 2016 03:59
@splucena HTML
Dora
@DoraEx
Jan 24 2016 04:01
@theberknologist try removing all the {} except the first and last one so theyre all included under body
Jason Lee
@JsonLitz
Jan 24 2016 04:02

@theberknologist You need a "body {}" for both color:green; and font-family" like

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

oops

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

Dora
@DoraEx
Jan 24 2016 04:04
they can all be under one tag
<style>
  body {
    background-color: black;
    color:green;
    font-family: monospace;
  }

</style>
orelovo
@orelovo
Jan 24 2016 04:04
Can someone help me with making my first chrome extension? I am having trouble getting my popup.html to communicate with a content_script. I've been struggling with this for the past few hours.
DBerk
@theberknologist
Jan 24 2016 04:04
oooo
thanks @DoraEx and @JsonLitz - appreciate the help! that wasn't obvious to me.
CamperBot
@camperbot
Jan 24 2016 04:05
theberknologist sends brownie points to @doraex and @jsonlitz :sparkles: :thumbsup: :sparkles:
:star: 241 | @doraex | http://www.freecodecamp.com/doraex
:star: 105 | @jsonlitz | http://www.freecodecamp.com/jsonlitz
Jason Lee
@JsonLitz
Jan 24 2016 04:06
@DoraEx @theberknologist Thanks for pointing that out. You are absolutely correct
CamperBot
@camperbot
Jan 24 2016 04:06
:star: 55 | @theberknologist | http://www.freecodecamp.com/theberknologist
jsonlitz sends brownie points to @doraex and @theberknologist :sparkles: :thumbsup: :sparkles:
:star: 242 | @doraex | http://www.freecodecamp.com/doraex
Jason Lee
@JsonLitz
Jan 24 2016 04:07

Challenge calls for adding comment to start of HTML with the following message

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

Won't let me move on. Anyone know why?

Utkarsh Bhimte
@Utkarshbhimte
Jan 24 2016 04:07
function add(a,b) {

    if(isNaN(a)===true){
      return undefined;
    } else if(!isNaN(b)){
      return function add(c){
        return a+c;
      };
    }else return a+b;
}
add(2,3);
Why is this not working?
Dora
@DoraEx
Jan 24 2016 04:09
@JsonLitz Did you add your own comment above the line?
splucena
@splucena
Jan 24 2016 04:09
@JsonLitz can you show your complete code
Jason Lee
@JsonLitz
Jan 24 2016 04:09

@DoraEx No @splucena ```html
<!-- 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>

```

Ken Murphy
@ken-murphy
Jan 24 2016 04:09
@Utkarshbhimte add requires two arguments. You have code (add(c)) with only one argument.
William
@derpmanwilliam
Jan 24 2016 04:10
hey
Ken Murphy
@ken-murphy
Jan 24 2016 04:10
yo
William
@derpmanwilliam
Jan 24 2016 04:10
one sec
on Learn how Script Tags and Document Ready Work
Ken Murphy
@ken-murphy
Jan 24 2016 04:10
@Utkarshbhimte never mind. i read it wrong
William
@derpmanwilliam
Jan 24 2016 04:11
how do you create a script element making sure it is valid?
Dora
@DoraEx
Jan 24 2016 04:11
@JsonLitz can you tell us the name of the Challenge?
Jason Lee
@JsonLitz
Jan 24 2016 04:11
@DoraEx http://www.freecodecamp.com/challenges/use-comments-to-clarify-code#?solution=%3C!--%20Only%20change%20code%20above%20this%20line.%0A--%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
William
@derpmanwilliam
Jan 24 2016 04:11
OH WTF
O.O
Dora
@DoraEx
Jan 24 2016 04:11
aggh
William
@derpmanwilliam
Jan 24 2016 04:12
NO GO TO MAP COPY AND PASTE ONE THAT IS NOT CHECKED AFTER ONE THAT IS
DEAR GOD
Ken Murphy
@ken-murphy
Jan 24 2016 04:12
@Utkarshbhimte You are calling a function (add) from inside the same function? I am not sure that is allowed.
@JsonLitz Fail.
William
@derpmanwilliam
Jan 24 2016 04:12
sorry for caps
Ken Murphy
@ken-murphy
Jan 24 2016 04:12
@JsonLitz Just type the waypoint name.
William
@derpmanwilliam
Jan 24 2016 04:13
my way easier ;-;
anyway
Ken Murphy
@ken-murphy
Jan 24 2016 04:13
@derpmanwilliam hehe
Dora
@DoraEx
Jan 24 2016 04:13
@JsonLitz you have a space after the period. I think that's what's causing it
William
@derpmanwilliam
Jan 24 2016 04:13
:P
Jason Lee
@JsonLitz
Jan 24 2016 04:13
@ken-murphy "Use comments to clarify code"
William
@derpmanwilliam
Jan 24 2016 04:13
can someone help?
me
Ken Murphy
@ken-murphy
Jan 24 2016 04:13
@JsonLitz ???
William
@derpmanwilliam
Jan 24 2016 04:13
validate my script element
?
Jason Lee
@JsonLitz
Jan 24 2016 04:14
Sweet thanks! @DoraEx
CamperBot
@camperbot
Jan 24 2016 04:14
jsonlitz sends brownie points to @doraex :sparkles: :thumbsup: :sparkles:
:warning: jsonlitz already gave doraex points
splucena
@splucena
Jan 24 2016 04:14
@JsonLitz should be in one line your --> somehow started on the next line. I rerun your code went ok
William
@derpmanwilliam
Jan 24 2016 04:14
o.o
Dora
@DoraEx
Jan 24 2016 04:14
@JsonLitz yeah you have to be very careful and type exactly what it says with, No extra spaces or periods.
William
@derpmanwilliam
Jan 24 2016 04:14
yea in html will ruin alot
but anyone wanna help me?
:/
Eina
@thelittleblacksmith
Jan 24 2016 04:15
@derpmanwilliam what challenge you on?
Ken Murphy
@ken-murphy
Jan 24 2016 04:15
@derpmanwilliam What is the issue?
William
@derpmanwilliam
Jan 24 2016 04:15
I said it
o.o
I said it the first time you asked ken
want me to repost?
?
Ken Murphy
@ken-murphy
Jan 24 2016 04:16
how do you create a script element making sure it is valid? What is a script element?
William
@derpmanwilliam
Jan 24 2016 04:16
-.-
<script>
Ken Murphy
@ken-murphy
Jan 24 2016 04:16
Can you elaborate?
William
@derpmanwilliam
Jan 24 2016 04:16
that is a script element
XD
Ken Murphy
@ken-murphy
Jan 24 2016 04:17
Have you done the javascript waypoints yet?
William
@derpmanwilliam
Jan 24 2016 04:17
-.- I am beginning jquery
dear god man
Dora
@DoraEx
Jan 24 2016 04:17
lol
William
@derpmanwilliam
Jan 24 2016 04:18
I just need to validate my script element
Ken Murphy
@ken-murphy
Jan 24 2016 04:18
So you are working on: Learn how Script Tags and Document Ready Work
William
@derpmanwilliam
Jan 24 2016 04:18
yes
-.-
I thought I said this already lol
Eina
@thelittleblacksmith
Jan 24 2016 04:19
@derpmanwilliam dude just do open and close script: <script></script>
William
@derpmanwilliam
Jan 24 2016 04:19
i did....
Ken Murphy
@ken-murphy
Jan 24 2016 04:19
@thelittleblacksmith What he said.
Eina
@thelittleblacksmith
Jan 24 2016 04:19
what error is it giving you?
William
@derpmanwilliam
Jan 24 2016 04:19
one sec let me show you
splucena
@splucena
Jan 24 2016 04:19
@derpmanwilliam <script type="text/javascript"></script>
William
@derpmanwilliam
Jan 24 2016 04:19
<script $(document).ready(function() {});>  
</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>
Eina
@thelittleblacksmith
Jan 24 2016 04:19
yo
you have to close it right after script
and then you add the jquery stuff after >
William
@derpmanwilliam
Jan 24 2016 04:20
but it said add in element
splucena
@splucena
Jan 24 2016 04:20
@derpmanwilliam should be inside <scipt>$(document).ready(function() {});</script>
William
@derpmanwilliam
Jan 24 2016 04:20
XD
Eina
@thelittleblacksmith
Jan 24 2016 04:20
it's exactly like the style tag
Ken Murphy
@ken-murphy
Jan 24 2016 04:20

@derpmanwilliam ```html

<script> $(document).ready(function() {
});
</script>
```

William
@derpmanwilliam
Jan 24 2016 04:20
okay
Ken Murphy
@ken-murphy
Jan 24 2016 04:20
```html
<script> $(document).ready(function() {
        });
</script>
William
@derpmanwilliam
Jan 24 2016 04:20
thanks
lol easy fix
Ken Murphy
@ken-murphy
Jan 24 2016 04:21
@derpmanwilliam We don't usually just give out answers, but the first one is always free... :)
derpmanwilliam This is the part where you click my name and thank me....
blob
@derpmanwilliam Also this is the part where we dance.
Dsands78
@Dsands78
Jan 24 2016 04:40
var myStr; "I am a \"double quoted\" string inside \"double quotes\"";
What's wrong with this code I keep getting an error message
Expected an assignment or function call and instead saw an expression
Dora
@DoraEx
Jan 24 2016 04:42
@Dsands78 how do you assign a value to a variable?
Popsiclestand
@Popsiclestand
Jan 24 2016 04:43
Yah your assignment operator is wrong @Dsands78
Jamela
@Jamela08
Jan 24 2016 04:43
i think you lack one "
at the first part
Dsands78
@Dsands78
Jan 24 2016 04:47
The = sign ... Thank you ... The assignment started with the semicolon and said to change the code after it ... I didn't even think to change itb
Dora
@DoraEx
Jan 24 2016 04:54
Gnite ya'll and happy coding!
Dsands78
@Dsands78
Jan 24 2016 04:55
Good night
Baaliisu
@Baaliisu
Jan 24 2016 04:57
hi, i need help
can someone please help me,
Eina
@thelittleblacksmith
Jan 24 2016 04:58
sure what's up
Baaliisu
@Baaliisu
Jan 24 2016 04:58
i don't know what I am doing wrong
in the "Creating a Form Element" it says "Nest your text field in a form element. Add the action="/submit-cat-photo" attribute to this form element."
and so I have....
<form action="/submit-cat-photo">
<input type="text" placeholder="cat photo URL" action="/submit-cat-photo">
</form>
but it's not working
in the bottom where it shows the checkmarks for things I've done and x's for things I haven't, it says I've nested correctly and made sure my form element has a closing tag, but my form doesn't have the action attribute
but I'm copying and pasting the action attribute it says to have
Eina
@thelittleblacksmith
Jan 24 2016 05:00
@Baaliisu remove the action in that input
it should only go on the form tag
Baaliisu
@Baaliisu
Jan 24 2016 05:00
oh no
I didn't even realize I had that there
huh
thanks dude!
Eina
@thelittleblacksmith
Jan 24 2016 05:01
sure
Baaliisu
@Baaliisu
Jan 24 2016 05:01
I got it to work. Much appreciated.
Wes Kay
@weskay
Jan 24 2016 05:02
I'm getting an error with this code:
 if (str === str.toLowerCase().reverse.replace(/\s/, '')){
    return true;
  }
Says it can't read undefined in replace()
The intent is to remove any spaces in the passed in string
Thoughts?
YouMustLearn
@YouMustLearn
Jan 24 2016 05:06
.reverse
cannelflow
@cannelflow
Jan 24 2016 05:06
@weskay can you give your whole code?
YouMustLearn
@YouMustLearn
Jan 24 2016 05:06
.reverse is not a fxn
cannelflow
@cannelflow
Jan 24 2016 05:07
@YouMustLearn is right should be reverse()
@YouMustLearn :+1:
@weskay
Wes Kay
@weskay
Jan 24 2016 05:07
 if (str === str.toLowerCase().reverse.replace(/\s/, '')){
    return true;
  }
YouMustLearn
@YouMustLearn
Jan 24 2016 05:07
strings don't have reverse method built in
cannelflow
@cannelflow
Jan 24 2016 05:08
@weskay reverse()
Wes Kay
@weskay
Jan 24 2016 05:08
how does one reverse a string?
the parentheses spit an error
YouMustLearn
@YouMustLearn
Jan 24 2016 05:08
only arrays have the reverse() method
u can make the string an array then call reverse, or just reverse the string manually yourself
Bill
@kirah1314
Jan 24 2016 05:09
@weskay 2 challenges before this was a challenge to reverse a string
cannelflow
@cannelflow
Jan 24 2016 05:09
This message was deleted
Wes Kay
@weskay
Jan 24 2016 05:09
toArray?
cannelflow
@cannelflow
Jan 24 2016 05:09
This message was deleted
@weskay 1.remove regex if any 2.make it lowercase 3.then split it 4.then reverse it 5.then join it now compare 5 &1
Wes Kay
@weskay
Jan 24 2016 05:13
right on
chaitanya ashtekar
@chaitanyaashtekar
Jan 24 2016 05:21
find ceasar
CamperBot
@camperbot
Jan 24 2016 05:21
find ceasar
nothing found
chaitanya ashtekar
@chaitanyaashtekar
Jan 24 2016 05:21
find cipher
CamperBot
@camperbot
Jan 24 2016 05:21

find cipher

:zero: bonfire caesars cipher

cannelflow
@cannelflow
Jan 24 2016 05:29
@weskay worked?
Dan
@dee-one
Jan 24 2016 05:44
<style>
h2 {color: blue;}
</style>
text wont turn blue
help please?
CamperBot
@camperbot
Jan 24 2016 05:45

:point_right: bonfire no repeats please [wiki]

Problem Explanation:

  • This task requires us to look at each possible permutation of a string. This is best done using a recursion function. Being able to build a function which collects all permutations of a string is a common interview question, so there is no shortage of tutorials out there on how to do this, in many different code languages.
  • This task can still be daunting even after watching a tutorial. You will want to send each new use of the function 3 inputs: 1. a new string (or character array) that is being built, 2. a position in your new string that's going to be filled next, and 3. an idea of what characters (more specifically positions) from the original string have yet to be used. The pseudo code will look something like this:

    ```
    var str = ???;
    perm(current position in original string, what's been used in original string, current string build thus far){
    if(current string is finished) {
    print current string;
    }else{
    for(var i = 0; i < str.length; i++) {

    if(str[i] has not been used) {
      put str[i] into the current position;
      mark str[i] as used
      perm(current position in original string, what's been used in original string, current string build thus far)
      unmark str[i] as used because another branch in the tree for i + 1 will still likely use it;
    }

    }
    }
    }
    :pencil: read more about bonfire no repeats please on the FCC Wiki

Idrus82
@Idrus82
Jan 24 2016 05:46
@dee-one , are the target tag is H2?
Dan
@dee-one
Jan 24 2016 05:47
yeah
Nikolajs Korolkovs
@NickEU
Jan 24 2016 05:47
@dee-one and you need to make it blue? not some other color?
Dan
@dee-one
Jan 24 2016 05:47
yeah. it is supposed to say "CATPHOTOAPP" in blue
i have this:
Nikolajs Korolkovs
@NickEU
Jan 24 2016 05:48
@dee-one can you read again please? :P the description :P
Dan
@dee-one
Jan 24 2016 05:48
<style>
h2 {color: blue;}
</style>
CatPhotoApp
Nikolajs Korolkovs
@NickEU
Jan 24 2016 05:48
wait what
@dee-one is this all the code u've got? where's your h2 tag?
Dan
@dee-one
Jan 24 2016 05:49
h2 {color: blue;}
Nikolajs Korolkovs
@NickEU
Jan 24 2016 05:49
this is where u're setting a style for h2
Idrus82
@Idrus82
Jan 24 2016 05:49
you need to put the h2 tag <h2>Cat PhotoApp</h2>
Dan
@dee-one
Jan 24 2016 05:50
omg thanks, the example omitted that part!
Idrus82
@Idrus82
Jan 24 2016 05:51
great
Hexadame
@Hexadame
Jan 24 2016 05:56
hello all amreally stuck here --> <form action="/submit-cat-photo" id = "cat-photo-form"> I created a #cat-photo-element in the <style> section...how can I add the cat-photo-element in the id? Cannot seem to find a way to change the background color attached to the id element??
hellomichiyabu
@hellomichiyabu
Jan 24 2016 05:56

<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-background {
background-color: gray;
}

.green-background {
background-color: green;
}
</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" id="cat-photo-form" class="green-background">
<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>
</div>

Use an ID Attribute to Style an Element, I can't go more.
Hexadame
@Hexadame
Jan 24 2016 05:57
the thing is that in the instructions is indicates that I cannot use a class or style attribute in the id section?
in the form I mean...sorry ><
Eina
@thelittleblacksmith
Jan 24 2016 05:59
give me a sec to check it out @Hexadame :)
Nikolajs Korolkovs
@NickEU
Jan 24 2016 05:59
@Hexadame Give your form element the id of cat-photo-form. then style that id
Vince Aggrippino
@VAggrippino
Jan 24 2016 06:01
@hellomichiyabu You need to reference the ID you added to your form in your <style> section like this:
#cat-photo-form {
  background-color: green;
}
Nikolajs Korolkovs
@NickEU
Jan 24 2016 06:01
Do not give your form any class or style attributes. <---- what they meant by that is you can't use inline styling in your form tag and you can't assign a class to it, you have to style it using an id... the example you see in a description is just an example, you do know you can choose whatever name you want for your ID, right? :D in this case tests require you to give it the ID of cat-photo-form
@Hexadame
Hexadame
@Hexadame
Jan 24 2016 06:02
@NickEU hmm...I see what you are saying and understand it but for some reason I am having still having trouble with the idea of styling the id...:s
Nikolajs Korolkovs
@NickEU
Jan 24 2016 06:03
@Hexadame can you elaborate?
Vince Aggrippino
@VAggrippino
Jan 24 2016 06:04
@Hexadame It means you can't use the style="" property on the element itself. You have to put the style in the <style> block at the top.
hellomichiyabu
@hellomichiyabu
Jan 24 2016 06:05
I find the answer, forget my previous post.
Hexadame
@Hexadame
Jan 24 2016 06:05
@NickEU and @Ghodmode thank you...I think I need to do a little more research
Nikolajs Korolkovs
@NickEU
Jan 24 2016 06:06
@Hexadame your problem is with "why" not "how" ?
Hexadame
@Hexadame
Jan 24 2016 06:11
Ok so I understand that the id can select a certain element that can then point to a style...my issue is that in this part of the code <form action="/submit-cat-photo" id = "cat-photo-form"> I am having trouble adding the second id that is referencing the style element coded in the <style> block
Vince Aggrippino
@VAggrippino
Jan 24 2016 06:11

@Hexadame One reason is to keep code nicely organized. With the styling in a separate place from the content, you only have to look in one place to find out why any particular element looks like that. If we used style="" properties on the elements, we'd have to search through the HTML code every we wanted to change the look of an element. This makes even more sense when your CSS and HTML are kept in separate files.

Another reason is to reuse styles. You might want several elements to look the same, so you could give them a class and just style the class in the CSS. This one doesn't really apply to IDs, though, since each ID has to be unique in an HTML document.

@Hexadame You can't have a second ID on an element. You have to reference the cat-photo-form id in the <style> block.
Will G
@willgorham
Jan 24 2016 06:13
@Hexadame Just to elaborate: In the top part of your code between the <style> tag is where you define your styles, for a class with the dot (.) and id with the hash (#) and an element with that element's name (e.g. h2). In the bottom part of your code (not in the <style> tags) you then need to apply these styles, using class="" or id="" (general element styles already apply because the elements already have their names). So you want to define your id style up top (e.g. #cat {}) and then apply it where you want the style to show up (e.g. <form id='cat'>)
Oops, back to back long explanations, haha
Hexadame
@Hexadame
Jan 24 2016 06:15
<style>
#cat-photo-element{
background-color:green;
}
.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-background {
background-color: gray;
}
</style>
Vince Aggrippino
@VAggrippino
Jan 24 2016 06:16
@Hexadame You have #cat-photo-element where I think you want #cat-photo-form. And doesn't that lesson ask you to give it a gray background, not a green one?
Hexadame
@Hexadame
Jan 24 2016 06:17
the gray background was used in the<div> section earlier where it talked about what cats like
Nikolajs Korolkovs
@NickEU
Jan 24 2016 06:18
@Hexadame test cases tell you explicitly what you should do ;) they're the final say so if you pass or not
Hexadame
@Hexadame
Jan 24 2016 06:19
wow....@Ghodmode...yes I completely messed up, I used the wrong label THANK YOU
Will G
@willgorham
Jan 24 2016 06:19
sometimes it's something as simple as a typo
Hexadame
@Hexadame
Jan 24 2016 06:19
too much wine...lol
Nikolajs Korolkovs
@NickEU
Jan 24 2016 06:19
nah, too much copy-paste
Will G
@willgorham
Jan 24 2016 06:19
(usually it's something as simple as a typo)
Hexadame
@Hexadame
Jan 24 2016 06:20
@NickEU I don't copy paste :)
Nikolajs Korolkovs
@NickEU
Jan 24 2016 06:20
@Hexadame yeah, u're right
the spacing is not the same as in the example ;)
@Hexadame well, good job, glad you found the error :P
Hexadame
@Hexadame
Jan 24 2016 06:21
@NickEU thanks
CamperBot
@camperbot
Jan 24 2016 06:21
hexadame sends brownie points to @nickeu :sparkles: :thumbsup: :sparkles:
:star: 356 | @nickeu | http://www.freecodecamp.com/nickeu
aneesh987
@aneesh987
Jan 24 2016 06:22

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

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

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

<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
<a href="http://freecatphotoapp.com>cat photos.</a>

the mission is to Create an a element that links to http://freecatphotoapp.com and has "cat photos" as its anchor text.
Will G
@willgorham
Jan 24 2016 06:23
@aneesh987 you're missing the closing quote (") after your link URL
href="stuff"
Nikolajs Korolkovs
@NickEU
Jan 24 2016 06:23
Mission accomplished! :clap:
Will G
@willgorham
Jan 24 2016 06:23
:sparkles: :rocket:
aneesh987
@aneesh987
Jan 24 2016 06:24
oh yeah thanks! @willgorham
CamperBot
@camperbot
Jan 24 2016 06:24
aneesh987 sends brownie points to @willgorham :sparkles: :thumbsup: :sparkles:
:star: 417 | @willgorham | http://www.freecodecamp.com/willgorham
Will G
@willgorham
Jan 24 2016 06:24
no worries :+1:
Sebastien
@LoganSeries
Jan 24 2016 06:37
Good evening/early morning/late night, I am having some issues nesting the text input within a form element

Currently have my input as:

<input type="text" placeholder="cat photo URL">

Nikolajs Korolkovs
@NickEU
Jan 24 2016 06:43
@LoganSeries Hello! what's the problem?
Edward Hong
@edward-hong
Jan 24 2016 06:44
Hi I was working on the "Sum all Odd Fibonacci Numbers" algorithm and when I ran my code, the page froze. Now every time I go back to the page, it freezes before I can do anything. Is there a way I can delete the code I've written for the challenge?
Cristián Berríos
@crisberrios
Jan 24 2016 06:46
try to run the page on a different browser, also try relogging/clearing the cache
Pranjal Singh
@pr4njal
Jan 24 2016 06:46
There is a question.... In Instruction ##For example, you may add border-radius to either the .thick-green-border class or .smaller-image class.## How can border-radius affect border property when it is written in other class....
rahulcode22
@rahulcode22
Jan 24 2016 06:46
Help me out guys! having problem with this
CamperBot
@camperbot
Jan 24 2016 06:46
no wiki entry for: me out guys having problem with this
Edward Hong
@edward-hong
Jan 24 2016 06:47
cool thanks @NickEU
CamperBot
@camperbot
Jan 24 2016 06:47
edward-hong sends brownie points to @nickeu :sparkles: :thumbsup: :sparkles:
:star: 359 | @nickeu | http://www.freecodecamp.com/nickeu
Sebastien
@LoganSeries
Jan 24 2016 06:50

Hey @NickEU I need to nest the following into a form element:

<input type="text" placeholder="cat photo URL">

I have been working at it but ultimately the nesting isn’t working.
Will G
@willgorham
Jan 24 2016 06:51
hey @rahulcode22 , add the h4s outside the wells, but inside the col- divs
Nikolajs Korolkovs
@NickEU
Jan 24 2016 06:52
@LoganSeries should work, are you sure your form tags are in order?
sanwalatta
@sanwalatta
Jan 24 2016 06:52
how can we write multiple classes to an element
Sebastien
@LoganSeries
Jan 24 2016 06:53
<form <input type="text" placeholder="cat photo URL"></form> @NickEU is giving me errors on the nesting
Nikolajs Korolkovs
@NickEU
Jan 24 2016 06:54
@LoganSeries forgot the > in the opening form tag
Sebastien
@LoganSeries
Jan 24 2016 06:54
I just figured it out...
I’m embarrassed now
<form action="/submit-cat-photo"> <input type="text" placeholder="cat photo URL"></form>
I got it, thank @NickEU
CamperBot
@camperbot
Jan 24 2016 06:55
loganseries sends brownie points to @nickeu :sparkles: :thumbsup: :sparkles:
:star: 360 | @nickeu | http://www.freecodecamp.com/nickeu
Nikolajs Korolkovs
@NickEU
Jan 24 2016 06:56
@LoganSeries np, pay more attention to little things ;)
Mohamad Hadyan Zon
@hadyanzon
Jan 24 2016 06:58

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

<div class="container-fluid">
<h2 class="red-text text-center">CatPhotoApp</h2>

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

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

<img src="http://bit.ly/fcc-running-cats" class="img-responsive">
<div class= row>
<div class="col-xs-4">
<button class="btn btn-block btn-primary">Like</button>
<button class="btn btn-block btn-info">Info</button>
<button class="btn btn-block btn-danger">Delete</button>
</div>
</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>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>

help me what use col-xs-4.?
CamperBot
@camperbot
Jan 24 2016 06:59
no wiki entry for: me what use col-xs-4
Sebastien
@LoganSeries
Jan 24 2016 06:59
haha pro tip taken @NickEU
gazzer82
@gazzer82
Jan 24 2016 07:01
Woo, people please try to use back ticks around you code, it's messing with my melon :)
rahulcode22
@rahulcode22
Jan 24 2016 07:05
I am stuck!http://www.freecodecamp.com/challenges/target-html-elements-with-selectors-using-jquery#?solution=fccss%0A%20%20%24(document).ready(function()%20%7B%0A%20%20%20%20%24(%22button%22).addclass(%22animated%20bounce%22)%3B%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
tridling
@tridling
Jan 24 2016 07:07
Can someone remind me how to do a button in bootstrap? Is it just a div class?
rahulcode22
@rahulcode22
Jan 24 2016 07:08
@tridling add just <button class="btn btn-primary">
tommy
@tommygebru
Jan 24 2016 07:09
@rahulcode22 check your method :smile: addclass should be in camelCase
tridling
@tridling
Jan 24 2016 07:11
@rahulcode22 Thank you! One more question: how do I send brownie points in the chat? :)
CamperBot
@camperbot
Jan 24 2016 07:11
:warning: could not find receiver for rahulcode22
tridling sends brownie points to @rahulcode22 :sparkles: :thumbsup: :sparkles:
tridling
@tridling
Jan 24 2016 07:11
Nevermind!
rahulcode22
@rahulcode22
Jan 24 2016 07:12
@tridling :)
@tommygebru still can't get the right code
tommy
@tommygebru
Jan 24 2016 07:14
@rahulcode22 your code passed fine, just change addclass to addClass this is what is meant by camelCase :smile_cat:
jlcsuf22
@jlcsuf22
Jan 24 2016 07:14
HELP!!!!!!
CamperBot
@camperbot
Jan 24 2016 07:14

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

Basic Commands:

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

:speech_balloon: meet CamperBot in this room!

:pencil: read more about camperbot on the FCC Wiki

jlcsuf22
@jlcsuf22
Jan 24 2016 07:15
how to use CSS class to style an element?

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

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

Pranjal Singh
@pr4njal
Jan 24 2016 07:16
above your code.... write <style> .red-text {color:red;}</style>
tommy
@tommygebru
Jan 24 2016 07:16
@jlcsuf22 need more to go on please share your link & title of the challenge :smile:
@pr4njal :+1:
Pranjal Singh
@pr4njal
Jan 24 2016 07:17
Thanks u tommy...
tommy
@tommygebru
Jan 24 2016 07:17
@pr4njal no worries
jlcsuf22
@jlcsuf22
Jan 24 2016 07:20

like this? <style>.red-text{color:red;}CatPhotoApp</style>

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

nevermind. i got it
Pranjal Singh
@pr4njal
Jan 24 2016 07:21

@jlcsuf22 No... just on the top of everything... like this.. <style>.red-text{color:red;}</style>CatPhotoApp

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

@ jlcsuf22 good...
jlcsuf22
@jlcsuf22
Jan 24 2016 07:21
thank you @pr4njal and @tommygebru
CamperBot
@camperbot
Jan 24 2016 07:21
jlcsuf22 sends brownie points to @pr4njal and @tommygebru :sparkles: :thumbsup: :sparkles:
:star: 483 | @tommygebru | http://www.freecodecamp.com/tommygebru
:star: 29 | @pr4njal | http://www.freecodecamp.com/pr4njal
tommy
@tommygebru
Jan 24 2016 07:22
@jlcsuf22 nice :+1:
AustinCodez19
@AustinCodez19
Jan 24 2016 07:40
FreeCodeCamp is amazing wish i had found it sooner :smile:
Pranjal Singh
@pr4njal
Jan 24 2016 07:41
@AustinCodez19 me too
@AustinCodez19 learnt many thing from codecademy but they leave you with little knowledge.. This website freecodecamp gives you fullstack knowledge
AustinCodez19
@AustinCodez19
Jan 24 2016 07:49
@pr4njal i know ive been using codecademy for awhile and ive felt ive learned very little with it. i just found this one earlier and it seems very promising :smile:
Pranjal Singh
@pr4njal
Jan 24 2016 07:51
@AustinCodez19 I was giving my exams when I found this website... but cant wait to use it..so joined in exams time... now i m free... lets see what its gonna bring to us
Edward Hong
@edward-hong
Jan 24 2016 07:58
Hi I'm having trouble with the "Sum All Odd Fibonacci Numbers" algorithm, here's my code:
function sumFibs(num) {
  var arrFibOdd = [];
  for (var i=0; i < num; i++) {
    if (i < 2) {
      arrFibOdd = arrFibOdd.push(1);
    } else if (i > 1) {
      var currentFib = arrFibOdd[i-1] + arrFibOdd[i-2];
      if (currentFib % 2 === 1) {
        arrFibOdd = arrFibOdd.pusn(currentFib);
      }
    }
  }
  return arrFibOdd.reduce(function(a,b){return a+b;});
}

sumFibs(4);
it's says arrFibOdd.push is not a function
sanwalatta
@sanwalatta
Jan 24 2016 08:01
how can a Element use anchor text
Mukul
@mukulramchandani
Jan 24 2016 08:05
@edward-hong you have inserted "pusn".
Edward Hong
@edward-hong
Jan 24 2016 08:07
@mukulcode thanks for pointing that out, I've changed it but it still shows arrFibOdd.push is not a function. Maybe I'm using array.push method wrong somehow
CamperBot
@camperbot
Jan 24 2016 08:07
edward-hong sends brownie points to @mukulcode :sparkles: :thumbsup: :sparkles:
:star: 183 | @mukulcode | http://www.freecodecamp.com/mukulcode
tommy
@tommygebru
Jan 24 2016 08:09
@edward-hong Have you checked out the HelpJavascript room it is for more complicate challenges like Intermediate Algorithm Scripting :smiley_cat:
https://gitter.im/orgs/FreeCodeCamp/rooms/
Edward Hong
@edward-hong
Jan 24 2016 08:10
ok
Cristián Berríos
@crisberrios
Jan 24 2016 08:10
ok time to sleep. Good night!
Mukul
@mukulramchandani
Jan 24 2016 08:10
@crisberrios Good night
tommy
@tommygebru
Jan 24 2016 08:10
@edward-hong good look :thumbsup:
@sanwalatta <a>text for anchor</a> :smile_cat:
cannelflow
@cannelflow
Jan 24 2016 08:12
hello @tommygebru
tommy
@tommygebru
Jan 24 2016 08:12
@cannelflow hey ! how is the flow?
cannelflow
@cannelflow
Jan 24 2016 08:13
what about you
?
stuck with pomodoro for a while seems today i can finish it @tommygebru
eating brownie :P @tommygebru
tommy
@tommygebru
Jan 24 2016 08:15
@cannelflow idk i seem to be reaching a funk ... im actually starting to use up those recommended hours :smile_cat:
mohamed khatab
@mohamedkhatab
Jan 24 2016 08:15
hello
tommy
@tommygebru
Jan 24 2016 08:16
@cannelflow thanks for......
CamperBot
@camperbot
Jan 24 2016 08:16
tommygebru sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:star: 517 | @cannelflow | http://www.freecodecamp.com/cannelflow
tommy
@tommygebru
Jan 24 2016 08:16
@mohamedkhatab welcome
@cannelflow theres always tomorrow if you put your best foot down today !
cannelflow
@cannelflow
Jan 24 2016 08:17
@tommygebru indeed
mohamed khatab
@mohamedkhatab
Jan 24 2016 08:17
I am Egyptian and I'm a new member here
tommy
@tommygebru
Jan 24 2016 08:18
@cannelflow looks at time realizes its tomorrow !
cannelflow
@cannelflow
Jan 24 2016 08:19
@tommygebru yes i know you can finish everything before recommended hour
tommy
@tommygebru
Jan 24 2016 08:19
@mohamedkhatab hello noobie hows it going
cannelflow
@cannelflow
Jan 24 2016 08:19
@tommygebru :smile:
everything is going good for me but projects are taking time i guess @tommygebru
tommy
@tommygebru
Jan 24 2016 08:20
hey guys is there a lot going on during 12-8am at night ?
@cannelflow you bet there is a lot of tinkering going on remember to fork your work or you might lose it on codepen !
cannelflow
@cannelflow
Jan 24 2016 08:24
@tommygebru yes now i started using github
@tommygebru what time it for you now
tommy
@tommygebru
Jan 24 2016 08:24

@cannelflow

@tommygebru yes i know you can finish everything before recommended hour

its funny i thought it would take at most 3 days for the Bonfires... but it has been 7 and im rounding the corner now

cannelflow
@cannelflow
Jan 24 2016 08:25
@tommygebru which bonfire are you doing ?
tommy
@tommygebru
Jan 24 2016 08:26
@cannelflow nearly 12:30 , I haven't used github any any seen other than making requests and reporting bugs and probably downloaded an app/extension before...
@cannelflow at the moment it is Mutations
Nikulio
@Nikulio
Jan 24 2016 08:26
hey guys
tommy
@tommygebru
Jan 24 2016 08:26
@Nikulio welcome
Nikulio
@Nikulio
Jan 24 2016 08:27
where can i find author text?should i create it by myself?
cannelflow
@cannelflow
Jan 24 2016 08:27
@Nikulio hello
?
tommy
@tommygebru
Jan 24 2016 08:27
@Nikulio what is Author Text?
Nikulio
@Nikulio
Jan 24 2016 08:27
auchor*
cannelflow
@cannelflow
Jan 24 2016 08:27
@Nikulio anchor
Nikulio
@Nikulio
Jan 24 2016 08:27
<a> tags
cannelflow
@cannelflow
Jan 24 2016 08:27
?
Nikulio
@Nikulio
Jan 24 2016 08:27
yep
cannelflow
@cannelflow
Jan 24 2016 08:27
@Nikulio what you want to do
tommy
@tommygebru
Jan 24 2016 08:28
@Nikulio anchor text is simply the a tags for your links,
<a>here is my text for my anchor tags, click on me!</a>
Nikulio
@Nikulio
Jan 24 2016 08:29
Oh,sweet
Thanks)
tommy
@tommygebru
Jan 24 2016 08:29
@Nikulio thanks
CamperBot
@camperbot
Jan 24 2016 08:29
tommygebru sends brownie points to @nikulio :sparkles: :thumbsup: :sparkles:
:star: 27 | @nikulio | http://www.freecodecamp.com/nikulio
cannelflow
@cannelflow
Jan 24 2016 08:30
:p
@Nikulio perhaps you can send brownie to @tommygebru
Nikulio
@Nikulio
Jan 24 2016 08:31
Your a element should have the anchor text of "cat photos".
<a href = 'http://freecatphotoapp.com'>Cat photos</a>
It makes me mad(
cannelflow
@cannelflow
Jan 24 2016 08:33
@Nikulio you have Cat you need cat
Pranjal Singh
@pr4njal
Jan 24 2016 08:33
its "cat photos" not "Cat photos"
tommy
@tommygebru
Jan 24 2016 08:34
@Nikulio yeah man those are two separate cats :smile_cat: :smiley_cat:
Nikulio
@Nikulio
Jan 24 2016 08:34
Already tried small 'c'(
is it important where to put this tag?
below h2?
or p?
tommy
@tommygebru
Jan 24 2016 08:35
@Nikulio waiiiiittttt a minute !
@Nikulio are you using an example link or the actual link in the editor
cannelflow
@cannelflow
Jan 24 2016 08:35
@Nikulio show your code
Nikulio
@Nikulio
Jan 24 2016 08:36
<a href = 'http://freecatphotoapp.com'>cat photos</a>
tommy
@tommygebru
Jan 24 2016 08:36
@cannelflow :+1: always show your code or title&link of the challenge
Sachin Mour
@sachinmour
Jan 24 2016 08:36
function permAlone(str) {
  if (!str.length) return 1;
  var cnt = 0, lmt = str.length, i = 0, ch = str[i];
  for (; i < lmt; ch = str[++i]) {
    if (ch !== arguments[1]) 
      cnt += permAlone(str.slice(0, i)+str.slice(i+1), ch);
  }
  return cnt;
}
Nikulio
@Nikulio
Jan 24 2016 08:36
i am gonna cry
cannelflow
@cannelflow
Jan 24 2016 08:37
which exercise ?
Sachin Mour
@sachinmour
Jan 24 2016 08:37
Hey guys this is a solution from No repeats Please
Nikulio
@Nikulio
Jan 24 2016 08:37
Link to External Pages with Anchor Elements
Sachin Mour
@sachinmour
Jan 24 2016 08:37
I have done it but i found this solution to be incredibly fast but i can't seem to understand it.. can you help
cannelflow
@cannelflow
Jan 24 2016 08:37
@Nikulio show your whole code
@tommygebru yes it is good practicse i guess
Nikulio
@Nikulio
Jan 24 2016 08:38

<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>
<a href = 'http://freecatphotoapp.com'>cat photos</a>

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

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

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

Pranjal Singh
@pr4njal
Jan 24 2016 08:39
@Nikulio try this.... <a href="http://freecatphotoapp.com"> cat photos </a>
tommy
@tommygebru
Jan 24 2016 08:39
@sachinmour hey buddy that is Adavanced stuff :smile: you have been upgraded to the HelpJavascript room
https://gitter.im/orgs/FreeCodeCamp/rooms/
cannelflow
@cannelflow
Jan 24 2016 08:39
@Nikulio code is good try refreshing page
tommy
@tommygebru
Jan 24 2016 08:40
@cannelflow i second that :thumbsup:
@pr4njal the quotations shouldnt make a difference :smile:
Nikulio
@Nikulio
Jan 24 2016 08:41
@cannelflow yep now works
thanks
Pranjal Singh
@pr4njal
Jan 24 2016 08:42
@tommygebru i thought that can be a bug... :smile:
cannelflow
@cannelflow
Jan 24 2016 08:42
@tommygebru seems compare bot has gone where is my brownie :p
@Nikulio
Nikulio
@Nikulio
Jan 24 2016 08:43
what does brownie means?
mean*
Brian
@sludge256
Jan 24 2016 08:44
@cannelflow it's because he said
thanks in a separate message
explain brownie
CamperBot
@camperbot
Jan 24 2016 08:44

:point_right: brownie points [wiki]

The number beside your picture on Free Code Camp tells you how many Brownie Points you have.

A user profile picture next to a with Brownie Points score

There are three ways you can get Brownie Points:

  1. Complete challenges - you get one point per challenge you complete
  2. Post relevant links on Camper News - you get 1 point for posting a link, and another point for each upvote your link gets
  3. Help other campers in chat - each time you help another camper and they thank you (by typing "thanks @yourname"), you will get a point

Brownie Points help you look like the kind of person who codes a lot, shares relevant links, and helps people.

They also add to your Streak.
:pencil: read more about brownie points on the FCC Wiki

cannelflow
@cannelflow
Jan 24 2016 08:45
@sludge256 :+1:
Nikulio
@Nikulio
Jan 24 2016 08:46
thanks @cannelflow
CamperBot
@camperbot
Jan 24 2016 08:46
nikulio sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:star: 518 | @cannelflow | http://www.freecodecamp.com/cannelflow
Nikulio
@Nikulio
Jan 24 2016 08:46
thanks @tommygebru
CamperBot
@camperbot
Jan 24 2016 08:46
nikulio sends brownie points to @tommygebru :sparkles: :thumbsup: :sparkles:
:star: 485 | @tommygebru | http://www.freecodecamp.com/tommygebru
Nikulio
@Nikulio
Jan 24 2016 08:46
oh
it isnt hard
cannelflow
@cannelflow
Jan 24 2016 08:47
@Nikulio :+1:
Nikulio
@Nikulio
Jan 24 2016 08:50
maybe
someone can explain how recursion works?
i hate it(
but it looks like usefull
n9exorcist
@n9exorcist
Jan 24 2016 08:52
<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="#"><img src="http://www.catphotoapp.com">cat photos</a></p>

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

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
whats the problem here : Nest the existing img element within an a element
<p> click here for <a href="#"><img src="http://www.catphotoapp.com">cat photos</a></p>
Here is where I face the problem in "Turn an Image into a Link" code
Brian
@sludge256
Jan 24 2016 08:55
you're supposed to turn the second img into a link I believe
n9exorcist
@n9exorcist
Jan 24 2016 08:56
@sludge256 I have only one image here.
Brian
@sludge256
Jan 24 2016 08:56
<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">
sorry I shouldnt have said second
n9exorcist
@n9exorcist
Jan 24 2016 08:57
@sludge256 let me try with it
tommy
@tommygebru
Jan 24 2016 09:00
@sludge256 @n9exorcist if there is an example image in your introduction read carefully... you shouldn't use it :smile:
n9exorcist
@n9exorcist
Jan 24 2016 09:03
@tommygebru @sludge256 anyways changing the second image and also by replacing the example image doesnt help me <a href="#"><img src="http://www.catphotoapp.com"></a>
<a href="#"><img src="http://www.catphotoapp.com"></a>
<a href="#"><img src="http://www.catphotoapp.com"></a>
Harsh Sikka
@harshsikka123
Jan 24 2016 09:05
This JSON stuff is confusing the hell outta me
Tautvydas Banys
@TautBanys
Jan 24 2016 09:05

Hey, maybe someone could help me with this? It's sais a, b and c is not defined? how should I change it? function myTest(val) {
var answer = "";
// Only change code below this line
switch (val) {
case a:
answer = "apple";
break;
case b:
answer = "bird";
break;
case c:
answer = "cat";
break;
default:
answer = "stuff";

}

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

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

Harsh Sikka
@harshsikka123
Jan 24 2016 09:06
maybe try turning a, b and c into strings?
like "a", "b", and "c"
Brian
@sludge256
Jan 24 2016 09:06
@n9exorcist you should reset your code. you're supposed to be making the relaxing cat img a link
Glitch-Byte
@Glitch-Byte
Jan 24 2016 09:06
Harsh is right
Tautvydas Banys
@TautBanys
Jan 24 2016 09:06
case "a":
answer = "apple";
break;
case "b":
answer = "bird";
break;
case "c":
answer = "cat";
break;
default:
answer = "stuff";
Harsh Sikka
@harshsikka123
Jan 24 2016 09:06
yeah
Tautvydas Banys
@TautBanys
Jan 24 2016 09:07
it's not working like thos
Brian
@sludge256
Jan 24 2016 09:07
@TautBanys change your test to "a"
n9exorcist
@n9exorcist
Jan 24 2016 09:07
@sludge256 you mean the first image?
Glitch-Byte
@Glitch-Byte
Jan 24 2016 09:08
myTest("a")
Brian
@sludge256
Jan 24 2016 09:08
@n9exorcist there's only one image
press the reset button
Harsh Sikka
@harshsikka123
Jan 24 2016 09:08
make sure to to change your test
oops someone said that
@TautBanys did it work?
Tautvydas Banys
@TautBanys
Jan 24 2016 09:09
@sludge256 @Glitch-Byte @harshsikka123 Thanks guys - myTest("a") worked. Sorry for the image. Is it a shortcut to paste image here?
CamperBot
@camperbot
Jan 24 2016 09:09
tautbanys sends brownie points to @sludge256 and @glitch-byte and @harshsikka123 :sparkles: :thumbsup: :sparkles:
:star: 271 | @harshsikka123 | http://www.freecodecamp.com/harshsikka123
:star: 1023 | @sludge256 | http://www.freecodecamp.com/sludge256
:star: 7 | @glitch-byte | http://www.freecodecamp.com/glitch-byte
Brian
@sludge256
Jan 24 2016 09:09
what image?
Code red
@code132
Jan 24 2016 09:09
sludge
Give the text input in your form the class form-control.
what is this asking
Tautvydas Banys
@TautBanys
Jan 24 2016 09:10
image of code
Harsh Sikka
@harshsikka123
Jan 24 2016 09:10
@TautBanys there is a compose mode
Brian
@sludge256
Jan 24 2016 09:10
when you highlight your code
use the copy pretty button
it will auto format for chat
then just come here and paste
Harsh Sikka
@harshsikka123
Jan 24 2016 09:10
or that
Tautvydas Banys
@TautBanys
Jan 24 2016 09:10
oh Thanks :)
Harsh Sikka
@harshsikka123
Jan 24 2016 09:10
that works better! haha
I think thats new
Brian
@sludge256
Jan 24 2016 09:10
@code132 class="stuff" for <input>
Tautvydas Banys
@TautBanys
Jan 24 2016 09:10
function myTest(val) {
  var answer = "";
  // Only change code below this line



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

// Change this value to test
myTest(1);
jus teting :)
n9exorcist
@n9exorcist
Jan 24 2016 09:11

@sludge256 ```html

<p> click here for <a href = "#"><img src=http://www.catphotoapp.com>cat photos</a></p>
```

I still cldnt figure out where the error is
Brian
@sludge256
Jan 24 2016 09:11
leave that line alone after you reset it
it's not an image
sanwalatta
@sanwalatta
Jan 24 2016 09:12
how can we write view more in p element with a space after it
Glitch-Byte
@Glitch-Byte
Jan 24 2016 09:12
Yes
Brian
@sludge256
Jan 24 2016 09:12
<p>View more <a>...
just press space after more
Glitch-Byte
@Glitch-Byte
Jan 24 2016 09:13
catphotoapp.com
is it a photo?
Brian
@sludge256
Jan 24 2016 09:14
@n9exorcist here is the code without any changes except for comments
<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p> <!-- leave this line alone -->

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

<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>
n9exorcist
@n9exorcist
Jan 24 2016 09:14
@tommygebru @sludge256 Thanks guys. I finally figured it out html <a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>
CamperBot
@camperbot
Jan 24 2016 09:14
n9exorcist sends brownie points to @tommygebru and @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 486 | @tommygebru | http://www.freecodecamp.com/tommygebru
:star: 1024 | @sludge256 | http://www.freecodecamp.com/sludge256
Code red
@code132
Jan 24 2016 09:15
 <form  action="submit-cat-photo">
    <div class="row">
      <div class="col-xs-6">
        <label><input type="radio" name="indoor-outdoor"> Indoor</label>
      </div>
      <div class="col-xs-6">
        <label><input type="radio" name="indoor-outdoor"> Outdoor</label>
      </div>
    </div>
    <div class="row">
      <div class="col-xs-4">
        <label><input type="checkbox" name="personality"> Loving</label>
      </div>
      <div class="col-xs-4">
        <label><input type="checkbox" name="personality"> Lazy</label>
      </div>
      <div class="col-xs-4">
        <label><input type="checkbox" name="personality"> Crazy</label>
      </div>
    </div>
    <input type="text" placeholder="cat photo URL" required>
    <button class="btn btn-primary" type="submit"><i class="fa fa-paper-plane">Submit</i></button>
  </form>
Give the text input in your form the class form-control.
i dont knowwhat its asking
Brian
@sludge256
Jan 24 2016 09:16
<input type="text" placeholder="cat photo URL" required> <!-- give this the class -->
Code red
@code132
Jan 24 2016 09:17
what does it do
what is it for
i got the answer but it changes nothing
Vince Aggrippino
@VAggrippino
Jan 24 2016 09:17
@code132 The text input it's talking about is an <input> tag with the property type="text". It's asking you to add a class, so you need to add another property to this tag that says class="form-control"
Harsh Sikka
@harshsikka123
Jan 24 2016 09:18

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

Brian
@sludge256
Jan 24 2016 09:19
the class just applies CSS to your text input element
Vince Aggrippino
@VAggrippino
Jan 24 2016 09:19
@code132 The class="" property gives you a way to describe the element in CSS, in the <style> block. So later it's going to tell you to do something with .form-control inside of the <style> block.
Harsh Sikka
@harshsikka123
Jan 24 2016 09:19
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
Code red
@code132
Jan 24 2016 09:20
sounds good
thanks
Harsh Sikka
@harshsikka123
Jan 24 2016 09:20
hey can someone help me out? I'm trying to retrieve pine, but apparently I'm doing something wrong
Brian
@sludge256
Jan 24 2016 09:20
so
myPlants is an array
Harsh Sikka
@harshsikka123
Jan 24 2016 09:20
OH
Brian
@sludge256
Jan 24 2016 09:21
many people mess up from the example :P
also trees is not a property name
Harsh Sikka
@harshsikka123
Jan 24 2016 09:23
thanks! @sludge256 You da man
CamperBot
@camperbot
Jan 24 2016 09:23
harshsikka123 sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 1025 | @sludge256 | http://www.freecodecamp.com/sludge256
Vince Aggrippino
@VAggrippino
Jan 24 2016 09:29

@harshsikka123 I haven't seen that lesson yet, so this is out of context, but I think you need to get to the value pine like this:

var secondTree = myPlants[1].list[1];

It's because myPlants is an array and the trees are the second element. The list of trees is an array, too, and pine is the second value. All arrays start counting at 0.

Code red
@code132
Jan 24 2016 09:29
camperbot sends brownie points to @sludge256
how do oyu do it lol
Brian
@sludge256
Jan 24 2016 09:29
say thanks and their name
Code red
@code132
Jan 24 2016 09:30
thanks sludge256
whtt?
thanks @sludge256
CamperBot
@camperbot
Jan 24 2016 09:30
code132 sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 1026 | @sludge256 | http://www.freecodecamp.com/sludge256
Code red
@code132
Jan 24 2016 09:30
humm doesnt work
thanks @camperbot
CamperBot
@camperbot
Jan 24 2016 09:30
code132 sends brownie points to @camperbot :sparkles: :thumbsup: :sparkles:
:star: 1010 | @camperbot | http://www.freecodecamp.com/camperbot
Vince Aggrippino
@VAggrippino
Jan 24 2016 09:30
You can't do it programmatically. You have to physically send brownies to sludge256, FedEx Next Day Air :grin:
Harsh Sikka
@harshsikka123
Jan 24 2016 09:30
thanks @Ghodmode , I realized that earlier. I think the reason I was confused was all the different data structure formats melted my feeble unexperienced mind
CamperBot
@camperbot
Jan 24 2016 09:30
harshsikka123 sends brownie points to @ghodmode :sparkles: :thumbsup: :sparkles:
:star: 92 | @ghodmode | http://www.freecodecamp.com/ghodmode
Code red
@code132
Jan 24 2016 09:30
thanks @camperbot
CamperBot
@camperbot
Jan 24 2016 09:30
code132 sends brownie points to @camperbot :sparkles: :thumbsup: :sparkles:
:warning: code132 already gave camperbot points
Vince Aggrippino
@VAggrippino
Jan 24 2016 09:31
Or you chould just type a message with "thanks @username" in it :)
CamperBot
@camperbot
Jan 24 2016 09:31
ghodmode sends brownie points to @username :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for username
Code red
@code132
Jan 24 2016 09:31
what does that brownies do
Harsh Sikka
@harshsikka123
Jan 24 2016 09:31
Its just a positive reinforcement technique, from what I understand
Code red
@code132
Jan 24 2016 09:31
thanks @harshsikka123
CamperBot
@camperbot
Jan 24 2016 09:31
code132 sends brownie points to @harshsikka123 :sparkles: :thumbsup: :sparkles:
:star: 275 | @harshsikka123 | http://www.freecodecamp.com/harshsikka123
Vince Aggrippino
@VAggrippino
Jan 24 2016 09:31
hehe @code132, they're pretty meaningless but you get some if someone t hanks you :)
Harsh Sikka
@harshsikka123
Jan 24 2016 09:32
thanks @code132
CamperBot
@camperbot
Jan 24 2016 09:32
harshsikka123 sends brownie points to @code132 :sparkles: :thumbsup: :sparkles:
:star: 92 | @code132 | http://www.freecodecamp.com/code132
Vince Aggrippino
@VAggrippino
Jan 24 2016 09:32
You also get them for completing lessons.
Code red
@code132
Jan 24 2016 09:32
ohhhh
Vince Aggrippino
@VAggrippino
Jan 24 2016 09:32
I'd rather have actual brownies :)
Code red
@code132
Jan 24 2016 09:32
you can get those points from being thanks?
Kevin Naegele
@codennn
Jan 24 2016 09:32
Can I get som help on this one 171
var myList = [];

myList.push(["Chocolate Bar", 42, "Naegele", 42, 13, 30], ["gross", 91]);
myList should be an array
The first elements in each of your sub-arrays must all be strings
The second elements in each of your sub-arrays must all be numbers
You must have at least 5 items in your list
I am not passing the at least 5 items
Code red
@code132
Jan 24 2016 09:33
thanks @codennn
CamperBot
@camperbot
Jan 24 2016 09:33
code132 sends brownie points to @codennn :sparkles: :thumbsup: :sparkles:
:star: 172 | @codennn | http://www.freecodecamp.com/codennn
Code red
@code132
Jan 24 2016 09:33
is camperbot admin
cannelflow
@cannelflow
Jan 24 2016 09:34
@code132 no is is bot
Mukul
@mukulramchandani
Jan 24 2016 09:34
@code132 no its a bot
Code red
@code132
Jan 24 2016 09:34
cool lol
thanks me i want browniesss
cannelflow
@cannelflow
Jan 24 2016 09:34
@code132 :smile:
Kevin Naegele
@codennn
Jan 24 2016 09:34
Ha!
Code red
@code132
Jan 24 2016 09:34
its almost 100
Mukul
@mukulramchandani
Jan 24 2016 09:34
explain brownie
CamperBot
@camperbot
Jan 24 2016 09:34

:point_right: brownie points [wiki]

The number beside your picture on Free Code Camp tells you how many Brownie Points you have.

A user profile picture next to a with Brownie Points score

There are three ways you can get Brownie Points:

  1. Complete challenges - you get one point per challenge you complete
  2. Post relevant links on Camper News - you get 1 point for posting a link, and another point for each upvote your link gets
  3. Help other campers in chat - each time you help another camper and they thank you (by typing "thanks @yourname"), you will get a point

Brownie Points help you look like the kind of person who codes a lot, shares relevant links, and helps people.

They also add to your Streak.
:pencil: read more about brownie points on the FCC Wiki

Code red
@code132
Jan 24 2016 09:34
lol
Vince Aggrippino
@VAggrippino
Jan 24 2016 09:35
@codennn Your array has two elements. The first one is ["Chocolate Bar", 42, "Naegele", 42, 13, 30] and your second one is ["gross", 91]
Mukul
@mukulramchandani
Jan 24 2016 09:35
@code132 this is how the bot works..
Tautvydas Banys
@TautBanys
Jan 24 2016 09:35
// Setup
function abTest(a, b) {
  // Only change code below this line

  if (a < 0 || b < 0) {
    return "undefined";
  } 

  // Only change code above this line

  return Math.round(Math.pow(Math.sqrt(a) + Math.sqrt(b), 2));  
}

// Change values below to test your code
abTest(2,-2);
Code red
@code132
Jan 24 2016 09:35
how does bot know that we are talking about brownies
cannelflow
@cannelflow
Jan 24 2016 09:35
@TautBanys return undefined not "undefined"
Mukul
@mukulramchandani
Jan 24 2016 09:35
its programmed
Vince Aggrippino
@VAggrippino
Jan 24 2016 09:35
@codennn I think you need to push `["Chocolate Bar", 42, "Naegele", 42, 13, 30, ["gross", 91]]
Tautvydas Banys
@TautBanys
Jan 24 2016 09:36
@cannelflow tanks :)
CamperBot
@camperbot
Jan 24 2016 09:36
tautbanys sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:star: 524 | @cannelflow | http://www.freecodecamp.com/cannelflow
Ayorinde
@Ayorinde
Jan 24 2016 09:36
@TautBanys return undefined; and not "undefined";
Kevin Naegele
@codennn
Jan 24 2016 09:36
@Ghodmode Thanks!
CamperBot
@camperbot
Jan 24 2016 09:36
codennn sends brownie points to @ghodmode :sparkles: :thumbsup: :sparkles:
:star: 93 | @ghodmode | http://www.freecodecamp.com/ghodmode
Eran Finkle
@finklez
Jan 24 2016 09:37
@TautBanys if you just return w/o value it's already undefined (as typeof == undefined)
Vince Aggrippino
@VAggrippino
Jan 24 2016 09:38
@TautBanys when you quote "undefined" like that, it's just a string with the word undefined. If you use undefined without the quotes, it's the reserved Javascript value that means nothing.
Tautvydas Banys
@TautBanys
Jan 24 2016 09:39
@finklez @Ghodmode understood :)
@finklez @Ghodmode thanks
CamperBot
@camperbot
Jan 24 2016 09:39
tautbanys sends brownie points to @finklez and @ghodmode :sparkles: :thumbsup: :sparkles:
:star: 94 | @ghodmode | http://www.freecodecamp.com/ghodmode
:star: 282 | @finklez | http://www.freecodecamp.com/finklez
Code red
@code132
Jan 24 2016 09:56
hey guys
hello world
CamperBot
@camperbot
Jan 24 2016 09:56

welcome to FreeCodeCamp @code132!

Ayorinde
@Ayorinde
Jan 24 2016 10:00
@code132 I thought i've been seeing you here
Code red
@code132
Jan 24 2016 10:00
hey @Ayorinde
i m pretty sure we met 2 days ago
Vince Aggrippino
@VAggrippino
Jan 24 2016 10:00
If you type hello world again, does camperbot welcome you again?
Code red
@code132
Jan 24 2016 10:00
how have you been brother
Vince Aggrippino
@VAggrippino
Jan 24 2016 10:00
hello world
CamperBot
@camperbot
Jan 24 2016 10:00

welcome to FreeCodeCamp @Ghodmode!

Code red
@code132
Jan 24 2016 10:00
lmao
Ayorinde
@Ayorinde
Jan 24 2016 10:01
@code132 fine. hope you are coding happily
Code red
@code132
Jan 24 2016 10:01
i m processing pretty fast
Vince Aggrippino
@VAggrippino
Jan 24 2016 10:01
@camperbot you moron! I've been here for two days... Shut up already!
Code red
@code132
Jan 24 2016 10:01
got 100 brownies in 2 days
Vince Aggrippino
@VAggrippino
Jan 24 2016 10:01
hehe oops
Ayorinde
@Ayorinde
Jan 24 2016 10:02
@code132 since I joined last week. it's been all fun
Vince Aggrippino
@VAggrippino
Jan 24 2016 10:02
I joined yesterday and I have 113, but I already know a lot of this stuff.
Ayorinde
@Ayorinde
Jan 24 2016 10:03
@Ghodmode whoa!
Ivan Vashchenko
@gudnm
Jan 24 2016 10:03
I was quite intrigued and started the challenges but the first sets are too easy! Can I test out?
Paul John Diwa
@poldiwa
Jan 24 2016 10:04
Hello! just started the sort of getting started :smile:
Ayorinde
@Ayorinde
Jan 24 2016 10:04
@poldiwa it's a funky ride
Code red
@code132
Jan 24 2016 10:05
yes lol
its really fun
its like playing game on your xxbox
find conduct
CamperBot
@camperbot
Jan 24 2016 10:07

find conduct

:zero: code of conduct

Code red
@code132
Jan 24 2016 10:07
for new people
Thanks + name meaning giving brownie points
Paul John Diwa
@poldiwa
Jan 24 2016 10:11
guys what would happen if i left in the middle of the challenge?
Harsh Sikka
@harshsikka123
Jan 24 2016 10:11
Your computer dies
Paul John Diwa
@poldiwa
Jan 24 2016 10:12
@Ayorinde haha
lol
xD
mrrlbirtles
@mrrlbirtles
Jan 24 2016 10:12
@poldiwa Should be good to return to your last point on the map. I don't believe any current work will be saved (I could be wrong)
Paul John Diwa
@poldiwa
Jan 24 2016 10:13
okay okay thx
Code red
@code132
Jan 24 2016 10:14
say thanks @code132
CamperBot
@camperbot
Jan 24 2016 10:14
sorry code132, you can't send brownie points to yourself! :sparkles: :sparkles:
Paul John Diwa
@poldiwa
Jan 24 2016 10:14
thanks @mrrlbirtles
CamperBot
@camperbot
Jan 24 2016 10:14
poldiwa sends brownie points to @mrrlbirtles :sparkles: :thumbsup: :sparkles:
:star: 83 | @mrrlbirtles | http://www.freecodecamp.com/mrrlbirtles
mrrlbirtles @mrrlbirtles tips hat
Paul John Diwa
@poldiwa
Jan 24 2016 10:14
@code132 :+1:
haha
what is brownies for?
Code red
@code132
Jan 24 2016 10:15
to eat
Paul John Diwa
@poldiwa
Jan 24 2016 10:15
did i lose it after i said thanks?
Code red
@code132
Jan 24 2016 10:15
nope
its free
like this
thanks @poldiwa
CamperBot
@camperbot
Jan 24 2016 10:15
code132 sends brownie points to @poldiwa :sparkles: :thumbsup: :sparkles:
Paul John Diwa
@poldiwa
Jan 24 2016 10:15
ohh
CamperBot
@camperbot
Jan 24 2016 10:15
:star: 16 | @poldiwa | http://www.freecodecamp.com/poldiwa
Code red
@code132
Jan 24 2016 10:16
thanks and my name
Paul John Diwa
@poldiwa
Jan 24 2016 10:16
thanks @code132
CamperBot
@camperbot
Jan 24 2016 10:16
poldiwa sends brownie points to @code132 :sparkles: :thumbsup: :sparkles:
:star: 105 | @code132 | http://www.freecodecamp.com/code132
Code red
@code132
Jan 24 2016 10:16
niceee
Paul John Diwa
@poldiwa
Jan 24 2016 10:16
you got i high rating
Code red
@code132
Jan 24 2016 10:16
now u r learning
Paul John Diwa
@poldiwa
Jan 24 2016 10:16
:smile:
Edward Hong
@edward-hong
Jan 24 2016 10:22
Hi does anyone know what the j = i << i part means?
for (j = i << 1; j <= max; j += i) {
          sieve[j] = true;
}
Code red
@code132
Jan 24 2016 10:23
umm
first of all u need to give j the type
int j=i
Ayorinde
@Ayorinde
Jan 24 2016 10:24
@edward-hong ever heard of bit-wise operator. I wonder why you are using it
Code red
@code132
Jan 24 2016 10:25
i dont think there is <<
there is just <
Edward Hong
@edward-hong
Jan 24 2016 10:25
@Ayorinde yea just found the page on MDN and trying to work out what bit-wise operators do. I just finished the algorithm "Sum all primes" and was looking at the solutions on FCC wiki to see if there were other ways of doing the exercise and I came across this and didn't know what it meant
check it out i just found it
Ayorinde
@Ayorinde
Jan 24 2016 10:28
@edward-hong it's the left shift operator. it shifts all bits in a number to the left by the number of positions given
Code red
@code132
Jan 24 2016 10:28
yep
Ayorinde
@Ayorinde
Jan 24 2016 10:29
@edward-hong If you want use cases. How about googling
Edward Hong
@edward-hong
Jan 24 2016 10:30
so for example, if i was 00000000000000000000000000001101, i << 1 would be 00000000000000000000000000011010?
Ayorinde
@Ayorinde
Jan 24 2016 10:32
@edward-hong something like that
Edward Hong
@edward-hong
Jan 24 2016 10:32
ok
Code red
@code132
Jan 24 2016 10:32
Create a script element making sure it is valid and has a closing tag.
what is it asking
pls and thank
Ayorinde
@Ayorinde
Jan 24 2016 10:33
@code132
<script src="yourScriptSource"></sript>
Code red
@code132
Jan 24 2016 10:35
thanks
@Ayorinde
thanks @Ayorinde
CamperBot
@camperbot
Jan 24 2016 10:40
code132 sends brownie points to @ayorinde :sparkles: :thumbsup: :sparkles:
:star: 293 | @ayorinde | http://www.freecodecamp.com/ayorinde
Ayorinde
@Ayorinde
Jan 24 2016 10:42
@code132 I could see you really wanted the brownie points to be sent. Thanks
CamperBot
@camperbot
Jan 24 2016 10:42
ayorinde sends brownie points to @code132 :sparkles: :thumbsup: :sparkles:
:star: 114 | @code132 | http://www.freecodecamp.com/code132
Ivan Vashchenko
@gudnm
Jan 24 2016 10:47
If I find error in an exercise, what do I do?
Vince Aggrippino
@VAggrippino
Jan 24 2016 10:49
@gudnm There's a "Bug" button, but I don't know what happens after you click it.
Ivan Vashchenko
@gudnm
Jan 24 2016 10:49
@Ghodmode thanks
CamperBot
@camperbot
Jan 24 2016 10:49
gudnm sends brownie points to @ghodmode :sparkles: :thumbsup: :sparkles:
:star: 124 | @ghodmode | http://www.freecodecamp.com/ghodmode
saravanan s
@saravanan12153
Jan 24 2016 11:05

var myVar = 87;

// Only change code below this line
myVar = myVar++

myVar should equal 88 ??
not executing guys?
Blank
@vuhuy1101
Jan 24 2016 11:06
@saravanan12153 you only need myVar++ to make it 88
Ori Isco
@iscotzan
Jan 24 2016 11:07
@saravanan12153 it will equal 88 for the next round of the loop
saravanan s
@saravanan12153
Jan 24 2016 11:07
Ok, will try
Ori Isco
@iscotzan
Jan 24 2016 11:07
@saravanan12153 and as @vuhuy1101 said you only need to write myVar++;
saravanan s
@saravanan12153
Jan 24 2016 11:08
yes u are right guys . i did'nt try that , need to learn more about pre increment and decrement
thx @iscotzan @vuhuy1101
CamperBot
@camperbot
Jan 24 2016 11:08
saravanan12153 sends brownie points to @iscotzan and @vuhuy1101 :sparkles: :thumbsup: :sparkles:
:star: 186 | @iscotzan | http://www.freecodecamp.com/iscotzan
:star: 225 | @vuhuy1101 | http://www.freecodecamp.com/vuhuy1101
Goran
@goran011
Jan 24 2016 11:11
heloo
Ayorinde
@Ayorinde
Jan 24 2016 11:15
@goran011 hi
Arnas
@arnsa
Jan 24 2016 11:52
hello!
pegasus777
@pegasus777
Jan 24 2016 11:59
hello
Ayorinde
@Ayorinde
Jan 24 2016 12:00
@pegasus777 hi
@pegasus777 hope you are enjoying your first day at FCC
pegasus777
@pegasus777
Jan 24 2016 12:02
ya.....yup
Ayorinde
@Ayorinde
Jan 24 2016 12:03
@pegasus777 happy coding
arielr2017
@arielr2017
Jan 24 2016 12:16
hint
CamperBot
@camperbot
Jan 24 2016 12:16
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
sanwalatta
@sanwalatta
Jan 24 2016 12:26
trouble of radio button in form
Ayorinde
@Ayorinde
Jan 24 2016 12:30
@sanwalatta what trouble exactly?
Sandeep
@Sandeep-Kumar-Daroch
Jan 24 2016 12:33
Hi everyone!
Do we have to pay here in any way
?
Ayorinde
@Ayorinde
Jan 24 2016 12:34
@Sandeep-Kumar-Daroch no
@Sandeep-Kumar-Daroch unless you want to donate
splucena
@splucena
Jan 24 2016 12:35
@Sandeep-Kumar-Daroch no
Sandeep
@Sandeep-Kumar-Daroch
Jan 24 2016 12:36
Thanks a lot!
Manual
@Manual
Jan 24 2016 12:46
Hello guys I cant seem to figure out how to get this radio form to work, can someone assist?
<form action="/submit-cat-photo">
<label><input type="radio" name"indoor-outdoor">indoor</label>
<label><input type ="radio" name"indoor-outdoor">outdoor</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
what have i done wrong?
cannelflow
@cannelflow
Jan 24 2016 12:48
@Manual which exercise ?
kilerm2
@kilerm2
Jan 24 2016 12:48
you forgot the =
Manual
@Manual
Jan 24 2016 12:48
ahhhhh
splucena
@splucena
Jan 24 2016 12:48
This message was deleted
kilerm2
@kilerm2
Jan 24 2016 12:48
it should be name="indoor-outdoor"
Manual
@Manual
Jan 24 2016 12:48
thanks kilerm2
kilerm2
@kilerm2
Jan 24 2016 12:48
yw
Alidu Maltiti
@Code123456789
Jan 24 2016 12:50
please someone, help me out
cannelflow
@cannelflow
Jan 24 2016 12:51
@Code123456789 Create an a element that links to http://freecatphotoapp.com and has "cat photos" as its anchor text.
Alidu Maltiti
@Code123456789
Jan 24 2016 12:52
yes, how do i do that
cannelflow
@cannelflow
Jan 24 2016 12:53
@Code123456789 <a href="xyt">cat photos</a>
kilerm2
@kilerm2
Jan 24 2016 12:53
<a href="link">Anchor</a>
cannelflow
@cannelflow
Jan 24 2016 12:53
@Code123456789 read instruction carefully everything is their
Alidu Maltiti
@Code123456789
Jan 24 2016 12:54
check this out and then show,please
Leondr
@Leondrr
Jan 24 2016 12:54

help me with it. need example

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

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


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

// Change this value to test
phoneticLookup("charlie");
phoneticLookup("alpha") should equal "Adams"
phoneticLookup("bravo") should equal "Boston"
phoneticLookup("charlie") should equal "Chicago"
phoneticLookup("delta") should equal "Denver"
phoneticLookup("echo") should equal "Easy"
phoneticLookup("foxtrot") should equal "Frank"
phoneticLookup("") should equal undefined
You should not use case, switch, or if statements

https://gyazo.com/2ecd223d51dff705361e50bd1aed354f

CamperBot
@camperbot
Jan 24 2016 12:54
no wiki entry for: me with it need example setupfunction phoneticlookupval var result only change code below this linelookup alphaadams bravoboston charliechicago deltadenver echoeasy foxtrotfrank only change code above this line return resultlookup change this value to testphoneticlookupcharliephoneticlookupalpha should equal adamsphoneticlookupbravo should equal bostonphoneticlookupcharlie should equal chicagophon