These are chat archives for FreeCodeCamp/Help

21st
Jan 2016
iananimator
@iananimator
Jan 21 2016 00:01
Learning java here, the examples keep using 'var' and instead of 'int', 'bool', 'String','double'. I was taught to type the latter, I had no clue that var could be used... is this common practice for Java?
greg
@wearenotgroot
Jan 21 2016 00:02
@KingHippo you value is being overridden because it was on a for loop. now if you add a return after lcd.value=value. it will display the correct value
switch (operator) {
      case "+":
        value += nextValue;
        console.log(value);
        lcd.value = value;
        return;
        break;
    }
Utkarsh Bhimte
@Utkarshbhimte
Jan 21 2016 00:03
 for(var i=0;i<arr1.length;i++){

        if( arr1.indexOf(arr2[i]) === 0){
          newArr = newArr.concat(arr1[i]);
        }

        if( arr2.indexOf(arr1[i]) === 0){
          newArr = newArr.concat(arr2[i]);
        }
  }

  return newArr;
I am getting newArr = [1,1], why?
I should be getting all the unique elementsin two arrays as result.
Franco Zapata
@Francozt01
Jan 21 2016 00:03
@iananimator are you talking about Java ... or Javascript
because here you are learning Javascript programming language for web development and apps
mostly web..
iananimator
@iananimator
Jan 21 2016 00:04
Oooooo. Different languages then? Whoops.
Raincode
@Raincode
Jan 21 2016 00:04
@Utkarshbhimte türkmisin? Send me the entire code via PM, bakacam
greg
@wearenotgroot
Jan 21 2016 00:05
@KingHippo you there?
Don Price
@KingHippo
Jan 21 2016 00:08
@wearenotgroot sorry went for some food. Thank you so much! That was driving me crazy.
CamperBot
@camperbot
Jan 21 2016 00:08
kinghippo sends brownie points to @wearenotgroot :sparkles: :thumbsup: :sparkles:
:warning: kinghippo already gave wearenotgroot points
Eli Taliafero
@elitaliafero
Jan 21 2016 00:09
ugh im stuck again
what am I doing wrong here?
function myTest(val) {
  var answer = "";
  // Only change code below this line
  switch(val){
    case 1:
    case 2:
    case 3:
      result = "Low";
      break;
    case 4:
    case 5:
    case 6:
      result = "Mid";
      break;
    case 7:
    case 8:
    case 9:
      result = "High";
      break;


  }

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

// Change this value to test
myTest(1);
Will G
@willgorham
Jan 21 2016 00:09
@elitaliafero set 'answer' to the value ('low' etc) not result
'result' was never initialized, and you return 'answer' at the bottom anyway
Eli Taliafero
@elitaliafero
Jan 21 2016 00:10
oh duh. I was using their example a little too closely and not thinking through it
thanks @willgorham
CamperBot
@camperbot
Jan 21 2016 00:10
elitaliafero sends brownie points to @willgorham :sparkles: :thumbsup: :sparkles:
:star: 403 | @willgorham | http://www.freecodecamp.com/willgorham
Will G
@willgorham
Jan 21 2016 00:11
@elitaliafero no worries :+1:
Matt
@matthewc21
Jan 21 2016 00:11
Can you guys help me out...it says I have to turn the second element blue
<style>
h2 {color: black;} 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>
</style>
I don't understand why that isn't going thrugh
Andrew Kemp
@andrewtkemp1
Jan 21 2016 00:12
@matthewc21 change black to blue
Matt
@matthewc21
Jan 21 2016 00:12
ignore the "black"
copied it incorrectly. I have blue in there and it says it's wrong
<style>
h2 {color: blue;} 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>
</style>
Error: Your h2 element should be blue.
Christopher Nott
@ChrisN99
Jan 21 2016 00:13
Close your style tag
</style>
Will G
@willgorham
Jan 21 2016 00:13
@matthewc21 your style tag should close before any other html elements
Eli Taliafero
@elitaliafero
Jan 21 2016 00:13
its closd but its after the other elements
Andrew Kemp
@andrewtkemp1
Jan 21 2016 00:13
@matthewc21 move the style tag to before the CatPhotoApp
Christopher Nott
@ChrisN99
Jan 21 2016 00:13
yes, didnt see it down there
This message was deleted
Matt
@matthewc21
Jan 21 2016 00:14
there we go
thanks guys!
Christopher Nott
@ChrisN99
Jan 21 2016 00:14
cool
Andrew Kemp
@andrewtkemp1
Jan 21 2016 00:14
@matthewc21 glad it worked.
Raincode
@Raincode
Jan 21 2016 00:19
anyone need help last chance before I go
just PM me
ladies get help faster
just kiddin :p
Are you serious, this is the third guy in 2 days who doesnt get that challenge where you have to make the h2 element blue
everything is there, must be people arent reading the description
Herman Fassett
@HermanFassett
Jan 21 2016 00:22
@Raincode this is a help chat, so we'll answer the questions
Raincode
@Raincode
Jan 21 2016 00:23
matthewc32 sends brownie points to @guys :sparkles: :thumbsup: :sparkles:
wake up camperbot
@HermanFassett I agree, but some questions can be firgured out on your own and are asked too early :) I do it myself sometimes, too.
Andrew Kemp
@andrewtkemp1
Jan 21 2016 00:25
It's good practice too,
to help others.
Raincode
@Raincode
Jan 21 2016 00:25
yes! thats why I do it
Im a selfish *
Andrew Kemp
@andrewtkemp1
Jan 21 2016 00:26
@Raincode haha, it's ok to be selfish as long as the help you give helps!
Raincode
@Raincode
Jan 21 2016 00:26
nobody's perfect
I dare to say it does
My only condition is you send the entire code, and do it via PM, nobody wants to get spammed by 50lines of code all the time
btw, if it wouldn't help, it would be help
wouldn't be*
Andrew Kemp
@andrewtkemp1
Jan 21 2016 00:29
@Raincode Ah, didn;t know you got pm'ed. That would be kind of annoying haha.
Raincode
@Raincode
Jan 21 2016 00:29
selfish and a smart-you-know-what
Andrew Kemp
@andrewtkemp1
Jan 21 2016 00:29
I was a teaching assistant/ writing assistant in college.
Raincode
@Raincode
Jan 21 2016 00:29
oh thats cool
Andrew Kemp
@andrewtkemp1
Jan 21 2016 00:29
It can be frustrating when students send you 10+ page papers and
it kind of blindsides you
Raincode
@Raincode
Jan 21 2016 00:30
I didn't even go to college yet :/
oh but what I meant is, I want it via PM. THat way it doesnt move all the time and all the others aren't bothered by it
Andrew Kemp
@andrewtkemp1
Jan 21 2016 00:30
@Raincode ahh gotcha gotcha.
Raincode
@Raincode
Jan 21 2016 00:30
and when I explain something it doesnt get lost
Andrew Kemp
@andrewtkemp1
Jan 21 2016 00:30
@raincode Ah yeah. That IS very frustrating.
@raincode Are you planning on attending a university?
Raincode
@Raincode
Jan 21 2016 00:31
definately
Im too curious to stop now and not learn more
highschool only scratches the surface
I believe
you dont appreciate it enough while you're there, but afterwards I though "damn, I should have payed more attention here and there"
this place is like a graveyard, seems like everybody is in the flow right now passing their challenges ^_^
Utkarsh Bhimte
@Utkarshbhimte
Jan 21 2016 00:35
I Pm'd you @Raincode
Raincode
@Raincode
Jan 21 2016 00:35
@Utkarshbhimte u sure, I dont see :/
Andrew Kemp
@andrewtkemp1
Jan 21 2016 00:36
@Raincode That's a great mindset my friend. You will go far as long as you stay curious!
Raincode
@Raincode
Jan 21 2016 00:37
thanks, only problem is I don't plan on going quite that far^_^
Andrew Kemp
@andrewtkemp1
Jan 21 2016 00:41
@Raincode what are your plans?
Nerando Johnson
@nerajno
Jan 21 2016 00:46
friends, family and fiends ( plus that alien and NSA computer ) greetings
i am doing the multi-dimensional with indexes an i am getting it but i am a bit lost
can i get some help
Nick Robson
@nickrobson
Jan 21 2016 00:48
@nerajno Ask away
FarionLord
@FarionLord
Jan 21 2016 00:49

```js

<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;
}
#cat-photo-element {
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" 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>
``` "Your form element should have the background-color of green." Instructions not clear... having a headache....

<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;
  }
  #cat-photo-element {
    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" 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>
Nick Robson
@nickrobson
Jan 21 2016 00:49
Formatting.. Put a newline after the closing backticks
ty
use

STYLE="background-color:green;"
apologies
phone app is so buggy
FarionLord
@FarionLord
Jan 21 2016 00:51
@nickrobson thanks have some brownie....
CamperBot
@camperbot
Jan 21 2016 00:51
farionlord sends brownie points to @nickrobson :sparkles: :thumbsup: :sparkles:
:star: 341 | @nickrobson | http://www.freecodecamp.com/nickrobson
Christopher Nott
@ChrisN99
Jan 21 2016 00:52
or create a style class of .green-background { background-color: green;} and apply the class to the <form> element
FarionLord
@FarionLord
Jan 21 2016 00:52
"Do not give your form any class or style attributes."
Got to use id.
but hey thats just a theory... a "oh wait..." ahhh wrong comment!
@BoredCodeMonkey have some brownie point thanks
CamperBot
@camperbot
Jan 21 2016 00:54
farionlord sends brownie points to @boredcodemonkey :sparkles: :thumbsup: :sparkles:
:star: 198 | @boredcodemonkey | http://www.freecodecamp.com/boredcodemonkey
Christopher Nott
@ChrisN99
Jan 21 2016 00:54
so create the style element #cat-photo-form and apply the same elements
oh, thanks ;)
Eli Taliafero
@elitaliafero
Jan 21 2016 00:55
I have a question about a waypoint that I solved
I want to know if there was a better way of writing the code
it was "Return Early Pattern for Functions"
and I wrote
// Setup
function abTest(a, b) {
  // Only change code below this line
  if (a<0){
    return undefined;
} else if (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);
Nikolajs Korolkovs
@NickEU
Jan 21 2016 00:56
@elitaliafero use || which is logical or
Eli Taliafero
@elitaliafero
Jan 21 2016 00:56
I just feel like I was learning other stuff besides if statements and I want to make sure I'm learning the right way and not relying on poor technique
FarionLord
@FarionLord
Jan 21 2016 00:56

@BoredCodeMonkeyv```js

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

woops
<form action="/submit-cat-photo" id="cat-photo-form" green-background>
Eli Taliafero
@elitaliafero
Jan 21 2016 00:57
what do you mean @NickEU ?
Nikolajs Korolkovs
@NickEU
Jan 21 2016 00:58
@elitaliafero a < 0 || b < 0
http://www.freecodecamp.com/challenges/comparisons-with-the-logical-or-operator @elitaliafero you were supposed to learn this here, a few waypoints before the one u're doing
@elitaliafero you aren't skipping waypoints now, are you? :worried:
Eli Taliafero
@elitaliafero
Jan 21 2016 01:02
no I'm just hitting next after i solve them. That's why I asked. I felt like maybe I wasn't doing something right
map has them all done
so what does that look like?
// Setup
function abTest(a, b) {
  // Only change code below this line

  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);
this isn't working
Nikolajs Korolkovs
@NickEU
Jan 21 2016 01:03
forgot your if? :D
Eli Taliafero
@elitaliafero
Jan 21 2016 01:03
I'm not understanding something here
ah
haha duh
yeah that makes sense now with the recent waypoints
Nikolajs Korolkovs
@NickEU
Jan 21 2016 01:05
more often than not the waypoints are building on the stuff you learn in previous ones, so... @elitaliafero pay attention ;)
Christopher Nott
@ChrisN99
Jan 21 2016 01:06
@FarionLord #cat-photo-form{
background-color: green;
}
@FarionLord put this in your <style> area : #cat-photo-form{
background-color: green;
}
Then your form element should look like <form action="/submit-cat-photo" id="cat-photo-form">
Eli Taliafero
@elitaliafero
Jan 21 2016 01:07
holy cow I don't feel ready for the "Counting Cards" waypoint
Nerando Johnson
@nerajno
Jan 21 2016 01:07
here we go

One way to think of a multi-dimensional array, is as an array of arrays. When you use brackets to access your array, the first set of bracket refers to the entries in the outer-most array, and each subsequent level of brackets refers to the next level of entries inside.

Example

var arr = [
[1,2,3],
[4,5,6],
[7,8,9],
[[10,11,12], 13, 14]
];
arr[0]; // equals [1,2,3]
arr[1][2]; // equals 6
arr[3]lotus/model#35; // equals 11
Instructions
Read from myArray using bracket notation so that myData is equal to 8

Nerando Johnson
@nerajno
Jan 21 2016 01:12
any help
KoToZ
@Mohamedtareque
Jan 21 2016 01:12
guys
how can i add social media icon in glyphicon in bootstrap ???
Raincode
@Raincode
Jan 21 2016 01:13
@nerajno sounded like you where explaining something
the solution should be arr[3][2]
Nerando Johnson
@nerajno
Jan 21 2016 01:13
please read the instructions
ok
Raincode
@Raincode
Jan 21 2016 01:13
on the first level its the third array
and inside that array its the second element
that results in arr[3][2]
so, only going arr[3] gives you [7,8,9]
now say thats arr2
Alexander Køpke
@alexanderkopke
Jan 21 2016 01:14
arr[2][1] since arrays are index based
Raincode
@Raincode
Jan 21 2016 01:14
to get 8 you need to write arr2[2]
short way is arr[3][2]
@alexanderkopke oh yeah, mb, thanks
CamperBot
@camperbot
Jan 21 2016 01:15
raincode sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:star: 443 | @alexanderkopke | http://www.freecodecamp.com/alexanderkopke
Raincode
@Raincode
Jan 21 2016 01:15
starts at 0 >.>
Alexander Køpke
@alexanderkopke
Jan 21 2016 01:15
but your logic is correct
Raincode
@Raincode
Jan 21 2016 01:15
damn its cause I wanted to go to bed an hour ago
Ive known that for 5 years yet I forgot about it counting ^_^
Nerando Johnson
@nerajno
Jan 21 2016 01:16
@Raincode
@Raincode i did this
// Setup
var myArray = [[1,2,3], [4,5,6], [7,8,9], [[10,11,12], 13, 14]];

// Only change code below this line.
var myData = myArray[0][0];

arr[3][2];//equals 8
but something is off
Alexander Køpke
@alexanderkopke
Jan 21 2016 01:17
it shows 14?
Christopher Nott
@ChrisN99
Jan 21 2016 01:20
arr[3] would be [[10,11,12], 13, 14]
Andrew Kemp
@andrewtkemp1
Jan 21 2016 01:20
Has anyone completed the javascript challenge with converting the temp to farenheit
Raincode
@Raincode
Jan 21 2016 01:21
see what this other guide wrote
I messed up
"arrlotus/model#35 since arrays are index based" meaning indices start at 0
Nerando Johnson
@nerajno
Jan 21 2016 01:21
ok
Raincode
@Raincode
Jan 21 2016 01:21
what da heck
Nerando Johnson
@nerajno
Jan 21 2016 01:21
thus ?
Christopher Nott
@ChrisN99
Jan 21 2016 01:22
you want arr[2] since the first element is always 0
Raincode
@Raincode
Jan 21 2016 01:22
lotus model whut
arrlotus/model#35
ok im out
Nerando Johnson
@nerajno
Jan 21 2016 01:22
thanks @Raincode
CamperBot
@camperbot
Jan 21 2016 01:22
nerajno sends brownie points to @raincode :sparkles: :thumbsup: :sparkles:
:star: 207 | @raincode | http://www.freecodecamp.com/raincode
Raincode
@Raincode
Jan 21 2016 01:22
noooo
wrong guy man
@BoredCodeMonkey
saved you
from my mischief
Eli Taliafero
@elitaliafero
Jan 21 2016 01:23
I went back and looked at the recent waypoints I've completed but I still don't understand how to get started on the Counting Cards waypoint
Raincode
@Raincode
Jan 21 2016 01:23
send him a f** fancy cake :D
Nerando Johnson
@nerajno
Jan 21 2016 01:23
any one can help me with Access MultiDimensional Arrays With Indexes challenge
Raincode
@Raincode
Jan 21 2016 01:23
for real
Nerando Johnson
@nerajno
Jan 21 2016 01:23
@BoredCodeMonkey can u help
Raincode
@Raincode
Jan 21 2016 01:23
m(
im outta here
Christopher Nott
@ChrisN99
Jan 21 2016 01:24
@nerajno I am trying to assit
Nerando Johnson
@nerajno
Jan 21 2016 01:24
ok thanks
Christopher Nott
@ChrisN99
Jan 21 2016 01:25
@nerajno are you good now or do you still need help?
Nerando Johnson
@nerajno
Jan 21 2016 01:25
@BoredCodeMonkey gimme a bit
Christopher Nott
@ChrisN99
Jan 21 2016 01:25
@nerajno ok
codingchampion
@codingchampion
Jan 21 2016 01:26
hello world
CamperBot
@camperbot
Jan 21 2016 01:26

welcome to FreeCodeCamp @codingchampion!

greg
@wearenotgroot
Jan 21 2016 01:27
@codingchampion Welcome!
Nerando Johnson
@nerajno
Jan 21 2016 01:27
i get it but i am trying to figure out how to phrase it
ivansimwx
@ivansimwx
Jan 21 2016 01:27

Hi, I am on 176.

I defined a local variable only within the function, but it wont let me pass the stage.
The "no global variable" is still unchecked but i did not define a global variable. Anyone got an idea?

Nerando Johnson
@nerajno
Jan 21 2016 01:27
its arr lotus/model#35
not that
Abdul Awali
@awalthefirst
Jan 21 2016 01:28
@ivansimwx can u show ur code
Nerando Johnson
@nerajno
Jan 21 2016 01:28
arr {3}{2}
@BoredCodeMonkey
ivansimwx
@ivansimwx
Jan 21 2016 01:28

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

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

Christopher Nott
@ChrisN99
Jan 21 2016 01:29
@nerajno let me get back to the exercise.
Nerando Johnson
@nerajno
Jan 21 2016 01:29
@BoredCodeMonkey thanks i am patient
CamperBot
@camperbot
Jan 21 2016 01:29
nerajno sends brownie points to @boredcodemonkey :sparkles: :thumbsup: :sparkles:
:star: 202 | @boredcodemonkey | http://www.freecodecamp.com/boredcodemonkey
Alexander Køpke
@alexanderkopke
Jan 21 2016 01:30
@andrewtkemp1 yes I have
Andrew Kemp
@andrewtkemp1
Jan 21 2016 01:31
@alexanderkopke just figured it out haha. spelled fahrenheit wrong.
when I declared it.
Alexander Køpke
@alexanderkopke
Jan 21 2016 01:31
neat :)
Christopher Nott
@ChrisN99
Jan 21 2016 01:31
Ok, let's look at the myArray variable. [1,2,3] is element 0 (not element 1), [4,5,6] is element 1, [7,8,9] is element 2, [[10,11,12], 13, 14] is element 3
Abdul Awali
@awalthefirst
Jan 21 2016 01:32
@ivansimwx what's the challenge name
Christopher Nott
@ChrisN99
Jan 21 2016 01:32
@nerajno so if you want to get 8, go to element 2, item 2
ivansimwx
@ivansimwx
Jan 21 2016 01:32
hey
Local Scope and Functions
Nerando Johnson
@nerajno
Jan 21 2016 01:33
@boredMo
@BoredCodeMonkey i get that
Raincode
@Raincode
Jan 21 2016 01:33
@ivansimwx you want a tip from the master
thank me later
Nerando Johnson
@nerajno
Jan 21 2016 01:33
thus it can be arr[3][2]\
but want to know how to phrase it
I
Christopher Nott
@ChrisN99
Jan 21 2016 01:34
@nerajno var myData = myArraylotus/model#35;
err var myData = myArray{2}{1}
replace the { with [
ivansimwx
@ivansimwx
Jan 21 2016 01:35
@Raincode ahaha...i am not sure what i am suppose to do with that
Raincode
@Raincode
Jan 21 2016 01:35
get error messages and log output
Abdul Awali
@awalthefirst
Jan 21 2016 01:36
@ivansimwx weird it should work
Christopher Nott
@ChrisN99
Jan 21 2016 01:36
'''var myData = myArraylotus/model#35;'''
CamperBot
@camperbot
Jan 21 2016 01:36
:bulb: to format code use backticks! ``` more info
Nerando Johnson
@nerajno
Jan 21 2016 01:36
@BoredCodeMonkey thank u
CamperBot
@camperbot
Jan 21 2016 01:36
nerajno sends brownie points to @boredcodemonkey :sparkles: :thumbsup: :sparkles:
:warning: nerajno already gave boredcodemonkey points
The14thNoah
@The14thNoah
Jan 21 2016 01:36
Can you please help me with this. Your p element should contain the first few words of the provided additional kitty ipsum text.
Christopher Nott
@ChrisN99
Jan 21 2016 01:36
@nerajno var myData = myArray[2][1];
ivansimwx
@ivansimwx
Jan 21 2016 01:36
mm i dont have an error message, the stage just wont let me pass
@awalthefirst haha yea, i am baffled
The14thNoah
@The14thNoah
Jan 21 2016 01:37
this is my html tag for <p>
Christopher Nott
@ChrisN99
Jan 21 2016 01:37
@nerajno is that what you were looking for?
The14thNoah
@The14thNoah
Jan 21 2016 01:37
<p class="red-text">Kitty ipsum dolor sit amet</p>
Abdul Awali
@awalthefirst
Jan 21 2016 01:37
@ivansimwx try refreshing or clearing cache
ivansimwx
@ivansimwx
Jan 21 2016 01:38
hey that worked hahaha thanks
thanks @awalthefirst
CamperBot
@camperbot
Jan 21 2016 01:40
ivansimwx sends brownie points to @awalthefirst :sparkles: :thumbsup: :sparkles:
:star: 522 | @awalthefirst | http://www.freecodecamp.com/awalthefirst
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 01:40
@The14thNoah did that work?
Abdul Awali
@awalthefirst
Jan 21 2016 01:40
@ivansimwx anytime
The14thNoah
@The14thNoah
Jan 21 2016 01:41
@DevPoetsSociety I already get it. I just didn't read the directions carefully. :)
Nerando Johnson
@nerajno
Jan 21 2016 01:41
@BoredCodeMonkey i am still trying to figure out how is it equal to 8
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 01:41
Yup, half the time if you have a problem that's why :)
The14thNoah
@The14thNoah
Jan 21 2016 01:42
I see. I will just give more attention on the details :)
Christopher Nott
@ChrisN99
Jan 21 2016 01:48
@nerajno 8 is value of element 1 in sub-array 2. sub array 2 is [7, 8, 9], so myArray[2] is [7,8,9]. item 0 is 7, item 1 is 8, item 2 is 9. so lotus/model#35. It's a literal position. not sure if that helps you
err [2][1] is a reference to the item in slot 1 of array 2
Michael Lorimer
@mclorimer
Jan 21 2016 01:53
I'm having trouble changing the font-color for the text in my navbar. How would I do this? Here's a link to the codepen: http://codepen.io/mclorimer/pen/yepMox
It won't change when I edit it in CSS
Jacob Bass
@Jacob-Bass
Jan 21 2016 01:55
This message was deleted
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 01:55
@mclorimer Don't put the header information et al into the html
Eric Saldivar
@esaldivar
Jan 21 2016 01:55
need some help with making properties private
var Bike = function() {

  // Only change code below this line.

var gear= 10;

 {
 this.setGear= function (change) {
   gear = change;};
 }
this.getGear= function () {
  return gear;
};
 };
var myBike = new Bike();
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 01:56
CodePen does all that behind the scenes. You just have to worry about what's b/t the body tags.
Michael Lorimer
@mclorimer
Jan 21 2016 01:56
@DevPoetsSociety what do you mean?
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 01:57
The idea is that they take care of all the header information for you. Adding it in means it's there twice.
Export a zip and take a look to see if it is.
Michael Lorimer
@mclorimer
Jan 21 2016 01:57
so how do I make it white? Instead of only being white when one hovers over it"?
Nerando Johnson
@nerajno
Jan 21 2016 01:59
@BoredCodeMonkey i get it
thanks @BoredCodeMonkey
CamperBot
@camperbot
Jan 21 2016 01:59
nerajno sends brownie points to @boredcodemonkey :sparkles: :thumbsup: :sparkles:
:warning: nerajno already gave boredcodemonkey points
D12S
@memnon34
Jan 21 2016 01:59
@mclorimer problem is you're selecting text, and the type you see in the navbar is actually a link.
Christopher Nott
@ChrisN99
Jan 21 2016 01:59
@nerajno glad you got it. It can be a bit confusing.
D12S
@memnon34
Jan 21 2016 02:00
@mclorimer inspect the element in Chrome or firebug
@mclorimer you'll see it's an <a> that's a child of <li>
@mclorimer so adjust your CSS selector so that it selects that...try to figure it out first, and if you're still having issues, let me know
Eric Saldivar
@esaldivar
Jan 21 2016 02:01
var Bike = function() {

  // Only change code below this line.

var gear= 10;

 {
 this.setGear= function (change) {
   gear = change;};
 }
this.getGear= function () {
  return gear;
};
 };
var myBike = new Bike();
can't seem to get properties to be private
Jacob Bass
@Jacob-Bass
Jan 21 2016 02:03
Hey I just finished the "Check for Palindromes" challenge and while I was able to pass it, I couldn't do so without replacing the underscore specifically. How would I get rid of it without that specific line of code?

function palindrome(str) {
  // Good luck!
  var array =[];
  var reversed = [];
  var newStr;
  str=str.toLowerCase();
  newStr= str.replace(/\W/gi, "");
  newStr= newStr.replace(/_/gi, "");   // couldn't figure out how to get it to work without replacing the underscore specifically
  array = newStr.split("");
  reversed = array.reverse();
  reversed = reversed.join("");
  return reversed===newStr;


  //return str;
}



palindrome("My age is 0, 0 si ega ym.")
palindrome("0_0 (: /-\ :) 0-0")
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 02:03
@Jacob-Bass You can't. I think that test was there to drum into your head that JS considers it a word character.
D12S
@memnon34
Jan 21 2016 02:04
Screen Shot 2016-01-20 at 9.02.06 PM.png
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 02:04
Although you could have combined the regex
Jacob Bass
@Jacob-Bass
Jan 21 2016 02:04
@DevPoetsSociety Ah i see. Thanks!
CamperBot
@camperbot
Jan 21 2016 02:04
jacob-bass sends brownie points to @devpoetssociety :sparkles: :thumbsup: :sparkles:
:star: 411 | @devpoetssociety | http://www.freecodecamp.com/devpoetssociety
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 02:04
/[\W_]/g should work
Jacob Bass
@Jacob-Bass
Jan 21 2016 02:06
@DevPoetsSociety ya that worked. Are there any other special characters like that?
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 02:06
No, I think that's the only odd one.
Jacob Bass
@Jacob-Bass
Jan 21 2016 02:07
@DevPoetsSociety hmm thats interesting lol Thanks again man.
CamperBot
@camperbot
Jan 21 2016 02:07
jacob-bass sends brownie points to @devpoetssociety :sparkles: :thumbsup: :sparkles:
:warning: jacob-bass already gave devpoetssociety points
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 02:07
o/
KoToZ
@Mohamedtareque
Jan 21 2016 02:09
hey guys what's the meaning of data-toggle
and data-type ???
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 02:11
context @Mohamedtareque ?
D12S
@memnon34
Jan 21 2016 02:11
@Mohamedtareque I only have vague knowledge on that, but here’s my best shot: “data” is a new type of selector that has recently been added to HTML. It gives you a new way to select elements for jQuery and JavaScript. So when you see data-anything, it’s likely that some JS is using that selector to run code on the element. data- can be followed by whatever selector you choose
@Mohamedtareque data-toggle you see a lot on bootstrap…it’s what they use to toggle things like the nav bar from desktop to mobile.
Andrew Kemp
@andrewtkemp1
Jan 21 2016 02:14
Has anyone completed the word blanks?
cannelflow
@cannelflow
Jan 21 2016 02:15
what is troubling you ?
@andrewtkemp1
@andrewtkemp1 you have to make a sentence using passed myNoun, myAdjective, myVerb, myAdverb
Andrew Kemp
@andrewtkemp1
Jan 21 2016 02:16
@cannelflow Im just having some trouble following the instructions.
@cannelflow so is it just basically setting results to the parameters with spaces concatenated in between?
cannelflow
@cannelflow
Jan 21 2016 02:17
@andrewtkemp1 yup
Andrew Kemp
@andrewtkemp1
Jan 21 2016 02:17
@cannelflow ah ok ok. Just wanted to make sure I wasn't over-complicating it
cannelflow
@cannelflow
Jan 21 2016 02:18
@andrewtkemp1 :+1:
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 02:20
@andrewtkemp1 Ideally with more than spaces. Have you never played Mad Libs?
Matthew Johnson
@EmjayFlight
Jan 21 2016 02:21
I tried this piece of code and for some reason I am not returning anything other than “No such property”
//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++) {
  if(contacts[i].firstName === firstName){
  if(contacts[i].hasOwnProperty(prop) === true) {
    console.log(contacts.prop);
    return contacts.prop;
}
  else if(firstName !== contacts[i].firstName) {

    return "No such contact";
  }
  else {
    return "No such property";
  }
  }
}
// Only change code above this line
}

// Change these values to test your function
lookUp("Kristian", "lastName");
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 02:21
"My big " + myNoun + " " + myVerb + " my wife " etc.
KillerBEE6
@KillerBEE6
Jan 21 2016 02:22
How can i solve this ?

<link href= "#" rel="stylesheet" type="text/css">

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

DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 02:22
@MrEmjay417 Make sure you're testing each element before returning no contacts.
@KillerBEE6 What's the title?
ecrausch
@ecrausch
Jan 21 2016 02:23

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

hey guys, whats wrong with my css image size?

Matthew Johnson
@EmjayFlight
Jan 21 2016 02:26
@DevPoetsSociety I am testing each item, aren’t I?
Andrew Kemp
@andrewtkemp1
Jan 21 2016 02:26
@ecrausch is smaller-image properly tagged on the image?
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 02:26
@MrEmjay417 Nope, first negative you get you return
ecrausch
@ecrausch
Jan 21 2016 02:27
@andrewtkemp1 im not sure what you mean...
Andrew Kemp
@andrewtkemp1
Jan 21 2016 02:28
@ecrausch I need to see the corresponding tag.
ecrausch
@ecrausch
Jan 21 2016 02:29
<img src="https://bit.ly/fcc-relaxing-cat">
@andrewtkemp1
Andrew Kemp
@andrewtkemp1
Jan 21 2016 02:30
@ecrausch the image needs to be tagged with the class "smaller-image"
<img class="smaller-image" src="https://bit.ly/fcc-relaxing-cat">
Matthew Johnson
@EmjayFlight
Jan 21 2016 02:30
@DevPoetsSociety That’s actually one that is not returning. The only thing that isn’t returning is the first and second items. I did it this way and the first item was the only thing that wasn’t returning
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].hasOwnProperty(prop) === true) {
    console.log(contacts.prop);
    return contacts.prop;
}
  else if(firstName !== contacts[i].firstName) {

    return "No such contact";
  }
  else {
    return "No such property";
  }
  }
}
// Only change code above this line
}
ecrausch
@ecrausch
Jan 21 2016 02:31
@andrewtkemp1 thank you!!
CamperBot
@camperbot
Jan 21 2016 02:31
ecrausch sends brownie points to @andrewtkemp1 :sparkles: :thumbsup: :sparkles:
:star: 169 | @andrewtkemp1 | http://www.freecodecamp.com/andrewtkemp1
Andrew Kemp
@andrewtkemp1
Jan 21 2016 02:32
@ecrausch keep on coding!
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 02:32
@MrEmjay417 You want to be out of the loop before you declare no such contact.
Otherwise you haven't checked everyone.
Surya Khanal
@surajkhanal
Jan 21 2016 02:32
hard when converting celcius to forenheit
anyone can help?
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 02:33
@surajkhanal Which title? They give you a formula at one point
Surya Khanal
@surajkhanal
Jan 21 2016 02:34
i know the formula but i am confused where to put it in function
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 02:34
What's the challenge called?
Surya Khanal
@surajkhanal
Jan 21 2016 02:34
hehe

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

forenheit=convert*(9/5)+32;
// Only change code above this line
if ( typeof fahrenheit !== 'undefined' ) {
return fahrenheit;
} else {
return 'fahrenheit not defined';
}
}

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

DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 02:36
forenheit
Also, you're not doing anything with the celsius variable, which is where your information is stored @surajkhanal
Surya Khanal
@surajkhanal
Jan 21 2016 02:38
just what is the logic ?
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 02:38
alright, nn all
Surya Khanal
@surajkhanal
Jan 21 2016 02:39
oh shit.. i made great mistake..
Liam Bang
@Liam345
Jan 21 2016 02:41

I am doing the second exercise in Jquery .It says there is an unexpected error that I cannot figure. <script>
$(document).ready(function($("button").addClass("animated bounce");) {

});
</script>

KoToZ
@Mohamedtareque
Jan 21 2016 02:41
hey guys
http://codepen.io/Mohamedtareque/pen/xZpdvP?editors=110
this is my try but i have stuck at contact >> dropdown ??
why nor dropping ?
Andrew Kemp
@andrewtkemp1
Jan 21 2016 02:42
@Liam345 you're missing a {} for your function
Everything after function should come after the curly bracket, unless I am mistaken.
Mare
@maere
Jan 21 2016 02:44
Working on using arguments and .filter together and have tried it a bunch of different ways and I keep getting roadblocked. What I would like to do is iterate through the remaining arguments, but the interpreter won't let me put a function inside of loop. Here is a working version of the code if I pass in a concrete value:
function destroyer(arr) {

 var initial = arguments[0]; 
 var result = [];
  var destroyerNumber;


    destroyerNumber = arguments[1];

    result = arr.filter(function(element, index, array){
      return element!==destroyerNumber;
    });

  return result;
}
When I try to put the filter in a loop I get an error (no functions allowed in a loop), and when I try to pass a function call into the loop it doesn't recognize the variables, and when I try to use the optional argument for the .filter function along with the callback it doesn't seem to recognize the optional parameter as "this" as expected (e.g. if I pass in "arguments" as the optional parameter, shouldn't this[i] give me the value?)
function destroyer(arr) {

 var initial = arguments[0]; 
 var result = [];
 var destroyerNumber = arguments[1];

 /* would like to pass in i for each argument from 1-n in arguments */ 

 //for(var i=1; i<arguments.length; i++){
 //  destroyerNumber = arguments[i];
     /*will not allow me to run filter function inside a loop */
 //} 


    result = arr.filter(function(element, index, array){
      return element!==destroyerNumber;
    }, destroyerNumber); //tried passing in the optional object, but cannot call it as "this"

  return result; 
} 

  //function doesNotDestroy(element, index, array){
 //   return (element!==this);

 //  }

destroyer([1, 2, 3, 1, 2, 3], 2, 3);
Derek Welton
@freefora11
Jan 21 2016 02:48
So I need help info on web hosting. Who would you recommend for web hosting and why? Also which provider do you use for your clients?
Mare
@maere
Jan 21 2016 02:49
This message was deleted
greg
@wearenotgroot
Jan 21 2016 03:01
@maere why not use .indexOf(arg) ?
@maere also remember that the number of arguments can greater than 2
@maere in this instance there are 3 arguments
@maere what i suggest that you do is put the arguments from index 1-up-to arguments.length into an array
DevPoetsSociety
@DevPoetsSociety
Jan 21 2016 03:12
@maere filter iterates, you don't have to do so.
Manish Giri
@Manish-Giri
Jan 21 2016 03:23
@freefora11 i’ve used namecheap n godaddy
Pathrinathan (Pat). P
@pathmanp
Jan 21 2016 03:28

@Manish-Giri @DevPoetsSociety @wearenotgroot @freefora11 @andrewtkemp1

what’s wrong with thsi code

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++){

  if(contacts[i]["firstName"] === firstName && contacts[i].prop === prop){
    document.write(prop);
  }

}

// Only change code above this line
}

// Change these values to test your function
lookUp("Kristian", "lastName");

Derek Welton
@freefora11
Jan 21 2016 03:29
@Manish-Giri ive heard bad things about go dady
Manish Giri
@Manish-Giri
Jan 21 2016 03:31
@code4ninja you should be using this for prop
if(contacts[i].hasOwnProperty([prop]))
Pathrinathan (Pat). P
@pathmanp
Jan 21 2016 03:32
@Manish-Giri oh my god!! you right
@Manish-Giri let me try
Slade
@theDigEx
Jan 21 2016 03:39
Frogs are awesome...and so is flexbox!
Ryan
@BlueAccords
Jan 21 2016 03:41
Just wondering but what’s normally used for authentication/session management now a days for node/express?
I’m assuming its passports?
Avinash
@luvumom
Jan 21 2016 03:41
Your p element should have the text "View more " (with a space after it). <p>"view more "<a href="http://www.freecatphotoapp.com">cat photos</a>
</p> <!--but it is not compiling -->
Ryan
@BlueAccords
Jan 21 2016 03:41
passportjs*
Avinash
@luvumom
Jan 21 2016 03:41
Your p element should have the text "View more " (with a space after it).
Manish Giri
@Manish-Giri
Jan 21 2016 03:43
@luvumom
<p>View more   <a href="http://www.freecatphotoapp.com">cat photos</a></p>
Avinash
@luvumom
Jan 21 2016 03:45

@luvumom
```

<p>View more <a href="http://www.freecatphotoapp.com">cat photos</a></p>
```thanx

CamperBot
@camperbot
Jan 21 2016 03:45
sorry luvumom, you can't send brownie points to yourself! :sparkles: :sparkles:
Zozo
@zozoaco
Jan 21 2016 03:46

```html

<p>Click here for <a #="http://www.freecatphotoapp.com">cat photos</a>.</p>
``` it wont let me make a dead link?

Pranav Doshi
@pranavdoshi
Jan 21 2016 03:46
@zozoaco its wrong
dead links have # in href
did u get ur mistake??
@zozoaco
Zozo
@zozoaco
Jan 21 2016 03:47
uhhh
so where would i put the #
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:48
after href
Pathrinathan (Pat). P
@pathmanp
Jan 21 2016 03:49
@Manish-Giri what does it return?
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:49
u know the anchor tags and how to set links?
<a href="www.google.com"></a>
mslee017
@mslee017
Jan 21 2016 03:49
var count = 0;
function cc(card) {
  // Only change code below this line
  if(card > 1 && card < 7) {
    count ++;
  }
  else if(card >= 10) {
    count --;
  }
  else {
    count += 0;
  }

  if(count > 0) {
    return count + " Bet";
  }
  else {
    return count + " Hold";
  }
  // Only change code above this line
}
can someone help a newb out? :worried: It seems pretty clear it isnt working cause the else if of card >=10 seeing as it doesn't know the face cards are higher but not sure how to represent them as such
Manish Giri
@Manish-Giri
Jan 21 2016 03:50
@code4ninja it should check if it has the given property and if it does, thn return it
      if(contacts[i].hasOwnProperty([prop])) {

        return contacts[i][prop];
      }
Pathrinathan (Pat). P
@pathmanp
Jan 21 2016 03:50
@Manish-Giri I assumed. Thanks
CamperBot
@camperbot
Jan 21 2016 03:50
code4ninja sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star: 598 | @manish-giri | http://www.freecodecamp.com/manish-giri
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:50
@mslee017 i guess use one if and use others else if
and only else should come at end
@mslee017
Yasin Yusuf
@YasinYA
Jan 21 2016 03:51
hi guys
can any one tell me what is wrong with this code
mslee017
@mslee017
Jan 21 2016 03:51
ok I'll try that
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:51
hello @YasinYA
Zozo
@zozoaco
Jan 21 2016 03:51
the dead links are working against me
mslee017
@mslee017
Jan 21 2016 03:51
switch probably would be better for that i guess
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:52
@zozoaco against??
Yasin Yusuf
@YasinYA
Jan 21 2016 03:52
$(document).ready(function() {

  function timer() {
    var breakTime = 5;
    var section = 25;
    var start = "Start";
    var stop = "Stop";


    $("#inner1").click(function() {
      var el = getElementsById("par").innerHTML= breakTime;
      breakTime++;
    });
  };

  timer();
});
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:52
@mslee017 yes i am not dat gud at switch so i never use it
Zozo
@zozoaco
Jan 21 2016 03:52
@pranavdoshi i just can't figure it out even though it's obviously quite simple that's all
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:52
:P
@zozoaco listen <a href=""></a>
Zozo
@zozoaco
Jan 21 2016 03:53
uh huh
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:53
these are ancor tags now the href attribute within that comes the link of the page u want to redirect to
Will G
@willgorham
Jan 21 2016 03:53
@YasinYA should be getElementById not Elements
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:53
and within the tags will come text to which u want it to link.
Yasin Yusuf
@YasinYA
Jan 21 2016 03:53
oh ok @willgorham
Zozo
@zozoaco
Jan 21 2016 03:53
yeah i got that far its just the # placement i guess??
chriscchristensen
@chriscchristensen
Jan 21 2016 03:53

Capture.PNG

Why is is throwing this error?

Could anyone give me a hand with this ?
I am not seeing what I am doing wrong.
Liam Bang
@Liam345
Jan 21 2016 03:54
I am doing an exercise on Jquery and I have to add one class with each of the three selectors that is by type, class and id. My code looks like this but its not working as I am possibly not doing what I am asked to : <script>
$(document).ready(function() {
$("button").addClass("animated");
$(".btn").addClass("shake");
$("#target1").addClass("animated shake btn-primary);")
});
</script>
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:54
yep @zozoaco so so u will place # instaed of www.soandso.com
got it.??
Will G
@willgorham
Jan 21 2016 03:54
@YasinYA also if you're already using jQuery you can just use
var el = $('#par').html(breakTime);
Yasin Yusuf
@YasinYA
Jan 21 2016 03:54
@willgorham it is not workin still
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:54
@YasinYA wat error u getting?
Will G
@willgorham
Jan 21 2016 03:55
what error are you getting?
Zozo
@zozoaco
Jan 21 2016 03:55
@pranavdoshi Oh, oh, ok, I get it now
Yasin Yusuf
@YasinYA
Jan 21 2016 03:55
@willgorham no result is appearing
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:55
@zozoaco great
;)
@Liam345 hey
Liam Bang
@Liam345
Jan 21 2016 03:56
@pranavdoshi Hi
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:56
so wat error u getting?
Yasin Yusuf
@YasinYA
Jan 21 2016 03:56
@pranavdoshi am using codepen
mslee017
@mslee017
Jan 21 2016 03:56
Well that worked @pranavdoshi
Will G
@willgorham
Jan 21 2016 03:56
@YasinYA can you provide your codepen
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:57
@mslee017 cool great.
Yasin Yusuf
@YasinYA
Jan 21 2016 03:57
ok that is simpler
mslee017
@mslee017
Jan 21 2016 03:57
I just wanted to try and condense it but not sure if possible :P
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:57
it was just conditional statement got haywire
:)
Liam Bang
@Liam345
Jan 21 2016 03:57
I am not getting any error but I am not fulfilling one criteria that is :Only add one class with each of your three selectors. @pranavdoshi
chriscchristensen
@chriscchristensen
Jan 21 2016 03:57
NVM FCC was just buggin out.
I got it
Yasin Yusuf
@YasinYA
Jan 21 2016 03:58
This message was deleted
Pranav Doshi
@pranavdoshi
Jan 21 2016 03:58
@Liam345 post ur waypoint link.
DJ
@qualitymanifest
Jan 21 2016 03:58
@YasinYA #inner1 is a div not a button
Yasin Yusuf
@YasinYA
Jan 21 2016 03:59
ooooh @qualitymanifest thanks man
CamperBot
@camperbot
Jan 21 2016 03:59
yasinya sends brownie points to @qualitymanifest :sparkles: :thumbsup: :sparkles:
:star: 824 | @qualitymanifest | http://www.freecodecamp.com/qualitymanifest
DJ
@qualitymanifest
Jan 21 2016 03:59
@YasinYA also you haven't loaded jquery into your pen
Liam Bang
@Liam345
Jan 21 2016 04:00
@pranavdoshi how to post a waypoint link. I just joined 3 days ago.
DJ
@qualitymanifest
Jan 21 2016 04:00
@YasinYA hit the gear icon next to "JS", then click "quick add" and click "jquery" and save
Will G
@willgorham
Jan 21 2016 04:00
@YasinYA The click will still work on #inner1, but yes you need to load jQuery
Yasin Yusuf
@YasinYA
Jan 21 2016 04:00
yup @qualitymanifest am sleepy i have to get some sleep thanks man
CamperBot
@camperbot
Jan 21 2016 04:00
yasinya sends brownie points to @qualitymanifest :sparkles: :thumbsup: :sparkles:
:warning: yasinya already gave qualitymanifest points
Pranav Doshi
@pranavdoshi
Jan 21 2016 04:00
copy paste the url from the address bar.
Liam Bang
@Liam345
Jan 21 2016 04:01
http://www.freecodecamp.com/challenges/target-the-same-element-with-multiple-jquery-selectors#?solution=fccss%0A%20%20%24(document).ready(function()%20%7B%0A%24(%22button%22).addClass(%22animated%22)%3B%0A%20%20%20%20%24(%22.btn%22).addClass(%22shake%22)%3B%0A%20%20%20%20%24(%22%23target1%22).addClass(%22animated%20shake%20btn-primary)%3B%22)%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
chaitanya ashtekar
@chaitanyaashtekar
Jan 21 2016 04:02
@pranavdoshi kidhar se ho bhai ??
Yasin Yusuf
@YasinYA
Jan 21 2016 04:02
@willgorham @qualitymanifest thanks guys
CamperBot
@camperbot
Jan 21 2016 04:02
yasinya sends brownie points to @willgorham and @qualitymanifest :sparkles: :thumbsup: :sparkles:
:warning: yasinya already gave qualitymanifest points
:star: 404 | @willgorham | http://www.freecodecamp.com/willgorham
Will G
@willgorham
Jan 21 2016 04:03
@YasinYA no problem :+1:
Pranav Doshi
@pranavdoshi
Jan 21 2016 04:03
@Liam345 gimme 5 min dude.
@chaitanyaashtekar Mumbai.
chaitanya ashtekar
@chaitanyaashtekar
Jan 21 2016 04:04
@pranavdoshi okay
DJ
@qualitymanifest
Jan 21 2016 04:04
@Liam345 $("#target1").addClass("animated shake btn-primary);") you only need to add btn-primary to this one since #target1 is a button with the class btn so it already has animated and shake. also, you have a quotation mark outside of the addClass area and that semicolon should go at the very end
i'm talking about this );") that quotation mark needs to be moved into the addClass area, and that semicolon needs to be moved to the very end
Manish Giri
@Manish-Giri
Jan 21 2016 04:05
@Liam345 just modify the last line
$("#target1").addClass("btn-primary”);
Pranav Doshi
@pranavdoshi
Jan 21 2016 04:06
yep
Gary G
@garysa2010
Jan 21 2016 04:17

hi guys, any one care to help me with this---> ```
js // 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 === "") {
delete collection.id.prop;
} else if (value !== "") {
switch(prop) {
case 'tracks':
collection.prop.tracks.push(value);
break;
case 'album':
collection.prop.album = value;
break;
case 'artist':
collection.prop.artist = value;
break;
}

}

return collection;

}

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

```

Kevin Elser
@CoffeeCodeKevin
Jan 21 2016 04:24
Can anyone here help me with a CSS issue I'm having?
DJ
@qualitymanifest
Jan 21 2016 04:25
@keccakec maybe. if you have a codepen paste the link
Kevin Elser
@CoffeeCodeKevin
Jan 21 2016 04:25
I can't figure out how to make the text in the buttons not turn blue while also still changing white when hovering over the button
If I go with giving "a" a hover selector, it doesn't seem to do anything. I may be doing it wrong, though.
Eric Whittaker Jr
@ericwhittakerjr
Jan 21 2016 04:27
bonefire check for palindromes
Kevin Elser
@CoffeeCodeKevin
Jan 21 2016 04:27
It just sticks with whatever I set a's color to in css to disable the blue text
Eric Whittaker Jr
@ericwhittakerjr
Jan 21 2016 04:27
bonfire check for palindromes
CamperBot
@camperbot
Jan 21 2016 04:27

:fire:Bonfire: Check for Palindromes :link:

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



palindrome("eye");

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

more info:  bf details | bf links | hint

Eric Whittaker Jr
@ericwhittakerjr
Jan 21 2016 04:27
hint
CamperBot
@camperbot
Jan 21 2016 04:27
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
Gary G
@garysa2010
Jan 21 2016 04:28
guys, help pls...
Kevin Elser
@CoffeeCodeKevin
Jan 21 2016 04:28
@garysa2010 What do you need help with?
Nvm, I'll scroll up
Pranav Doshi
@pranavdoshi
Jan 21 2016 04:28
@garysa2010 wat happen??
Kevin Elser
@CoffeeCodeKevin
Jan 21 2016 04:29
js // 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 === "") {
delete collection.id.prop;
} else if (value !== "") {
switch(prop) {
case 'tracks':
collection.prop.tracks.push(value);
break;
case 'album':
collection.prop.album = value;
break;
case 'artist':
collection.prop.artist = value;
break;
}

}

return collection;

}

// Alter values below to test your code
update(5439, "artist", "ABBA");
Just to make it easier to see for myself
Justin
@Justindmo
Jan 21 2016 04:30
@keccakec Conventions!
Gary G
@garysa2010
Jan 21 2016 04:30
@keccakec i am stuck with 1 exercise for days. thanks man!
CamperBot
@camperbot
Jan 21 2016 04:30
garysa2010 sends brownie points to @keccakec :sparkles: :thumbsup: :sparkles:
:star: 277 | @keccakec | http://www.freecodecamp.com/keccakec
DJ
@qualitymanifest
Jan 21 2016 04:31
@keccakec <center> is deprecated in HTML5 and <b> is supposed to be used as a "last resort". that said let me elaborate on the issue you're talking about
Kevin Elser
@CoffeeCodeKevin
Jan 21 2016 04:31
Making it into a switch and if else is definitely overcomplicating it for you
DJ
@qualitymanifest
Jan 21 2016 04:32
@keccakec i fixed it by nesting your button inside your a (you were doing the opposite)
Pranav Doshi
@pranavdoshi
Jan 21 2016 04:33
@keccakec hey did u get the css issue resolved on ur pen??
freebutterfly34
@freebutterfly34
Jan 21 2016 04:34
okay so I am supposed give my div element a background color of gray .....need help i have tried different ways
Pranav Doshi
@pranavdoshi
Jan 21 2016 04:34
@freebutterfly34 wat haapen
freebutterfly34
@freebutterfly34
Jan 21 2016 04:35
I inserted it after the div element nothing happen
DJ
@qualitymanifest
Jan 21 2016 04:35

@freebutterfly34

.divClass {
background-color: gray;
}

then apply the class divClass or whatever it should be to your div element

Hoodps
@Hoodps
Jan 21 2016 04:36
background-color: gray;
Justin
@Justindmo
Jan 21 2016 04:38
@freebutterfly34 Or inline CSS as follows:
<div style="background-color: gray;"></div>
Tim Bell
@MindfulBell
Jan 21 2016 04:42
how do I target the nav tabs...can't figure it out...the ALL ONLINE OFFLINE: http://codepen.io/MindfulBell/pen/mePXEm
Liam Bang
@Liam345
Jan 21 2016 04:42
The target 4 button was supposed to italicize , but there is some error that is stopping from that happening?<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target4").html("<i>jQuery Playground</i>");
});
</script>
Pranav Doshi
@pranavdoshi
Jan 21 2016 04:46
@Liam345 u can use css selector and give font style
chaitanya ashtekar
@chaitanyaashtekar
Jan 21 2016 04:48

can anyone tell me why this code isnt working ???
```

function largestOfFour(arr) {
//display all elements of the array

for(var i=0;i<arr.lentgh;i++){
for(var j=0;j<arr[i].length;j++){
console.log(arr[i][j]);
}
}
}

``` display all emenents of array

function largestOfFour(arr) {
//display all elements of the array

for(var i=0;i<arr.lentgh;i++){
for(var j=0;j<arr[i].length;j++){
console.log(arr[i][j]);
}
}
}
Will G
@willgorham
Jan 21 2016 04:49
@MindfulBell target with what, CSS?
jQuery?
chaitanya ashtekar
@chaitanyaashtekar
Jan 21 2016 04:49
@pranavdoshi ?
Pranav Doshi
@pranavdoshi
Jan 21 2016 04:50
@chaitanyaashtekar wait a sec seeing ur code.
chaitanya ashtekar
@chaitanyaashtekar
Jan 21 2016 04:50
ok
Yasin Yusuf
@YasinYA
Jan 21 2016 04:50
@willgorham i got a problem with the clock
Pranav Doshi
@pranavdoshi
Jan 21 2016 04:51
@chaitanyaashtekar post the waypoint link
Will G
@willgorham
Jan 21 2016 04:52
@YasinYA what is the problem? / post your codepen again please
Yasin Yusuf
@YasinYA
Jan 21 2016 04:52
@willgorham http://codepen.io/YasinYA/pen/jWYEeQ?editors=001 when i try to decrement the box one first it will increment not decrementing
Tim Bell
@MindfulBell
Jan 21 2016 04:52
@willgorham css
chaitanya ashtekar
@chaitanyaashtekar
Jan 21 2016 04:53
@pranavdoshi this is for waypoint Return Largest Numbers in Arrays.but im not trying to do that ,im just trying to print all elements of the array.nothing to do with the waypoint
Pranav Doshi
@pranavdoshi
Jan 21 2016 04:53
so u are passing a single array or multi dimension array?
chaitanya ashtekar
@chaitanyaashtekar
Jan 21 2016 04:54
@pranavdoshi multi
 largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);
@pranavdoshi it should work na ?
@pranavdoshi https://repl.it/BfY3/2
Pranav Doshi
@pranavdoshi
Jan 21 2016 04:55
wait a sec
Will G
@willgorham
Jan 21 2016 04:57
@MindfulBell you're running into is bootstrap's CSS styles overriding your own
Tim Bell
@MindfulBell
Jan 21 2016 04:57
@willgorham yea i found a stack overflow on it. this is why bootstrap upsets me i figured it out though thanks
CamperBot
@camperbot
Jan 21 2016 04:57
mindfulbell sends brownie points to @willgorham :sparkles: :thumbsup: :sparkles:
:star: 405 | @willgorham | http://www.freecodecamp.com/willgorham
Pranav Doshi
@pranavdoshi
Jan 21 2016 04:58
length spelling
@chaitanyaashtekar
chaitanya ashtekar
@chaitanyaashtekar
Jan 21 2016 04:58
@pranavdoshi arrrr :laughing: thanks
CamperBot
@camperbot
Jan 21 2016 04:58
chaitanyaashtekar sends brownie points to @pranavdoshi :sparkles: :thumbsup: :sparkles:
:star: 290 | @pranavdoshi | http://www.freecodecamp.com/pranavdoshi
Pranav Doshi
@pranavdoshi
Jan 21 2016 04:58
np dude
Will G
@willgorham
Jan 21 2016 04:58
@YasinYA checking it out now, give me one sec
Pranav Doshi
@pranavdoshi
Jan 21 2016 04:59
even i did not figured out in first instance
:P
chaitanya ashtekar
@chaitanyaashtekar
Jan 21 2016 05:00
@pranavdoshi yup. a single spelling mistake got me doubting my logic even though i have used it hundreds of times .hahaha :-p
Yasin Yusuf
@YasinYA
Jan 21 2016 05:00
@willgorham ok take your time
freebutterfly34
@freebutterfly34
Jan 21 2016 05:02
@Justindmo @qualitymanifest thanks signing off will try again with fresh eyes...
CamperBot
@camperbot
Jan 21 2016 05:02
freebutterfly34 sends brownie points to @justindmo and @qualitymanifest :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for justindmo
:star: 825 | @qualitymanifest | http://www.freecodecamp.com/qualitymanifest
Jonathan
@jonjitsu
Jan 21 2016 05:03
How long do we need to keep the heroku apps after we've submitted? I've reached my 5 app limit...
Will G
@willgorham
Jan 21 2016 05:04
@YasinYA you should increment/decrement breaktime first (when you hit the + or - ) and then set the #par html to that value
Yasin Yusuf
@YasinYA
Jan 21 2016 05:05
@willgorham yeah it works thanks man
CamperBot
@camperbot
Jan 21 2016 05:05
yasinya sends brownie points to @willgorham :sparkles: :thumbsup: :sparkles:
:star: 406 | @willgorham | http://www.freecodecamp.com/willgorham
Will G
@willgorham
Jan 21 2016 05:07
@YasinYA no worries
chaitanya ashtekar
@chaitanyaashtekar
Jan 21 2016 05:15
@pranavdoshi check inbox
Pranav Doshi
@pranavdoshi
Jan 21 2016 05:16
inbox?
chaitanya ashtekar
@chaitanyaashtekar
Jan 21 2016 05:16
@pranavdoshi private msg.
@pranavdoshi go to gitter.im you will see it on the left side
Sharan L
@sharan-lh
Jan 21 2016 05:17

In Truncate a string problem

function truncate(str, num) {
  // Clear out that junk in your trunk
  if(str.length === num){
    return str.slice(0,num);
}
else{
  return str.slice(0,num)+'...';
}
}
truncate("A-tisket a-tasket A green and yellow basket", "A-tisket a-tasket A green and yellow basket".length + 2) ;

can anyone tell what's wrong here?

cannelflow
@cannelflow
Jan 21 2016 05:19
@sharan-lh if str.length<=numyou can simply return str
@sharan-lh suppose you have str = str and num =3 then return is str
cannelflow
@cannelflow
Jan 21 2016 05:30
@sharan-lh should return return str.slice(0,num-3)+'...'; substract three to the end position to account for the dots to be appended at the end
Alvaro Gomez
@alvaro911
Jan 21 2016 05:31
can someone help me with one of the bonefire challenges?
Will G
@willgorham
Jan 21 2016 05:33
@alvaro911 what's up?
cannelflow
@cannelflow
Jan 21 2016 05:34
@sharan-lh you have to return one more return str.slice(0,num)+'...'; if str.length wont exeeds num
@alvaro911 ?
Alvaro Gomez
@alvaro911
Jan 21 2016 05:36
It's ok I found out what I did wrong I was missing one return, thank you though @cannelflow
CamperBot
@camperbot
Jan 21 2016 05:36
alvaro911 sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:star: 481 | @cannelflow | http://www.freecodecamp.com/cannelflow
cannelflow
@cannelflow
Jan 21 2016 05:36
@alvaro911 :+1:
Alvaro Gomez
@alvaro911
Jan 21 2016 05:36
:P
Barack
@mishmishilicous1
Jan 21 2016 05:51
Hi, Can some1 assist me with the "Stand in Line" way point please.
cannelflow
@cannelflow
Jan 21 2016 05:52
@mishmishilicous1 tried?
Yasin Yusuf
@YasinYA
Jan 21 2016 05:55
@willgorham are you there
Barack
@mishmishilicous1
Jan 21 2016 05:55
yip, I have the function already given. then I'm requested to add the number to the end of the array (with the use of push?!?)
After that use shift in order to remove the first element of array
Will G
@willgorham
Jan 21 2016 05:56
@YasinYA yep
cannelflow
@cannelflow
Jan 21 2016 05:56
@mishmishilicous1 yes
correct
Yasin Yusuf
@YasinYA
Jan 21 2016 05:56
@willgorham can you take a look with this code and help me
Barack
@mishmishilicous1
Jan 21 2016 05:58
so i wrote that: queue.push(item); and var firstElement= queue.shift();
return firstElement
I'm doin something wrong
cause I'm getting RangerError
cannelflow
@cannelflow
Jan 21 2016 06:00
@mishmishilicous1 you need to do like arr.push(item)
and return arr.shift()
Will G
@willgorham
Jan 21 2016 06:01
@YasinYA sure, what do you need help with?
Barack
@mishmishilicous1
Jan 21 2016 06:01
@cannelflow gotcha.. I'll give that a go. thanks mate!
CamperBot
@camperbot
Jan 21 2016 06:01
mishmishilicous1 sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:star: 482 | @cannelflow | http://www.freecodecamp.com/cannelflow
cannelflow
@cannelflow
Jan 21 2016 06:02
@mishmishilicous1 :+1:
@YasinYA ?
Yasin Yusuf
@YasinYA
Jan 21 2016 06:03
@willgorham with this code am trying to make it reusable so am getting an error like this main.js:19 Uncaught TypeError: Cannot read property 'html' of undefined and this is the code
$(document).ready(function() {
  var breakTime = 5;
  var section = 25;
  var start = "Start";
  var stop = "Stop";


  function Pomodoro(element, target) {
    this.element = element;
    this.target = target;
  };

  Pomodoro.prototype.incrementer = function incrementer() {
    // this takes care of break and section timers incrementing

    this.element.click(function() {
      breakTime++;
      var el = this.target;
      el.html(breakTime);
    });
  };
// end
  Pomodoro.prototype.decrementer = function decrementer() {
    // this takes care of break and section timers incrementing

    this.element.click(function() {
      breakTime--;
      var el = this.target.html(breakTime);
    });

  };
// end

var breaker = new Pomodoro($("#inner1"), $("#par"));

breaker.incrementer();

});
@cannelflow that is the problem
cannelflow
@cannelflow
Jan 21 2016 06:04
@YasinYA perhaps you can post codepen link
Yasin Yusuf
@YasinYA
Jan 21 2016 06:05
@cannelflow ok let me make it
Robbie
@centraleft
Jan 21 2016 06:05
@YasinYA
Yasin Yusuf
@YasinYA
Jan 21 2016 06:06
@cannelflow do you need with the html or the js only
cannelflow
@cannelflow
Jan 21 2016 06:06
@YasinYA you need to make button etc in html only
Yasin Yusuf
@YasinYA
Jan 21 2016 06:08
@cannelflow this is it http://codepen.io/YasinYA/pen/wMpqLX
cannelflow
@cannelflow
Jan 21 2016 06:11
@YasinYA i will let you know if i find anything
Yasin Yusuf
@YasinYA
Jan 21 2016 06:11
@cannelflow ok and thanks
CamperBot
@camperbot
Jan 21 2016 06:11
yasinya sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:star: 483 | @cannelflow | http://www.freecodecamp.com/cannelflow
Jose Dzireh Chong
@CodingDucky
Jan 21 2016 06:26
@maxeber yes, that's exactly what I want, thanks! How'd you do it?
CamperBot
@camperbot
Jan 21 2016 06:26
codingducky sends brownie points to @maxeber :sparkles: :thumbsup: :sparkles:
:star: 231 | @maxeber | http://www.freecodecamp.com/maxeber
Woodman
@btcmacroecon
Jan 21 2016 06:45
what are the coding languages that are paying the big bucks?
Jose Dzireh Chong
@CodingDucky
Jan 21 2016 06:46
Depends what sort of job it is
If it's a game that gets popular then probably one of the C languages or Java
If it's a website...
that's obvious
Andre Alonzo
@paycoguy
Jan 21 2016 06:48
@CodingDucky when you mean game, what platforms are you talking about?
i didn't know java was used for games
Jose Dzireh Chong
@CodingDucky
Jan 21 2016 06:49
Just some passing memory, probably got it wrong.
Even though it will be quite tedious, it is possible to make games on Java.
It'll just be ridiculously annoying because in Java you have to import basically everything from what I've heard

When you hover over the nav buttons on

http://codepen.io/FreeCodeCamp/full/VemmoX/

the entire button changes color

When you do it on mine

http://codepen.io/CodingDucky/pen/jWajZm

There's parts that don't change color. Why is that?

Andrew Kemp
@andrewtkemp1
Jan 21 2016 06:52
hey all
Jose Dzireh Chong
@CodingDucky
Jan 21 2016 06:52
@andrewtkemp1 hey
Aks1610
@Aks1610
Jan 21 2016 07:01
Hi all
James Jung
@thejcode24
Jan 21 2016 07:01
Hello World
CamperBot
@camperbot
Jan 21 2016 07:01

welcome to FreeCodeCamp @thejcode24!

Aks1610
@Aks1610
Jan 21 2016 07:06
I am doing JQuery challenge on FCC but "Submit and go to my next challenge" button is not taking me to the next page..... Can anyone help me with the problem.... I am using chrome browser
DJ
@qualitymanifest
Jan 21 2016 07:07
@CodingDucky what parts don't change color for you? for me all your .nava elements change color, as they are supposed to do
@Aks1610 paste the link to your challenge, and don't cut anything off, since it will have your code in the URL
Aks1610
@Aks1610
Jan 21 2016 07:09
Well I tried on my mobile's chrome browser, it works fine there
DJ
@qualitymanifest
Jan 21 2016 07:09
@Aks1610 yeah that's all well and good but i can't see what you did. can you paste the link?
Aks1610
@Aks1610
Jan 21 2016 07:10
Yup
http://www.freecodecamp.com/challenges/delete-your-jquery-functions#?solution=fccss%0A%20%20%24(document).ready(function()%20%7B%0A%20%20%20%20%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
Here it is
DJ
@qualitymanifest
Jan 21 2016 07:13
@Aks1610 that works for me. try copying your code, hitting the reset button, then pasting it and hit 'run tests' again
Aks1610
@Aks1610
Jan 21 2016 07:13
Ok
Blaze
@Blazephoenix
Jan 21 2016 07:20
How do I center anything AND make it responsive without having to use bootstrap?
Ali Majed
@AliMajed14
Jan 21 2016 07:38
This message was deleted
bootstrap is css so css statment do it and maybe this can help you: https://www.w3.org/Style/Examples/007/center.en.html @Blazephoenix
Blaze
@Blazephoenix
Jan 21 2016 07:40
@AliMajed14 Thanks
CamperBot
@camperbot
Jan 21 2016 07:40
blazephoenix sends brownie points to @alimajed14 :sparkles: :thumbsup: :sparkles:
:star: 118 | @alimajed14 | http://www.freecodecamp.com/alimajed14
Jose Dzireh Chong
@CodingDucky
Jan 21 2016 07:54
@qualitymanifest If you hover over them, you'll notice that there are blank spaces between the spots that light up. How do I get rid of those?
Basically I want that entire right side of the nav bar to be able to be clicked on
Coding Warrior
@CodingWarrior
Jan 21 2016 07:57
@mmacedoeu Hey! Just finished WP151: "Escape Sequences in Strings" ... thought I'd check back about working together on a project ... let me know, thanks!
CamperBot
@camperbot
Jan 21 2016 07:57
codingwarrior sends brownie points to @mmacedoeu :sparkles: :thumbsup: :sparkles:
:star: 324 | @mmacedoeu | http://www.freecodecamp.com/mmacedoeu
Abhishek Choudhary
@Khatkar786
Jan 21 2016 08:09
Hey my sum all number is not working
Its working for [1,4] and [5,10] but not for [4,1] and [10,5]
There's little bug in code while counting in descending order
Can anyone help?
Andre Alonzo
@paycoguy
Jan 21 2016 08:12
@Khatkar786 post what you have
Abhishek Choudhary
@Khatkar786
Jan 21 2016 08:13
@paycoguy
Sorry for link
Cannot format from phone
@paycoguy did you find anything?
Andre Alonzo
@paycoguy
Jan 21 2016 08:18
@Khatkar786 looks like your code never goes inside your last for loop
Abhishek Choudhary
@Khatkar786
Jan 21 2016 08:24
@paycoguy yes
But why?
Else should be clear
If arr0<arr1 else arr0>arr1
Andre Alonzo
@paycoguy
Jan 21 2016 08:25
else isn't the problem
Abhishek Choudhary
@Khatkar786
Jan 21 2016 08:25
So?
Andre Alonzo
@paycoguy
Jan 21 2016 08:25
it's the forloop
for(var j=arr[1];j>arr[0];j--){
say your array is [4, 1]
for(var j=1;j>4;j--){
Diki Ananta
@dikiaap
Jan 21 2016 08:26
Hi, where can I get links to describe my group free code camp? long time ago I found that and now I forgot.
Abhishek Choudhary
@Khatkar786
Jan 21 2016 08:27
Ohh
Andre Alonzo
@paycoguy
Jan 21 2016 08:27
j is 1 on the first loop, then j is 0, then j is -1...
Abhishek Choudhary
@Khatkar786
Jan 21 2016 08:28
Yeah :0
Sorry man
I gotta use math.max
Diki Ananta
@dikiaap
Jan 21 2016 08:28
:confused:
Abhishek Choudhary
@Khatkar786
Jan 21 2016 08:28
Thanks @paycoguy
CamperBot
@camperbot
Jan 21 2016 08:28
khatkar786 sends brownie points to @paycoguy :sparkles: :thumbsup: :sparkles:
:star: 401 | @paycoguy | http://www.freecodecamp.com/paycoguy
Abhishek Choudhary
@Khatkar786
Jan 21 2016 08:29
@dikiaap sry dude didn't got your question
Group fcc?
Andre Alonzo
@paycoguy
Jan 21 2016 08:29
@Khatkar786 yah use min max, it'll make your code shorter
Diki Ananta
@dikiaap
Jan 21 2016 08:30
@Khatkar786 yeah, I will insert to wiki free code camp
Abhishek Choudhary
@Khatkar786
Jan 21 2016 08:30
@paycoguy yes ::
@dikiaap that would be good :)
Diki Ananta
@dikiaap
Jan 21 2016 08:31
But I can't found
Abhishek Choudhary
@Khatkar786
Jan 21 2016 08:32
@dikiaap sorry man can't help, I am new
Diki Ananta
@dikiaap
Jan 21 2016 08:33
@Khatkar786 oh yeah, nope. :smile:
Kalle Lampe
@Trasovitch
Jan 21 2016 09:06
Good morning!
Ehiemere Ogenna Faith
@2rufaith
Jan 21 2016 09:10
Morning guys
Brittany Harmon
@harmon520
Jan 21 2016 09:10
    $(".well:nth-child(2)").addClass("animated bounce");
Make the second child in each of your well elements bounce. You must target the children of element with the target class.
Can anyone tell my why my code is wrong?
It's making the whole parent element bounce
Ali Majed
@AliMajed14
Jan 21 2016 09:20
@harmon520 post full code
Brittany Harmon
@harmon520
Jan 21 2016 09:21
<script>
  $(document).ready(function() {
    $("#target1").css("color", "red");
    $("#target1").prop("disabled", true);
    $("#target4").remove();
    $("#target2").appendTo("#right-well");
    $("#target5").clone().appendTo("#left-well");
    $("#target1").parent().css("background-color", "red");
    $("#right-well").children().css("color", "orange");
    $(".well:nth-child(2)").addClass("animated bounce");
  });
</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>
Aleksander Gębicki
@Takumar
Jan 21 2016 09:22
@harmon520 this exercise as I remember good is a little tricky :-)
You have to think about buttons located inside "well" not the well itself.
You have many buttons with class target, so you choose nth-child with class .target.
haider
@candh
Jan 21 2016 09:23
maybe try eq()
Brittany Harmon
@harmon520
Jan 21 2016 09:25
@Takumar Hmmm... that did work. Just trying to understand why now.
Thank you though.
eddsaura
@eddsaura
Jan 21 2016 09:26
As far as I can remember it was easy, just changing the ids or classes etc
Jack Lyons
@JackEdwardLyons
Jan 21 2016 09:30
i guys I have a css questions with regards to mobile devices: i am trying to get my background image to scroll down along with the content on mobile.... currently the image exists at the top, but when I scroll there is only whitespace underneath. I would like the image to scroll with the content... any suggestions? It's for a website I'm trying to make :)
url: www.betabuddy.net
actually
never mind, i think i fixed it :)
actually, nope still broken :(
Aleksander Gębicki
@Takumar
Jan 21 2016 09:38
@harmon520 you have to show what didn't work :-) I even don't remember which waypoint is it.
@harmon520 have you tried: $(".target:nth-child(2)").addClass("animated bounce");
Jean Louis Salbego
@jlouiss
Jan 21 2016 09:53
Guys, i need help with bootstrap/css.
Minhazul Islam
@Minhazul-islam
Jan 21 2016 09:54
This message was deleted
Jean Louis Salbego
@jlouiss
Jan 21 2016 09:55
There's a button generating text, and i have a sticky footer on the bottom. When the text is quite long the button goes below the footer, how can i fix this?
i'm using css bootstrap jquery
Priyanka
@prinsta3110
Jan 21 2016 10:15
hi guys, need help with using a CSS Class to Style an Element
Unable to get the required output
(Absolutely new to coding here :-/)
Mohit Nehru
@MohitNehru
Jan 21 2016 10:16
Access the myStorage JSON object to retrieve the contents of the glove box. Only use object notation for properties with a space in their name.
// Setup
var myStorage = {
  "car": {
    "inside": {
      "glove box": "maps",
      "passenger seat": "crumbs"
     },
    "outside": {
      "trunk": "jack"
    }
  }
};
myStorage.car.inside["glove_box"];
// Only change code below this line

var gloveBoxContents = ""; // Change this line
wondering what i need to do.
Alex
@Alexx280
Jan 21 2016 10:16
What command/function I have to use in Sorted Union?
Aleksander Gębicki
@Takumar
Jan 21 2016 10:19
@MohitNehru "glove box" property doesn't have underscore in its name. Remove it.
That's why you put name of property in quotation marks because of space in name :-)
@MohitNehru you are also allowed to change code only below the comment, so assign your value to new variable:
var gloveBoxContents = ...
@Alexx280 do you have anything? If not, try to concatenate arrays using concat() method.
Aleksander Gębicki
@Takumar
Jan 21 2016 10:34
Guys @MohitNehru and @Alexx280 are you alive? :-)
eddsaura
@eddsaura
Jan 21 2016 10:37
hey ppl
I did it ok but don't understand how it works, exactly what is doing inside the function???
var array = [4,5,6,7,8];
var singleVal = 0;

// Only change code below this line.

singleVal = array.reduce(function(previousVal, currentVal) {
 return previousVal + currentVal;
 }, 0);
previousVal and currentVal why? :sa:
Alex
@Alexx280
Jan 21 2016 10:40
@Takumar I trying
Aleksander Gębicki
@Takumar
Jan 21 2016 10:41
@Alexx280 very good, I expected you will say "OK" after you read it :-) or "I don't understand" or something else :-)
Kirill Zharov
@KirillZharov
Jan 21 2016 10:51
"Not enough coins" this correct phrase?
Xavier
@kaatsuto
Jan 21 2016 10:52
@KirillZharov I think so
Kirill Zharov
@KirillZharov
Jan 21 2016 10:53
@kaatsuto Thank you) where you from?)
CamperBot
@camperbot
Jan 21 2016 10:53
kirillzharov sends brownie points to @kaatsuto :sparkles: :thumbsup: :sparkles:
:star: 18 | @kaatsuto | http://www.freecodecamp.com/kaatsuto
Xavier
@kaatsuto
Jan 21 2016 10:54
Ivory Coast (Côte d'Ivoire)
Kirill Zharov
@KirillZharov
Jan 21 2016 10:54
@kaatsuto Cool :)
Altiano Gerung
@Altiano
Jan 21 2016 10:54
Where is that?
kirbyedy
@kirbyedy
Jan 21 2016 10:55
africa man :)
Xavier
@kaatsuto
Jan 21 2016 10:56
sorry somewhere in west africa
french speaking country
lots people from lost of different places...
Jack Gilbert
@j-gilla
Jan 21 2016 10:58
// Setup
var myObj = {
  gift: "pony",
  pet: "kitten",
  bed: "sleigh"
};

function checkObj(checkProp) {
  // Your Code Here

 myObj.hasOwnProperty();



  return checkProp;
}

// Test your code by modifying these values
checkObj("");
I don't understand what it's asking me to do on Testing Objects for Properties. Help anyone?
marzelin
@marzelin
Jan 21 2016 11:00
help testing objects
CamperBot
@camperbot
Jan 21 2016 11:00

:point_right: waypoint testing objects for properties [wiki]

Waypoint: Testing Objects for Properties

Sometimes it is useful to check if the property of a given object exists or not. We can use the .hasOwnProperty([propname]) method of objects to determine if that object has the given property name. .hasOwnProperty() returns true or false if the property is found or not.

Example

var myObj = {
  top: "hat",
  bottom: "pants"
};
myObj.hasOwnProperty("top");    // true
myObj.hasOwnProperty("middle");

:pencil: read more about waypoint testing objects for properties on the FCC Wiki

Jean Louis Salbego
@jlouiss
Jan 21 2016 11:01
http://codepen.io/JLouisS/full/yepbed/ how can i remove the horizontal scrollbar?
Mubashir Alam
@mubashir7
Jan 21 2016 11:03
I have one page bootstrape HTML page when i load that page on IE8 the page is not loading properly
can anyone help me
Alex
@Alexx280
Jan 21 2016 11:04
@Takumar can you give me one more advice?
Aleksander Gębicki
@Takumar
Jan 21 2016 11:06
@Alexx280 personally after concatenation I used filter() to complete the challenge, but instruction suggests reduce()
@Alexx280 when you have one big array, you have to find out how to remove duplicates from it, I used filtering.
marzelin
@marzelin
Jan 21 2016 11:09
@jlouiss remove row from here: <div class="row footer">.
or move the footer inside the .container. .row must be placed inside a .container or .container-fluid
marzelin
@marzelin
Jan 21 2016 11:14
@gilbertjacke the checkObj function should return true if the object has the given property, else it should return false.
Jack Gilbert
@j-gilla
Jan 21 2016 11:14
@marzelin Got it thank you
CamperBot
@camperbot
Jan 21 2016 11:14
gilbertjacke sends brownie points to @marzelin :sparkles: :thumbsup: :sparkles:
:star: 827 | @marzelin | http://www.freecodecamp.com/marzelin
eddsaura
@eddsaura
Jan 21 2016 11:20
how was the page where there were all the excercices
aggressor21
@aggressor21
Jan 21 2016 11:21
Hi Can someone help me with this module Use Responsive Design with Bootstrap Fluid Containers
Aleksander Gębicki
@Takumar
Jan 21 2016 11:21
@eddsaura there is no such page now, you can press "Map" link to see execises map.
Ups, sorry, there is:
http://www.freecodecamp.com/map
eddsaura
@eddsaura
Jan 21 2016 11:22
I mean, sorry. The explanation of the excercices
on github
aggressor21
@aggressor21
Jan 21 2016 11:22
I don't know how to introduce the container-fluid class
eddsaura
@eddsaura
Jan 21 2016 11:22
class = "container-fluid"
or class: i don't remember hehe
aggressor21
@aggressor21
Jan 21 2016 11:23

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

<style>

I did this , but it ain't working
anyone?
marzelin
@marzelin
Jan 21 2016 11:24
@aggressor21 no need to put link and style into a container
Aleksander Gębicki
@Takumar
Jan 21 2016 11:24
eddsaura
@eddsaura
Jan 21 2016 11:24
ty @Takumar
tank @Takumar
dude, thank you @Takumar
CamperBot
@camperbot
Jan 21 2016 11:24
eddsaura sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 1823 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Jan 21 2016 11:24
@eddsaura oh three times :-) You are welcome!
aggressor21
@aggressor21
Jan 21 2016 11:25
@marzelin so where do I introduce the class?
eddsaura
@eddsaura
Jan 21 2016 11:25
@aggressor21 you have to put it outside style...
something strange with this <stlye> tag right there
marzelin
@marzelin
Jan 21 2016 11:25
@aggressor21 around your content, I hope you know what content is ;)
Ayorinde
@Ayorinde
Jan 21 2016 11:26
@aggressor21 leave the link out of it and start from just before the <h2>
aggressor21
@aggressor21
Jan 21 2016 11:26
got it! @marzelin Haha I do.. :P
Thanks @marzelin
CamperBot
@camperbot
Jan 21 2016 11:27
aggressor21 sends brownie points to @marzelin :sparkles: :thumbsup: :sparkles:
:star: 829 | @marzelin | http://www.freecodecamp.com/marzelin
aggressor21
@aggressor21
Jan 21 2016 11:27
Thanks @eddsaura
CamperBot
@camperbot
Jan 21 2016 11:27
aggressor21 sends brownie points to @eddsaura :sparkles: :thumbsup: :sparkles:
:star: 250 | @eddsaura | http://www.freecodecamp.com/eddsaura
aggressor21
@aggressor21
Jan 21 2016 11:27
Thanks @Ayorinde
CamperBot
@camperbot
Jan 21 2016 11:27
aggressor21 sends brownie points to @ayorinde :sparkles: :thumbsup: :sparkles:
:star: 249 | @ayorinde | http://www.freecodecamp.com/ayorinde
eddsaura
@eddsaura
Jan 21 2016 11:27
oh ty :D
Amazing EXPLANATION :DDDD
WOW SUCH TEACHER wiki
var joinMe = ["Split","me","into","an","array"];
var joinedString = '';

// Only change code below this line.

joinedString = joinMe.join();
console.log(joinedString);
Nick Robson
@nickrobson
Jan 21 2016 11:31
lmao
eddsaura
@eddsaura
Jan 21 2016 11:31
?? what's wrong
Nick Robson
@nickrobson
Jan 21 2016 11:32
it didn't explain anything :p
eddsaura
@eddsaura
Jan 21 2016 11:32
with spaces so ok
not to you bro
to the wiki
var joinMe = ["Split","me","into","an","array"];
var joinedString = '';

// Only change code below this line.

joinedString = joinMe.join(" ");
console.log(joinedString);
boss pls?
Ashley
@newwebash
Jan 21 2016 11:37
Hello, I hope someone can help me with one of the first Javascript challenges.
Xavier
@kaatsuto
Jan 21 2016 11:37
<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 class="smaller-image" src="https://bit.ly/fcc-relaxing-cat">
Ashley
@newwebash
Jan 21 2016 11:37
I need to convert celsius to farenheit. Here is what I have so far:
function convert(celsius) {
  // Only change code below this line
  var farenheit = celsius * (9/5) + 32;

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

// Change the inputs below to test your code
convert(0);
I've tried to define the farenheit variable based on the algorithm provided, but don't know what to do next. Can anyone point me in the right direction?
eddsaura
@eddsaura
Jan 21 2016 11:39
its ok i think no?
what's the problem?
Ashley
@newwebash
Jan 21 2016 11:40
It returns the message: "farenheit not defined"
eddsaura
@eddsaura
Jan 21 2016 11:40
you typed it wrong dude
farenheit
fahrenheit
Ashley
@newwebash
Jan 21 2016 11:40
ahhhhh ok
eddsaura
@eddsaura
Jan 21 2016 11:40
:+1: thats all
Ashley
@newwebash
Jan 21 2016 11:41
Thank you!!!!
eddsaura
@eddsaura
Jan 21 2016 11:41
No problem
Ashley
@newwebash
Jan 21 2016 11:41
Here I thought I was rubbish at JS but it was just a typo. Phew!
eddsaura
@eddsaura
Jan 21 2016 11:41
hhahaha ^^
David
@superbagel101
Jan 21 2016 11:41
BTW thanks
i came on thesame problem but that helped
Ashley
@newwebash
Jan 21 2016 11:42
Ok perfect.
Xavier
@kaatsuto
Jan 21 2016 11:42

Hello, I am trying to re-size the cat image
(html5/"Size your Images").

The image seems to be re-sized however I cannot get the code to be validated. I must be doing something wrong...

Could anyone give me a pointer please ?

<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 class="smaller-image" src="https://bit.ly/fcc-relaxing-cat">
eddsaura
@eddsaura
Jan 21 2016 11:45
sorry i didn't read that @superbagel101
it says that you have to do it with a class? @kaatsuto
lavieb33
@lavieb33
Jan 21 2016 11:47
I can't get passed the check point: stand in line
Xavier
@kaatsuto
Jan 21 2016 11:47
@eddsaura yes "Create a class called smaller-image and use it to resize the image so that it's only 100 pixels wide."
eddsaura
@eddsaura
Jan 21 2016 11:48
wide
so I don't know :s
I'm not a pro, I'm new haha
Xavier
@kaatsuto
Jan 21 2016 11:49
@eddsaura no worries, thanks anyway...
CamperBot
@camperbot
Jan 21 2016 11:49
kaatsuto sends brownie points to @eddsaura :sparkles: :thumbsup: :sparkles:
:star: 251 | @eddsaura | http://www.freecodecamp.com/eddsaura
eddsaura
@eddsaura
Jan 21 2016 11:49
it seems ok for me
lavieb33
@lavieb33
Jan 21 2016 11:49
Help : Write a function queue which takes an array (arr) and a number (item) as arguments. Add the number to the end of the array, then remove the first element of array. The queue function should then return the element that was removed. I have the concept of .push to add an item at the end of arr .shift to remove the first element of array but here what is the array then? because it looks likes to me the array is the queue function
CamperBot
@camperbot
Jan 21 2016 11:49
no wiki entry for: write a function queue which takes an array arr and a number item as arguments add the number to the end of the array then remove the first element of array the queue function should then return the element that was removed
Ronald T.
@heyhey2015
Jan 21 2016 11:49
  +0
+0
eddsaura
@eddsaura
Jan 21 2016 11:49
lavieb paste de whole code
Ronald T.
@heyhey2015
Jan 21 2016 11:50

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

orange-text {

color: orange;

}
.pink-text {
color: pink;
}
.blue-text {
color: blue;
}
</style>

<h1 id="orange-text" class="pink-text blue-text" style="color: white">Hello World!</h1>

aggressor21
@aggressor21
Jan 21 2016 11:50
@kaatsuto on the left hand side there will be certain checks you need to follow, which one has a cross instead of a tick?
eddsaura
@eddsaura
Jan 21 2016 11:52
@heyhey2015 use three `to put code
:D
like this ```
Xavier
@kaatsuto
Jan 21 2016 11:53
@aggressor21 the last one: "Your image should be 100 pixels wide."
eddsaura
@eddsaura
Jan 21 2016 11:54
hum.. strange :s
Xavier
@kaatsuto
Jan 21 2016 11:54
@aggressor21 1st one is ok: "Your img element should have the class smaller-image."
@aggressor21 My bad, it seems to be a bug
eddsaura
@eddsaura
Jan 21 2016 11:54
what was ?
Xavier
@kaatsuto
Jan 21 2016 11:54
@aggressor21 I should have checked there first...
eddsaura
@eddsaura
Jan 21 2016 11:55
it's ok don't worry :smile:
Xavier
@kaatsuto
Jan 21 2016 11:55
cheers
lavieb33
@lavieb33
Jan 21 2016 11:59
@heyhey2015 how do you capture this screen?
Xavier
@kaatsuto
Jan 21 2016 12:00
@lavieb33 you mean this chat ?
eddsaura
@eddsaura
Jan 21 2016 12:00
Its not a capture
its a format...
with three "`"
and you put the code between
lavieb33
@lavieb33
Jan 21 2016 12:01
the console screen to capture and send it
the @kaatsuto I mean the text editor
eddsaura
@eddsaura
Jan 21 2016 12:02
it's not a cpture
var joinMe = ["Split","me","into","an","array"];
var joinedString = '';

// Only change code below this line.

joinedString = joinMe.join(" ");
console.log(joinedString);
u saying this?
lavieb33
@lavieb33
Jan 21 2016 12:03
@eddsaura yes
eddsaura
@eddsaura
Jan 21 2016 12:03
Look the format
press ctrl+shift+m
Jean Louis Salbego
@jlouiss
Jan 21 2016 12:03
thanks @marzelin
CamperBot
@camperbot
Jan 21 2016 12:03
jlouiss sends brownie points to @marzelin :sparkles: :thumbsup: :sparkles:
:star: 830 | @marzelin | http://www.freecodecamp.com/marzelin
lavieb33
@lavieb33
Jan 21 2016 12:04
@eddsaura correct
Bashar Sankari
@basssan
Jan 21 2016 12:05
<input type="text" pleaceholder="cat photos URL">
Where should i put the value ?
Or set it ?
lavieb33
@lavieb33
Jan 21 2016 12:06
@eddsaura so how do you past it on the chat?
Ayorinde
@Ayorinde
Jan 21 2016 12:07
@basssan <input type="text" pleaceholder="cat photos URL" value="the value" >
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 12:07

@Jago-Kosolosky
I'm not really getting how this will sort the elements from smallest to largest number. Can someone talk me through this? Thanks!

var array = [1, 12, 21, 2];
array.sort(function(a, b) {
  return a - b;
});

I'm not getting the function part I'm afraid...

CamperBot
@camperbot
Jan 21 2016 12:07
sorry jago-kosolosky, you can't send brownie points to yourself! :sparkles: :sparkles:
Bashar Sankari
@basssan
Jan 21 2016 12:08
@Ayorinde thanks
CamperBot
@camperbot
Jan 21 2016 12:08
basssan sends brownie points to @ayorinde :sparkles: :thumbsup: :sparkles:
:star: 252 | @ayorinde | http://www.freecodecamp.com/ayorinde
Ayorinde
@Ayorinde
Jan 21 2016 12:09
@Jago-Kosolosky
lavieb33
@lavieb33
Jan 21 2016 12:09
@Jago-Kosolosky post the question
kirbyedy
@kirbyedy
Jan 21 2016 12:10
@lavieb33 type help formatting
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 12:10
@lavieb33 @Ayorinde "Sort Arrays with sort" just found the info online though. Apparently it is optional to pass along a compareFunction as a parameter and that's the part I didn't get. See link here: http://www.w3schools.com/jsref/jsref_sort.asp
Ayorinde
@Ayorinde
Jan 21 2016 12:10
@Jago-Kosolosky
var array = [1, 12, 21, 2];
array.sort(function(a, b) {
  return b-a;
});
@Jago-Kosolosky it's b-a and not a-b
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 12:11
@Ayorinde Thanks, I get it now, some more information on the compareFunction would be helpful
CamperBot
@camperbot
Jan 21 2016 12:11
jago-kosolosky sends brownie points to @ayorinde :sparkles: :thumbsup: :sparkles:
:star: 253 | @ayorinde | http://www.freecodecamp.com/ayorinde
lavieb33
@lavieb33
Jan 21 2016 12:11
@Jago-Kosoloskyaw I see Im not that far yet still with the stand in line check point
Ayorinde
@Ayorinde
Jan 21 2016 12:12
@Jago-Kosolosky a-b is smallest to highest while b-a gives highest to smallest
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 12:12
@lavieb33 Hang in there, most important thing I love about FCC is that you can't get stuck if you're not afraid to ask questions
@Ayorinde Got it, thanks!
CamperBot
@camperbot
Jan 21 2016 12:12
jago-kosolosky sends brownie points to @ayorinde :sparkles: :thumbsup: :sparkles:
:warning: jago-kosolosky already gave ayorinde points
lavieb33
@lavieb33
Jan 21 2016 12:15
@Jago-Kosolosky ok you got something?
@Jago-Kosolosky check point : stand in line
Ayorinde
@Ayorinde
Jan 21 2016 12:18
@lavieb33 are you now ok with pasting code here?
Nigel
@nigeljoy
Jan 21 2016 12:18
Need help understanding Binary Agents bonfire....
Return an English translated sentence of the passed binary string.
CamperBot
@camperbot
Jan 21 2016 12:18
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
Nigel
@nigeljoy
Jan 21 2016 12:19
bonfire Binary Agents
CamperBot
@camperbot
Jan 21 2016 12:19

:fire:Bonfire: Binary Agents :link:

function binaryAgent(str) {
  return str;
}

binaryAgent('01000001 01110010 01100101 01101110 00100111 01110100 00100000 01100010 01101111 01101110 01100110 01101001 01110010 01100101 01110011 00100000 01100110 01110101 01101110 00100001 00111111');

Return an English translated sentence of the passed binary string.

more info:  bf details | bf links | hint

Nigel
@nigeljoy
Jan 21 2016 12:19
bf details
CamperBot
@camperbot
Jan 21 2016 12:19

:fire:Bonfire: Binary Agents :link:

function binaryAgent(str) {
  return str;
}

binaryAgent('01000001 01110010 01100101 01101110 00100111 01110100 00100000 01100010 01101111 01101110 01100110 01101001 01110010 01100101 01110011 00100000 01100110 01110101 01101110 00100001 00111111');
Return an English translated sentence of the passed binary string.
The binary string will be space separated.
Remember to use RSAP if you get stuck. Try to pair program. Write your own code.
links:
Nigel
@nigeljoy
Jan 21 2016 12:20
Guys what does these binary value stand for? the ASCII value of characters?
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 12:20
@lavieb33 Yeah what are you not getting? Where can I help?
eddsaura
@eddsaura
Jan 21 2016 12:21
writing the code inside dude :s @lavieb33
lavieb33
@lavieb33
Jan 21 2016 12:21
@Ayorinde not yet beside by doing Ctrl + c but I not able to past copy and past the actual text editor
eddsaura
@eddsaura
Jan 21 2016 12:21
man
listen
you dont copy the editor
you copy the TEXT and paste it between ```
thats all
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 12:22
@eddsaura Second that
Bon
@OriBon
Jan 21 2016 12:23
@lavieb33 Just highlight your text and select 'copy as pretty code'. Then paste it here.
eddsaura
@eddsaura
Jan 21 2016 12:23
what?
Ayorinde
@Ayorinde
Jan 21 2016 12:23
@lavieb33 to paste code, press shiftEnter, then 3backticks, paste your code, and press shiftEnter again and then type 3backticks again
lavieb33
@lavieb33
Jan 21 2016 12:23
@Jago-Kosolosky Write a function queue which takes an array (arr) and a number (item) as arguments. Add the number to the end of the array, then remove the first element of array. The queue function should then return the element that was removed
Bon
@OriBon
Jan 21 2016 12:24
@lavieb33 What have you tried so far?
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 12:24
@lavieb33 Yeah I know the assignment, but what part are you not getting? Where are you stuck? Show us what you've got so far!
lavieb33
@lavieb33
Jan 21 2016 12:28

@Jago-Kosolosky function queue(arr, item) {
// Your code here: bellow is my code
queue.push(item);
queue.shift(arr);
return queue.shift(arr); // 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));

eddsaura
@eddsaura
Jan 21 2016 12:29
lavieb man
lavieb33
@lavieb33
Jan 21 2016 12:29
@OriBon function queue(arr, item) {
// Your code here: bellow is my code
queue.push(item);
queue.shift(arr);
return queue.shift(arr); // 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));
eddsaura
@eddsaura
Jan 21 2016 12:29
write ``` before and after de code
actually it's automatic
see ?
Liviu Tudor
@enzime4u
Jan 21 2016 12:30
any CAMPSITES in Constanta?
eddsaura
@eddsaura
Jan 21 2016 12:30
read the markdown shift+ctrl+m
Liviu Tudor
@enzime4u
Jan 21 2016 12:30
or CAMPERS?
eddsaura
@eddsaura
Jan 21 2016 12:30
Nope, spain here
Liviu Tudor
@enzime4u
Jan 21 2016 12:30
AWW
spain is nice
Tengfei Wu
@albert32
Jan 21 2016 12:30

Now nest your existing a element within a new p element (just after the existing h2 element) so that the surrounding paragraph says "View more cat photos", but where only "cat photos" is a link, and the rest of the text is plain text.

And my code is:

<p>View more <a href="http://www.freecatphotoapp.com">cat photos</a></p>

why error:
Your p element should have the text "View more " (with a space after it).

eddsaura
@eddsaura
Jan 21 2016 12:30
go to general, maybe there are some ppl :smile:
Liviu Tudor
@enzime4u
Jan 21 2016 12:31
wann join iron-hack but it is too expensive @eddsaura
eddsaura
@eddsaura
Jan 21 2016 12:32
FCC is amazing man
I swear
Liviu Tudor
@enzime4u
Jan 21 2016 12:32
you were there ?
in barcelona ? or madrid?
eddsaura
@eddsaura
Jan 21 2016 12:33
Nope, but look at this community
Liviu Tudor
@enzime4u
Jan 21 2016 12:33
i see
Tengfei Wu
@albert32
Jan 21 2016 12:33
anyone can help me? thanks.
Liviu Tudor
@enzime4u
Jan 21 2016 12:33
it is bad that they are not 100% js oriented
eddsaura
@eddsaura
Jan 21 2016 12:33
for free, and you actually will help to nonprofit organizations
Liviu Tudor
@enzime4u
Jan 21 2016 12:33
they also teach ruby
:)
eddsaura
@eddsaura
Jan 21 2016 12:34
dude 7500€?
for real? HAHAH that's expensive
Munish Tayal
@munishtayal
Jan 21 2016 12:37
@albert32 you didn't give a blankspace between more and cat
Tengfei Wu
@albert32
Jan 21 2016 12:40
@munishtayal thanks,I found the answer in FreeCodeCamp/FreeCodeCamp#6237
Bhavin Dave
@bhavindave88
Jan 21 2016 12:48

Hi There !
I'm stuck at Local Scope and Functions
myVar = 5;
function myFunction() {
'use strict';
var myVar = 3;

console.log(myVar);
}
myFunction();
console.log(myVar);
This code gives an error "No global myVar variable"

Any idea?
eddsaura
@eddsaura
Jan 21 2016 12:48
have you tried to read the errors and the code etc?
Bhavin Dave
@bhavindave88
Jan 21 2016 12:49
@eddsaura Yes, the error says No global myVar variable. However its the find thing declared in my code
eddsaura
@eddsaura
Jan 21 2016 12:50
copy the whole code and make sure you format it well with ```
Munish Tayal
@munishtayal
Jan 21 2016 12:50
@bhavindave88 why did u declared myVar inside the function when it is already outside the function
thomasdanner
@thmsdnnr
Jan 21 2016 12:50
@bhavindave88 i think it's saying you shouldn't have the global variable
@bhavindave88 those are tests that your code needs to pass, so the instructions are saying to just make it local i believe. you're right though you totally do have a global variable defined at the top.
Bhavin Dave
@bhavindave88
Jan 21 2016 12:51
@thmsdnnr I've commented the local variable and tried. The error stays the same.
myVar = 5;
function myFunction() {
  'use strict';  
  //var myVar = 3;

  console.log(myVar);
}
myFunction();
console.log(myVar);
thomasdanner
@thmsdnnr
Jan 21 2016 12:52
@bhavindave88 try leaving the local variable and commenting the global variable "Instructions
Declare a local variable myVar inside myFunction"
Munish Tayal
@munishtayal
Jan 21 2016 12:52
@bhavindave88 what's the title name of waypoint
lavieb33
@lavieb33
Jan 21 2016 12:52
@bhavindave88 paste your code
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 12:53
"Reverse a string" I could use a hand here, not really seeing what I'm doing wrong.
function reverseString(str) {
  var arr = str.split();
  var arrrev = arr.reverse();
  var newstr = arrrev.join();
  str = newstr;
  return str;
}

reverseString("hello");
Munish Tayal
@munishtayal
Jan 21 2016 12:54
@Jago-Kosolosky you didn't provided the arguements in split and join
@Jago-Kosolosky use ' ' as arguements
lavieb33
@lavieb33
Jan 21 2016 12:55
@bhavindave88 check your global variable you must have a var keyword so far
Gbemi Emmanuel
@bobs95
Jan 21 2016 12:55
// Declare your variable here


function fun1() {
  // Assign 5 to oopsGlobal Here
  var myGlobal = 10;
  oopsGlobal = 5;
}


// Only change code above this line
function fun2() {
  var output = "";
  if (typeof myGlobal != "undefined") {
    output += "myGlobal: " + myGlobal;
  }
  if (typeof oopsGlobal != "undefined") {
    output += " oopsGlobal: " + oopsGlobal;
  }
  console.log(output);
}
Bhavin Dave
@bhavindave88
Jan 21 2016 12:55
@thmsdnnr Still the same error
//myVar = 5;
function myFunction() {
  'use strict';  
  var myVar = 3;

  console.log(myVar);
}
myFunction();
console.log(myVar);
thomasdanner
@thmsdnnr
Jan 21 2016 12:56
@bhavindave88 I tried pasting your code into my waypoint ... it seems this challenge is a little bit weird in that if you don't do the steps in order the tests can get messed up. I'd maybe try resetting the code and starting from scratch -- be sure to follow the instructions that are in the commented code when you start fresh
function myFunction() {
  'use strict';


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

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

// now remove the console log line to pass the test
Gbemi Emmanuel
@bobs95
Jan 21 2016 12:56
trying to add value 10 to d myGlobal var
lavieb33
@lavieb33
Jan 21 2016 12:56
@bhavindave88 and you dont need no var key when you declare your local
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 12:57
@munishtayal Like this? Still not working :worried:
function reverseString(str) {
  var arr = str.split(' ');
  var arrrev = arr.reverse();
  var newstr = arrrev.join(' ');
  return newstr;
}

reverseString("hello");
Munish Tayal
@munishtayal
Jan 21 2016 12:57
@Jago-Kosolosky dont give space ''..
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 12:58
Still nothing...
function reverseString(str) {
  var arr = str.split('');
  var arrrev = arr.reverse();
  var newstr = arrrev.join('');
  return newstr;
}

reverseString("hello");
Munish Tayal
@munishtayal
Jan 21 2016 12:58
@Jago-Kosolosky sorry i forgot about that.. ithought you have to print words in reverse order
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 12:58
@munishtayal No, reverse a string, any ideas?
kirbyedy
@kirbyedy
Jan 21 2016 12:58
double quotes ? :D
lavieb33
@lavieb33
Jan 21 2016 12:59
@bhavindave88 go head and remove the very last console.log(myVar);
kirbyedy
@kirbyedy
Jan 21 2016 12:59
I made mine in just one line
thomasdanner
@thmsdnnr
Jan 21 2016 12:59
@Jago-Kosolosky I just ran your code and it worked. what error are you getting?
Munish Tayal
@munishtayal
Jan 21 2016 12:59
@Jago-Kosolosky try refreshing the page
because the code is right
Bhavin Dave
@bhavindave88
Jan 21 2016 13:00
@lavieb33 No change
function myFunction() {
  'use strict';

  var myVar = 50;
  console.log(myVar);
}
myFunction();

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

// now remove the console log line to pass the test
thomasdanner
@thmsdnnr
Jan 21 2016 13:00
@munishtayal is right -- this has happened to me sometimes too. if i make some mistakes before getting the right code occasionally you'll have to copy-paste your code, click reset, paste and try again, or just refresh the page for some reason
Gbemi Emmanuel
@bobs95
Jan 21 2016 13:00
trying to assign value 10 to var myGlobal
// Declare your variable here


function fun1() {
  // Assign 5 to oopsGlobal Here
  var myGlobal = 10;
  oopsGlobal = 5;
}


// Only change code above this line
function fun2() {
  var output = "";
  if (typeof myGlobal != "undefined") {
    output += "myGlobal: " + myGlobal;
  }
  if (typeof oopsGlobal != "undefined") {
    output += " oopsGlobal: " + oopsGlobal;
  }
  console.log(output);
}
Munish Tayal
@munishtayal
Jan 21 2016 13:01
@bobs95 define myGlobal outside the function
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 13:01
@munishtayal @thmsdnnr refresh did the trick, sorry you guys. Thanks so much!
CamperBot
@camperbot
Jan 21 2016 13:01
jago-kosolosky sends brownie points to @munishtayal and @thmsdnnr :sparkles: :thumbsup: :sparkles:
:star: 309 | @thmsdnnr | http://www.freecodecamp.com/thmsdnnr
:star: 275 | @munishtayal | http://www.freecodecamp.com/munishtayal
Munish Tayal
@munishtayal
Jan 21 2016 13:02
@Jago-Kosolosky no problem
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 13:02
@thmsdnnr @munishtayal And I assume just giving '' as a parameter means every character will be split and nothing will be added in between joining?
Gbemi Emmanuel
@bobs95
Jan 21 2016 13:02
@munishtayal tanx
CamperBot
@camperbot
Jan 21 2016 13:02
bobs95 sends brownie points to @munishtayal :sparkles: :thumbsup: :sparkles:
:star: 276 | @munishtayal | http://www.freecodecamp.com/munishtayal
Munish Tayal
@munishtayal
Jan 21 2016 13:02
@Jago-Kosolosky yes
chaitanya ashtekar
@chaitanyaashtekar
Jan 21 2016 13:02
bf title
CamperBot
@camperbot
Jan 21 2016 13:02

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

function titleCase(str) {
  return str;
}

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

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

more info:  bf details | bf links | hint

chaitanya ashtekar
@chaitanyaashtekar
Jan 21 2016 13:03
bf details
CamperBot
@camperbot
Jan 21 2016 13:03

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

function titleCase(str) {
  return str;
}

titleCase("I'm a little tea pot");
Return the provided string with the first letter of each word capitalized.
For the purpose of this exercise, you should also capitalize connecting words like 'the' and 'of'.
Remember to use RSAP if you get stuck. Try to pair program. Write your own code.
links:
chaitanya ashtekar
@chaitanyaashtekar
Jan 21 2016 13:03
bf links
CamperBot
@camperbot
Jan 21 2016 13:03
chaitanya ashtekar
@chaitanyaashtekar
Jan 21 2016 13:03
hint
CamperBot
@camperbot
Jan 21 2016 13:03
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
Bhavin Dave
@bhavindave88
Jan 21 2016 13:03
@thmsdnnr After reset, without any change in the code I click run, it still shows me the old output value in the console
thomasdanner
@thmsdnnr
Jan 21 2016 13:04
@bhavindave88 maybe try refreshing the page?
@bhavindave88 basically the way I just did it is that you have to click "run tests" a few times. first you assign myVar within the function and click run tests. you'll get an error. then you get rid of the console.log line that's outside of the function and click run tests again.
Bhavin Dave
@bhavindave88
Jan 21 2016 13:05
@thmsdnnr Now the portion on the page where the code appears is gone after page refresh
lavieb33
@lavieb33
Jan 21 2016 13:06
@bhavindave88 what check point is this (the section) or chapter?
Bhavin Dave
@bhavindave88
Jan 21 2016 13:06
@lavieb33 Basic Javascript
@thmsdnnr Nope. The code section just doesnt show up
@thmsdnnr I'll try to logout, clear browser cache and then try
lavieb33
@lavieb33
Jan 21 2016 13:07
yes let's do that
@bhavindave88 I got you
you got it?

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

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

lavieb33
@lavieb33
Jan 21 2016 13:13
@bhavindave88 you just needed to create one local variable call myVar inside de function

@bhavindave88 @bhavindave88 here it is: function myFunction() {
'use strict';
var myVar;

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

ma @bhavindave88 make sure you remove the very last console.log
see?
@eddsaura got it thanks a lot
CamperBot
@camperbot
Jan 21 2016 13:17
lavieb33 sends brownie points to @eddsaura :sparkles: :thumbsup: :sparkles:
:star: 254 | @eddsaura | http://www.freecodecamp.com/eddsaura
lavieb33
@lavieb33
Jan 21 2016 13:18
@bhavindave88 you found the solution?
Aleksandar Ilic
@itsAleksandar
Jan 21 2016 13:23
My portfolio is good for my screen, but when someone with bigger resolution watches, he sees blank space to the right of my images. I get that that's because images are fixed in width, but how can I fit the image over whole width for anyone who's watching?
Joana
@bapeshark
Jan 21 2016 13:23
Hello guys I am new. Started from yesterday
can someone help me with this
http://www.freecodecamp.com/challenges/use-responsive-design-with-bootstrap-fluid-containers#?solution=%3Cdiv%3E%20%3Clink%20rel%3D%22stylesheet%22%20href%3D%22%2F%2Fmaxcdn.bootstrapcdn.com%2Fbootstrap%2F3.3.1%2Fcss%2Fbootstrap.min.css%22%2F%3E%20%3C%2Fdiv%3E%0A%0A%0A%0A%0A%0A%3Clink%20href%3D%22http%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%3EClick%20here%20for%20%3Ca%20href%3D%22%23%22%3Ecat%20photos%3C%2Fa%3E.%3C%2Fp%3E%0A%0A%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%3C%2Fa%3E%0A%0A%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%3Cul%3E%0A%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%3C%2Ful%3E%0A%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%3Col%3E%0A%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%3C%2Fol%3E%0A%3Cform%20fccfaa%3D%22%2Fsubmit-cat-photo%22%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Indoor%3C%2Flabel%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Outdoor%3C%2Flabel%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Loving%3C%2Flabel%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Lazy%3C%2Flabel%3E%0A%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Crazy%3C%2Flabel%3E%0A%20%20%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%20required%3E%0A%20%20%3Cbutton%20type%3D%22submit%22%3ESubmit%3C%2Fbutton%3E%0A%3C%2Fform%3E%0A
lavieb33
@lavieb33
Jan 21 2016 13:26
@bapeshark you copied a link
cannelflow
@cannelflow
Jan 21 2016 13:27
@bapeshark nest your body/html in div
Joana
@bapeshark
Jan 21 2016 13:28

@lavieb33 Yeah, I don't know to explain this one I have one incorrect

<div class="container-fluid">Responsive Design</div>

This is one incorrect
Make sure you have nested all HTML elements in .container-fluid.

@cannelflow Okay I'll try that
lavieb33
@lavieb33
Jan 21 2016 13:29
help here please. check point Stand in line @bapeshark send everything
CamperBot
@camperbot
Jan 21 2016 13:29
no wiki entry for: here please check point stand in line @bapeshark send everything
lavieb33
@lavieb33
Jan 21 2016 13:29
@bapeshark I mean send everything
cannelflow
@cannelflow
Jan 21 2016 13:29
@lavieb33 tried?
Joana
@bapeshark
Jan 21 2016 13:30

@lavieb33 Okay Sir I reset because it was wrong

<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" src="https://bit.ly/fcc-relaxing-cat"></a>

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

You can add Bootstrap to any app just by including it by adding the following code to the top of your HTML:

<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/>

In this case, we've already added it for you to this page behind the scenes.

To get started, we should nest all of our HTML in a div element with the class container-fluid.

Your div element should have the class container-fluid.
Make sure each of your div elements has a closing tag.
Make sure you have nested all HTML elements in .container-fluid.

Help me please :(
CamperBot
@camperbot
Jan 21 2016 13:30
no wiki entry for: me please
cannelflow
@cannelflow
Jan 21 2016 13:31
@bapeshark from <h2> to </form> is your html tag
@bapeshark nest all of them inside <div class="container-fluid">html</div>
Joana
@bapeshark
Jan 21 2016 13:33
the html is <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/> Correct ?
@cannelflow I have still one incorrect :(
lavieb33
@lavieb33
Jan 21 2016 13:35
@bapeshark start by doing this: <div> <h2......... all the way to forms </div>
cannelflow
@cannelflow
Jan 21 2016 13:35
@bapeshark show your code
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 13:38
"Check for palindromes" I need a hand here, where are my mistakes, just give me the lines, I'll find the bastards!
function palindrome(str) {
  var lowercase = str.toLowerCase;
  var splitt = lowercase.split("");

  var replaced = splitt.replace(/[^A-Za-z0-9]+/g, '');
  var replacedstring = replaced.join();
  var replacedreverse = (replaced.reverse()).join();

  var bool= false;

  if(replacedstring == replacedreverse){
    bool=true;
  }
  else{
    bool=false;
  }
  return bool;
}



palindrome("eye");
Joana
@bapeshark
Jan 21 2016 13:40
</style>

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

<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>
Incorrect one is this
Make sure you have nested all HTML elements in .container-fluid.
lavieb33
@lavieb33
Jan 21 2016 13:40
@bapeshark <div class="container-fluid"> <h2......... all the way to </form> </div>
Joana
@bapeshark
Jan 21 2016 13:41
@lavieb33 Thank you, got it :thumbsup:
CamperBot
@camperbot
Jan 21 2016 13:41
bapeshark sends brownie points to @lavieb33 :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for lavieb33
cannelflow
@cannelflow
Jan 21 2016 13:41
@bapeshark you dont have div in html
lavieb33
@lavieb33
Jan 21 2016 13:42
@bapeshark cool
Maulik Darji
@maulikdarji
Jan 21 2016 13:42
@Jago-Kosolosky toLowerCase();
Nigel
@nigeljoy
Jan 21 2016 13:43
@Jago-Kosolosky i think you need to specify how you want to join()...so i guess it should be join("")
lavieb33
@lavieb33
Jan 21 2016 13:44

help: check point Stand in line Write a function queue which takes an array (arr) and a number (item) as arguments. Add the number to the end of the array, then remove the first element of array. The queue function should then return the element that was removed. This is what I got ```function queue(arr, item) {
// Your code here: bellow this line is my code
arr.push(item);
var removed = arr.shift;
arr.shift();
return removed; // 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));```

CamperBot
@camperbot
Jan 21 2016 13:44
no wiki entry for: check point stand in line write a function queue which takes an array arr and a number item as arguments add the number to the end of the array then remove the first element of array the queue function should then return the element that was removed this is what i got function queuearr item your code here bellow this line is my code arrpushitem var removed arrshift arrshift return removed change this line test setupvar testarr 12345 display codeconsolelogbefore jsonstringifytestarrconsolelogqueuetestarr 6 modify this line to testconsolelogafter jsonstringifytestarr
lavieb33
@lavieb33
Jan 21 2016 13:45
see?
cannelflow
@cannelflow
Jan 21 2016 13:45
@Jago-Kosolosky you need to write like str.toLowerCase()
lavieb33
@lavieb33
Jan 21 2016 13:46

```function queue(arr, item) {
// Your code here: bellow this line is my code
arr.push(item);
var removed = arr.shift;
arr.shift();
return removed; // 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));```

Maulik Darji
@maulikdarji
Jan 21 2016 13:46
@lavieb33 var removed = arr.shift(); and remove second arr.shift();
lavieb33
@lavieb33
Jan 21 2016 13:48
@maulikdarji bingo thanks
CamperBot
@camperbot
Jan 21 2016 13:48
lavieb33 sends brownie points to @maulikdarji :sparkles: :thumbsup: :sparkles:
:star: 423 | @maulikdarji | http://www.freecodecamp.com/maulikdarji
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 13:48
@cannelflow @nigeljoy @maulikdarji Got it, I needed to reverse the order because @wushupork showed me you can only replace values in strings and not arrays and then I needed the () after the lowercase change. Here is my result with comments, thanks so much!
bool= false;
  if(replacedstring == replacedreverse){
    bool=true;
  }
  else{
    bool=false;
  }
  return bool;
}



palindrome("eye");
CamperBot
@camperbot
Jan 21 2016 13:48
jago-kosolosky sends brownie points to @cannelflow and @nigeljoy and @maulikdarji and @wushupork :sparkles: :thumbsup: :sparkles:
:star: 490 | @cannelflow | http://www.freecodecamp.com/cannelflow
:star: 424 | @maulikdarji | http://www.freecodecamp.com/maulikdarji
:star: 326 | @nigeljoy | http://www.freecodecamp.com/nigeljoy
:star: 314 | @wushupork | http://www.freecodecamp.com/wushupork
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 13:48
@cannelflow @nigeljoy @maulikdarji @wushupork Sorry, sloppy!
function palindrome(str) {

  // lowercase
  var lowercase = str.toLowerCase();

  // replace
  var replaced = lowercase.replace(/[^A-Za-z0-9]+/g, '');

  //split
  var splitt = replaced.split('');

  // make both to compare
  var replacedstring = splitt.join();
  var replacedreverse = (splitt.reverse()).join();

  // compare and return boolean
  var bool= false;
  if(replacedstring == replacedreverse){
    bool=true;
  }
  else{
    bool=false;
  }
  return bool;
}



palindrome("eye");
Joana
@bapeshark
Jan 21 2016 13:49
<button class="btn btn-block btn-primary">Like</button>
How do I create new button element with the text "Info" ?
MarkoMakina
@Markomakina
Jan 21 2016 13:50
<button class="btn btn-block btn-info">Info</button>
Nigel
@nigeljoy
Jan 21 2016 13:50
@Jago-Kosolosky btw you should know that simply .join() would insert commas between each values. Using .join("") is more appropriate when playing with strings
Joana
@bapeshark
Jan 21 2016 13:50
@Markomakina Thank you
CamperBot
@camperbot
Jan 21 2016 13:50
bapeshark sends brownie points to @markomakina :sparkles: :thumbsup: :sparkles:
:star: 82 | @markomakina | http://www.freecodecamp.com/markomakina
cannelflow
@cannelflow
Jan 21 2016 13:51
<button class="btn btn-block btn-info">Info</button> @bapeshark
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 13:52
@nigeljoy Ah so here it's working but I'm throwing comma's in between everything?
Joana
@bapeshark
Jan 21 2016 13:52
@cannelflow Thank you :D
CamperBot
@camperbot
Jan 21 2016 13:52
bapeshark sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:star: 491 | @cannelflow | http://www.freecodecamp.com/cannelflow
cannelflow
@cannelflow
Jan 21 2016 13:52
@bapeshark :+1:
Nigel
@nigeljoy
Jan 21 2016 13:53
@Jago-Kosolosky i believe so.
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 13:53
@nigeljoy Thanks, great tip, would've gotten me in trouble in the future probably.
CamperBot
@camperbot
Jan 21 2016 13:53
jago-kosolosky sends brownie points to @nigeljoy :sparkles: :thumbsup: :sparkles:
:warning: jago-kosolosky already gave nigeljoy points
Jago Kosolosky
@Jago-Kosolosky
Jan 21 2016 13:59
@nigeljoy Just spotted it too!
Joseph odhiambo
@Theonlysmartboy
Jan 21 2016 14:00
would somebody help me with the Golf code challenge
here is my code which produces the right outputs but the system won't pass me
function golfScore(par, strokes) {
  // Only change code below this line
   if(strokes == 1){
     return "Hole-in-one";
   }
  else if(strokes == 2 && par > strokes){
    return "Eagle";
  }
  else if(strokes == 3 && par > strokes){
    return "Birdie";
  }  
  else if(strokes == par){
    return "Par";
  }
  else if(strokes == 3 && par < strokes){
    return "Bogey";
  }
  else if(strokes == 4 && par < strokes){
    return "Double Bogey";
  }
  else{
    return "Go home";
  }

  // Only change code above this line
}

// Change these values to test
golfScore(1, 1);
klee
@klee1280
Jan 21 2016 14:00
can anyone help me with the javascript point: stand in line
Joseph odhiambo
@Theonlysmartboy
Jan 21 2016 1