These are chat archives for FreeCodeCamp/Help

31st
Jan 2016
tbb4
@toddhcodetime
Jan 31 2016 00:03
@GABAB6
Hi Here is one button's worth of what I used recently for same lesson:
@GABAB6 oops hit enter too soon: <div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Indoor</label></div> </div>
</div>
Thom
@GABAB6
Jan 31 2016 00:06
Ah, that's it! I've been trying to nest the wrong buttons! Thank you for the help, @toddhcodetime
CamperBot
@camperbot
Jan 31 2016 00:06
gabab6 sends brownie points to @toddhcodetime :sparkles: :thumbsup: :sparkles:
:star: 120 | @toddhcodetime | http://www.freecodecamp.com/toddhcodetime
Steven Portugal
@madmex86
Jan 31 2016 00:16
Hello! I need some help. I am currently on the challenge of opening and closing comment tags. I have been able to make sure that h1, h2 and p are visible but am not sure on how to "delete all trailing comment tags, i.e. -->"
I have deleted that text both it will not pass
Alexandre Doubov
@C2H6O
Jan 31 2016 00:16
i think they tell you to comment out h2
or comment out h1 and p
i forget
Steven Portugal
@madmex86
Jan 31 2016 00:17
It tells me to make h1, h2 and p visible, which that passes. But will not pass the deleting of all trailing comment tags.
Alexandre Doubov
@C2H6O
Jan 31 2016 00:18
oh weird
it should work
Thom
@GABAB6
Jan 31 2016 00:18
@madmex86 can you show us what your code looks like? There shouldn't be any gray text, that indicates a comment. (Someone please correct me if
i'm wrong.)
Alexandre Doubov
@C2H6O
Jan 31 2016 00:18

<h1>Hello World</h1>

<h2>CatPhotoApp</h2>

<p>Hello Paragraph</p>

Steven Portugal
@madmex86
Jan 31 2016 00:18

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

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

<p>Hello Paragraph</p>

Wendy White
@wendywat
Jan 31 2016 00:18
To get started, we should nest all of our HTML in a div element with the class container-fluid.
help please
CamperBot
@camperbot
Jan 31 2016 00:19

:point_right: bonfire no repeats please [wiki]

Problem Explanation:

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

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

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

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

Steven Portugal
@madmex86
Jan 31 2016 00:19
I'm just learning about comment tags if that helps...
Wendy White
@wendywat
Jan 31 2016 00:19
????
Thom
@GABAB6
Jan 31 2016 00:20
@wendywat I just had the same problem a few hours ago. If you scroll up, the solution should be there. I'll try to find it for you.
Steven Portugal
@madmex86
Jan 31 2016 00:21
I figured mine out. It wanted me to delete ALL the comment tags, not just close them. Thank you!
Thom
@GABAB6
Jan 31 2016 00:21
It should look like this: <div class="container-fluid">
<!-- your code here!! -->
</div>
Steven Portugal
@madmex86
Jan 31 2016 00:23
thanks @GABAB6
CamperBot
@camperbot
Jan 31 2016 00:23
madmex86 sends brownie points to @gabab6 :sparkles: :thumbsup: :sparkles:
:star: 90 | @gabab6 | http://www.freecodecamp.com/gabab6
Thom
@GABAB6
Jan 31 2016 00:24
I hope that helps, @wendywat and you're very welcome, @madmex86
Sandra Lyle
@lovedata1
Jan 31 2016 00:39
This message was deleted
This message was deleted
This message was deleted
ilve
@ilve
Jan 31 2016 00:43
Hey can someone help a noob
??
Replace the value of your a element's href attribute with a #, also known as a hash symbol, to turn it into a dead link.
Jade Xiao
@jadexiao
Jan 31 2016 00:43
<a href=“#”>
ilve
@ilve
Jan 31 2016 00:44
<p>Click here for <a href="#""http://www.freecatphotoapp.com">cat photos</a>.</p>
???
or
Jade Xiao
@jadexiao
Jan 31 2016 00:44
just delete the link after “#”, “#” is supposed to replace it
ilve
@ilve
Jan 31 2016 00:45
<p>Click here for <a href="#"> cat photos</a>.</p>
not working
:((
SHAWNBSCOTT
@SHAWNBSCOTT
Jan 31 2016 00:47
hi guys, I'm having problems importing the google font family
any ideas?
Jade Xiao
@jadexiao
Jan 31 2016 00:47
I think you might have one too many spaces, like you have a space after ‘for’ and a space before ‘cat'
SHAWNBSCOTT
@SHAWNBSCOTT
Jan 31 2016 00:48
hello anybody
ilve
@ilve
Jan 31 2016 00:48
reloaded the page it seems i had a bug, I just reported
Jade Xiao
@jadexiao
Jan 31 2016 00:49
@SHAWNBSCOTT you can paste the link into html
<link href='https://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css’>
Sebastian Flores
@Link5802
Jan 31 2016 00:51
I am trying to nest the input with the form element like this: <form action="/submit-cat-photo" type="text" placeholder="cat photo URL"></form> any ideas why it is wrong?
SHAWNBSCOTT
@SHAWNBSCOTT
Jan 31 2016 00:52
I did but it's not applying to my h2 element @jadexiao
Jade Xiao
@jadexiao
Jan 31 2016 00:53
Did you set the font-family of h2 to your font in css?
SHAWNBSCOTT
@SHAWNBSCOTT
Jan 31 2016 00:57
@jadexiao oh. i dont think so, I only did this h2 <link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
starrycode
@starrycode
Jan 31 2016 00:57
so I'm on 51 of the map where it talks about margins and padding. Margins and padding seems like the same thing to me. Couldn't you just use one versus the other since they affect each other anyway?
Dustin
@Key-Banger
Jan 31 2016 01:00
@starrycode Think of a box. Margin is outside of the box. Padding is inside of the box.
Jade Xiao
@jadexiao
Jan 31 2016 01:01
@SHAWNBSCOTT You should paste that link at the top of your html page, and then to set h2 to the font, go into your css and type
h2 {font-family: ‘Lobster’;}
Dustin
@Key-Banger
Jan 31 2016 01:02
@starrycode Margin moves the box around. Padding moves what is inside of the box around. It might seem abstract now but will make sense later
SHAWNBSCOTT
@SHAWNBSCOTT
Jan 31 2016 01:03
@jadexiao thanks I finally got it.
CamperBot
@camperbot
Jan 31 2016 01:03
shawnbscott sends brownie points to @jadexiao :sparkles: :thumbsup: :sparkles:
:star: 314 | @jadexiao | http://www.freecodecamp.com/jadexiao
starrycode
@starrycode
Jan 31 2016 01:05
It seems that padding adds space within the box as well as moves elements around without the box. So if I increase the padding won't that affect the margin?
paramjit28
@paramjit28
Jan 31 2016 01:06
Hello world
CamperBot
@camperbot
Jan 31 2016 01:06

welcome to FreeCodeCamp @paramjit28!

starrycode
@starrycode
Jan 31 2016 01:08
I didn't get how they knew to use -15px to create a negative margin either when the padding was 20px. It had completely overtook the yellow box. Hopefully, I'll get it a bit better down the road.
Jean-Claude Wippler
@jcw
Jan 31 2016 01:10
This message was deleted
Dustin
@Key-Banger
Jan 31 2016 01:12
@starrycode Yes, margin: -15px; is going to stretch 15px's past the width of the screen. Covering yellow and then some.
Matthew Brown
@barakisbrown
Jan 31 2016 01:14
@barakisbrown
can someone tell me why this pen will not work right but when I run it in chrome when using brakcets, it works fine?
http://codepen.io/barakisbrown/pen/OMEvpv?editors=1010
Dustin
@Key-Banger
Jan 31 2016 01:15
@starrycode padding: 20px; is the space around the word "padding". if you change the padding to 50px; see how the box grows? But there is still margin(yellow).
Mateja Trifunovski
@Matko95
Jan 31 2016 01:21
@barakisbrown what isn't working actually?
Matthew Brown
@barakisbrown
Jan 31 2016 01:21
have you tried it? WHen you click on the space, it will display where I clicked and then the computer will move
Zachary Hyder
@zacharyhyder
Jan 31 2016 01:22

Ok guys i cannot figure out why this isn't working.

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

Mateja Trifunovski
@Matko95
Jan 31 2016 01:23
@barakisbrown computer isn't moving for me
Matthew Brown
@barakisbrown
Jan 31 2016 01:23
exactly.
I run in chrome at home(I use brackets) and it works fine
it should work. The click event displays it and then checks for winner/draw and then calls the computer to do its thing , ETC ETC
Mateja Trifunovski
@Matko95
Jan 31 2016 01:24
@barakisbrown Uncaught TypeError: Cannot read property 'shouldStopExecution' of undefined this is the error that chrome gives
so maybe check that function
Matthew Brown
@barakisbrown
Jan 31 2016 01:25
I do not have that function in my code .. that is coming from codepen
Mateja Trifunovski
@Matko95
Jan 31 2016 01:25
@zacharyhyder Your #target1 element should have the classes animated‚ shake and btn-primary.
cun3
@cun3
Jan 31 2016 01:26
Hey, Im stuck in Change the Font Size of an Element. What does Browser and Text zoom should be at 100%. mean?
Mateja Trifunovski
@Matko95
Jan 31 2016 01:27
@cun3 when you scroll your browser with Ctrl+"+" etc.
@cun3 it should be set to 100%
Wendy White
@wendywat
Jan 31 2016 01:28

Put the Like, Info and Delete buttons side-by-side by nesting all three of them within one <div class="row"> element, then each of them within a <div class="col-xs-4"> element.

The row class is applied to a div, and the buttons themselves can be nested within it.

Mateja Trifunovski
@Matko95
Jan 31 2016 01:28
@barakisbrown as far as i can see it stops an infinite loop from happening
cun3
@cun3
Jan 31 2016 01:28
@Matko95 Mine is at 100%, not sure what the issue is
Matthew Brown
@barakisbrown
Jan 31 2016 01:28
so do i but its game so it will be an infinite loop right?
event loop .. jquery listening for clicks on my table
Wendy White
@wendywat
Jan 31 2016 01:29
help please
CamperBot
@camperbot
Jan 31 2016 01:29

:point_right: bonfire no repeats please [wiki]

Problem Explanation:

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

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

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

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

Mateja Trifunovski
@Matko95
Jan 31 2016 01:29
@cun3 well can you pass?
cun3
@cun3
Jan 31 2016 01:29
Got it, thanks
Mateja Trifunovski
@Matko95
Jan 31 2016 01:34
@wendywat what is it?
Shakib
@shak1701
Jan 31 2016 01:39
<script>
  $(document).ready(function() {
    $("#target1").css("color", "red");
    $("#target1").prop("disabled", true);
    $("#target4").remove();
    $("#target2").appendTo("#right-well");
    $("#target5").clone().appendTo("left-well");

  });
</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>
Instruction: "A copy of your target5 element should also be inside your left-well."
oh no worries, i have found my mistake
Christian Obed Arana navas
@COANelmejor
Jan 31 2016 01:39
@shak1701 :+1:
Shakib
@shak1701
Jan 31 2016 01:46
I'm on the challenge "Target the Parent of an Element Using jQuery"
Instruction: "Your left-well element should have a red background."
<script>
  $(document).ready(function() {
    $("#target1").css("color", "red");
    $("#target1").prop("disabled", true);
    $("#target4").remove();
    $("#target2").appendTo("#right-well");
    $("#target5").clone().appendTo("#left-well");
    $("#left-well").parent().css("background-color","red")


  });
</script>

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

<body>
  <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>
</body>
where have i gone wrong :s
found it again
Dalton Pelkey
@popatop15
Jan 31 2016 01:55
missing semicolon?
Christian Obed Arana navas
@COANelmejor
Jan 31 2016 01:57
@shak1701 is a missing semicolon.... @popatop15 say it
Shakib
@shak1701
Jan 31 2016 01:58
that and also the ID was supposed to be #target1
Zachary Hyder
@zacharyhyder
Jan 31 2016 02:08

I know this is probably something really simple. But I cannot seem to get this .text

$(document).ready(function() {
$("#target1").css("color", "red");
$("h3").html("<i>jQuery Playground</i>");
$("#target4").text();

Change the button with id target4 by italicizing its text.
cannelflow
@cannelflow
Jan 31 2016 02:09
@zacharyhyder which exercise?
Zachary Hyder
@zacharyhyder
Jan 31 2016 02:09
Change Text Inside an Element Using jQuery
@cannelflow
cannelflow
@cannelflow
Jan 31 2016 02:10
@zacharyhyder this is how you italicizing text and you are doing it $("h3").html("<i>jQuery Playground</i>"); you have to do it in $("#target4").text();
Zachary Odden
@oddenzac
Jan 31 2016 02:11
Instructions
Write a switch statement to set answer for the following conditions:
"a" - "apple"
"b" - "bird"
"c" - "cat"
default - "stuff"
function myTest(val) {
  var answer = "";
  // Only change code below this line
  switch (val) {
    case "a":
      answer = "apple";
      break;
    case b:
      answer = "bird";
      break;
    case "c":
      answer = "cat";
      break;
  }

  default:
  answer = "stuff";

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

// Change this value to test
myTest(1);
hey guys what do i have wrong with this code?
cannelflow
@cannelflow
Jan 31 2016 02:11
@oddenzac which exercise ?
Zachary Odden
@oddenzac
Jan 31 2016 02:11
Adding a default option in Switch statements
Matthew Brown
@barakisbrown
Jan 31 2016 02:12
move the bracket on the line underneath your default statement
Dustin
@Key-Banger
Jan 31 2016 02:13
@oddenzac b and "b" are two different things.
cannelflow
@cannelflow
Jan 31 2016 02:13
@oddenzac write default inside switch case
@oddenzac b should be string
@zacharyhyder ?
Zachary Odden
@oddenzac
Jan 31 2016 02:14
cant believe i didnt see that b wasnt a string, thank you @cannelflow @barakisbrown @Key-Banger
CamperBot
@camperbot
Jan 31 2016 02:14
oddenzac sends brownie points to @cannelflow and @barakisbrown and @key-banger :sparkles: :thumbsup: :sparkles:
:star: 304 | @barakisbrown | http://www.freecodecamp.com/barakisbrown
:star: 272 | @key-banger | http://www.freecodecamp.com/key-banger
:star: 664 | @cannelflow | http://www.freecodecamp.com/cannelflow
cannelflow
@cannelflow
Jan 31 2016 02:15
@oddenzac :+1:
Dustin
@Key-Banger
Jan 31 2016 02:15
@oddenzac It happens to everyone.
Matthew Brown
@barakisbrown
Jan 31 2016 02:16
@oddenzac YES IT DOES and anyone who does not ......
Beanster1212
@Beanster1212
Jan 31 2016 02:19
Where am I going wrong with this on "Turn an image into a link?"
<p>Click here for <a href="#"><img src="http://bit.ly/fcc-running-cats"/>cat photos</a>.</p>
Zachary Hyder
@zacharyhyder
Jan 31 2016 02:19
@cannelflow still having trouble
cannelflow
@cannelflow
Jan 31 2016 02:20
@zacharyhyder show your code
Zachary Hyder
@zacharyhyder
Jan 31 2016 02:20
@cannelflow
$("#target1").css("color", "red");
    $("target4").text("<i>#target4</i>";
cannelflow
@cannelflow
Jan 31 2016 02:21
@Beanster1212 i think you don't require p outside
Zachary Hyder
@zacharyhyder
Jan 31 2016 02:22
@cannelflow Just realized no # before target4 but that's not the issue
cannelflow
@cannelflow
Jan 31 2016 02:22
@zacharyhyder :+1:
Zachary Odden
@oddenzac
Jan 31 2016 02:23
function myTest(val) {
  var answer = "";
  // Only change code below this line
  switch (val) {
    case 1, 2, 3:
      answer = "Low";
      break;
    case 4, 5, 6:
      answer = "Mid";
      break;
    case 7, 8, 9:
      answer = "High";
      break;

  }



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

// Change this value to test
myTest(2);
whats wrong with this code guys?
PHPman
@dmitrikonnikov
Jan 31 2016 02:24
how do you put 2 classes on one image without canceling out one class
css
here is my code
Beanster1212
@Beanster1212
Jan 31 2016 02:24
@cannelflow one sec. I will try it now
Matthew Brown
@barakisbrown
Jan 31 2016 02:24
@oddenzac each case needs to be on its own line
case 1
case 2
case 3
etc
PHPman
@dmitrikonnikov
Jan 31 2016 02:24

  .smaller-image {
    width: 100px;
  }

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

  }
</style>

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

<img class="thick-green-border"class="smaller-image"src="https://bit.ly/fcc-relaxing-cat">
Zachary Odden
@oddenzac
Jan 31 2016 02:24
theres no way to combine them?
Matthew Brown
@barakisbrown
Jan 31 2016 02:25
no
Zachary Odden
@oddenzac
Jan 31 2016 02:25
ok thanks @barakisbrown
CamperBot
@camperbot
Jan 31 2016 02:25
oddenzac sends brownie points to @barakisbrown :sparkles: :thumbsup: :sparkles:
:warning: oddenzac already gave barakisbrown points
cannelflow
@cannelflow
Jan 31 2016 02:25
@dmitrikonnikov ? which exercise ?
Zachary Odden
@oddenzac
Jan 31 2016 02:25
@dmitrikonnikov seperate each class with a space
PHPman
@dmitrikonnikov
Jan 31 2016 02:25
ok
thanks i will try
thank you
Beanster1212
@Beanster1212
Jan 31 2016 02:26
No, the P's have to be there. The last check that will not let me pass is "Nest the existing img element within an a element."
Here is the code: <p> Click here for <a href="#"><img src="http://bit.ly/fcc-running-cats"/>cat photos</a>.</p>
Zachary Hyder
@zacharyhyder
Jan 31 2016 02:27
  $("#target1").css("color", "red");
    $("#target4").text();
  });
Zachary Odden
@oddenzac
Jan 31 2016 02:29
function myTest(val) {
  var answer = "";
  // Only change code below this line
  switch (val) {
    case 1:
      answer = "Low";
      break;
    case 2:
      answer = "low";
      break;
    case 3:
      answer = "low";
      break;

    case 4:
      answer = "Mid";
      break;
    case 5:
      answer = "Mid";
      break;
    case 6:
      answer = "Mid";
      break;

    case 7:
      answer = "High";
      break;
    case 8:
      answer = "High";
      break;
    case 9:
      answer = "High";
      break;

  }



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

// Change this value to test
myTest(3);
this is my code and the only two objectives that arent correct are these
myTest(2) should return "Low"
myTest(3) should return "Low"
is it a bug or is there an error in my code?
cannelflow
@cannelflow
Jan 31 2016 02:30
@Beanster1212 you can keep p but there should be class="smaller-image thick-green-border" in img
Zachary Odden
@oddenzac
Jan 31 2016 02:30
got it, they werent in caps
Zachary Hyder
@zacharyhyder
Jan 31 2016 02:30
@cannelflow i got it
Dustin
@Key-Banger
Jan 31 2016 02:30
@Beanster1212 you don't need the "/" after src="http://bit.ly/fcc-running-cats"
Zachary Hyder
@zacharyhyder
Jan 31 2016 02:30
<script>
  $(document).ready(function() {
    $("#target1").css("color", "red");
    $("#target4").html("<i>#target4</i>");
  });
</script>
cannelflow
@cannelflow
Jan 31 2016 02:31
@oddenzac which exercise ?
Beanster1212
@Beanster1212
Jan 31 2016 02:31
@cannelflow yes, I have that in the following line. @Key-Banger noted, thank you.
CamperBot
@camperbot
Jan 31 2016 02:31
beanster1212 sends brownie points to @cannelflow and @key-banger :sparkles: :thumbsup: :sparkles:
:star: 665 | @cannelflow | http://www.freecodecamp.com/cannelflow
:star: 273 | @key-banger | http://www.freecodecamp.com/key-banger
Beanster1212
@Beanster1212
Jan 31 2016 02:32

<p> Click here for <a href="#"><img src="http://bit.ly/fcc-running-cats">cat photos</a>.</p>

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

Still will not accept me for the one point "Nest the existing img element within an a element."
Everything has been fairly easy and straightforward until now. This task is acting erratically.
Dustin
@Key-Banger
Jan 31 2016 02:33
@Beanster1212
<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>
cannelflow
@cannelflow
Jan 31 2016 02:33
@Beanster1212 add class in same img
as @Key-Banger said
Beanster1212
@Beanster1212
Jan 31 2016 02:36
@Key-Banger @cannelflow worked out. Thank you very much, guys. Appreciate it
CamperBot
@camperbot
Jan 31 2016 02:36
beanster1212 sends brownie points to @key-banger and @cannelflow :sparkles: :thumbsup: :sparkles:
:warning: beanster1212 already gave cannelflow points
:warning: beanster1212 already gave key-banger points
Zachary Odden
@oddenzac
Jan 31 2016 02:36

hey guys a little stuck on this one ```js
function isLess(a, b) {
// Fix this code
if (a < b) {
return true;
} else {
return false;
}
}

// Change these values to test
isLess(10, 15);

```

Fix the function isLess to remove the if/else statements.

Dustin
@Key-Banger
Jan 31 2016 02:36
@Beanster1212 No problem.
Zachary Odden
@oddenzac
Jan 31 2016 02:36
function isLess(a, b) {
  // Fix this code
  if (a < b) {
    return true;
  } else {
    return false;
  }
}

// Change these values to test
isLess(10, 15);
the thing is i cant use any if/else statements
cannelflow
@cannelflow
Jan 31 2016 02:37
@oddenzac what is the problem which exercise ?
Zachary Odden
@oddenzac
Jan 31 2016 02:38
returning boolean values from functions
Matthew Brown
@barakisbrown
Jan 31 2016 02:38
return (b - a) i think is the answer
cannelflow
@cannelflow
Jan 31 2016 02:39
yes you can return as @barakisbrown said
or return a<b;
Andrew
@gskll
Jan 31 2016 02:39
Hey guys, just wondering how you can chain RegEx’s together? Say I want to get rid of all non-alphanumeric letters as well as underscores. I’m trying /\W+[_]s+/gi, but it’s not working..
Or would I need to chain .replace(RegEx, ).replace(RegEx2, )…? Thanks
Zachary Odden
@oddenzac
Jan 31 2016 02:40
returning a<b makes one of the statements true, but not the other.. so how would i implement returning a>b
Matthew Brown
@barakisbrown
Jan 31 2016 02:40
return a > b
cannelflow
@cannelflow
Jan 31 2016 02:40
@barakisbrown return (a<b); @barakisbrown return (b - a) not working
Matthew Brown
@barakisbrown
Jan 31 2016 02:41
@cannelflow i realized that after I made the comment .. my bad
cannelflow
@cannelflow
Jan 31 2016 02:41
@barakisbrown :+1:
Zachary Odden
@oddenzac
Jan 31 2016 02:41
do both of them?
i cant have two return statements
and i cant use any if and else statement
cannelflow
@cannelflow
Jan 31 2016 02:42
before it was if (a < b) @oddenzac so return (a<b);
Zachary Odden
@oddenzac
Jan 31 2016 02:43
correct, but i need to write it so that there are no if or else statements
cannelflow
@cannelflow
Jan 31 2016 02:44
@oddenzac if you do this return (a<b); if b is greater it will say T otherwise F no if else
,< gives Boolean value
Zachary Odden
@oddenzac
Jan 31 2016 02:45
simple, thank you very much @cannelflow
CamperBot
@camperbot
Jan 31 2016 02:45
oddenzac sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:warning: oddenzac already gave cannelflow points
Zachary Odden
@oddenzac
Jan 31 2016 02:51
// Setup
function abTest(a, b) {
  // Only change code below this line
    if (a < 0) {
      return "undefined";
 }
  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);
Modify the function abTest so that if a or b are less than 0 the function will immediately exit with a value of undefined.
Matthew Brown
@barakisbrown
Jan 31 2016 02:52
if (a < 0)||(b < 0) return "undefined"
Zachary Odden
@oddenzac
Jan 31 2016 02:55
abTest(-2,2) should return undefined
abTest(2,-2) should return undefined
those do not get checked when i did that
Matthew Brown
@barakisbrown
Jan 31 2016 02:56
chain them together with a ||
if (a < 0) || (b < 0) return undefined
Zachary Odden
@oddenzac
Jan 31 2016 02:56
function abTest(a, b) {
  // Only change code below this line
    if (a < 0 || b < 0) return "undefined";
wait 1 sec
yea still not working
    if (a < 0) || (b < 0) return "undefined";
i did that and get errors
Alec
@akerr95
Jan 31 2016 02:59
heyy oddenzac
@oddenzac got the problem fixed?
Zachary Odden
@oddenzac
Jan 31 2016 03:01
i did not @akerr95
Matthew Bailin
@mdbailin
Jan 31 2016 03:01
Hey everyone. I'm having trouble with turning an image into a link by nesting a link into an "a" element
Alec
@akerr95
Jan 31 2016 03:02
okay ahm what bonfire is it, ima take a look on it @oddenzac
@mdbailin what have you tried
Zachary Odden
@oddenzac
Jan 31 2016 03:02
how do i check what bonfire it is?
@mdbailin lets see the code you tried
Matthew Bailin
@mdbailin
Jan 31 2016 03:02
<p>Click here for <a href="#"><img src="http://bit.ly/fcc-running-cats">cat photos</a>.</p>
<p>Click here for <a href="#"><img src="http://bit.ly/fcc-running-cats">cat photos</a>.</p>
That's what I've tried so far
Zachary Odden
@oddenzac
Jan 31 2016 03:03
its return early pattern for functions @akerr95
@mdbailin what challenge are you on?
Alec
@akerr95
Jan 31 2016 03:04
@oddenzac ima look at @mdbailin then yours
Zachary Odden
@oddenzac
Jan 31 2016 03:04
ill help @mdbailin if you want
Matthew Bailin
@mdbailin
Jan 31 2016 03:05
Yes plz do. Thanks
Zachary Odden
@oddenzac
Jan 31 2016 03:05
what challenge are you on?
Alec
@akerr95
Jan 31 2016 03:05
@mdbailin your img is a link
so whats the problem ?
Matthew Bailin
@mdbailin
Jan 31 2016 03:06
The challenge won't finish
idk why
Zachary Odden
@oddenzac
Jan 31 2016 03:06
maybe remove the period betweem </a> and </p>
Andrew
@gskll
Jan 31 2016 03:07
help regular expressions
CamperBot
@camperbot
Jan 31 2016 03:07

:point_right: waypoint find numbers with regular expressions [wiki]

Find Numbers with Regular Expressions

We can use special selectors in Regular Expressions to select a particular type of value.

One such selector is the digit selector \d which is used to grab the numbers in a string.

It is used like this: /\d+/g.

:pencil: read more about waypoint find numbers with regular expressions on the FCC Wiki

Matthew Bailin
@mdbailin
Jan 31 2016 03:07
no dice
Alec
@akerr95
Jan 31 2016 03:07
whats the name of the challenge @mdbailin
Matthew Bailin
@mdbailin
Jan 31 2016 03:08
"Turn an Image into a Link"
Zachary Odden
@oddenzac
Jan 31 2016 03:09
remove the img source tag
Matthew Bailin
@mdbailin
Jan 31 2016 03:09
ok let me try
Zachary Odden
@oddenzac
Jan 31 2016 03:09
wait a second, thats turning text into a link, not turning the image into link. maybe you are working on the wrong line of script??
@mdbailin the code you sent us is in a <p> tag, which means its going to be text instead of an image
Brian
@sludge256
Jan 31 2016 03:13
a common mistake on those lessons is that people will either modify the wrong line
or they will create an entirely new element
instead of modifying the existing img or link
Alec
@akerr95
Jan 31 2016 03:13
@mdbailin
Brian
@sludge256
Jan 31 2016 03:13
and unless they post their full code it's nearly impossible to tell
Zachary Odden
@oddenzac
Jan 31 2016 03:14
@sludge256 i have a request for some help on this challenge i am on.
Alec
@akerr95
Jan 31 2016 03:14
'''
CamperBot
@camperbot
Jan 31 2016 03:14
:bulb: to format code use backticks! ``` more info
Zachary Odden
@oddenzac
Jan 31 2016 03:14
// Setup
function abTest(a, b) {
  // Only change code below this line
    if (a < 0 || b < 0) return "undefined";


  // Only change code above this line

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

// Change values below to test your code
abTest(-2,2);
Modify the function abTest so that if a or b are less than 0 the function will immediately exit with a value of undefined.
Brian
@sludge256
Jan 31 2016 03:15
@oddenzac undefined is a value
imagine if you wanted to return a number
and not a number as a string
Zachary Odden
@oddenzac
Jan 31 2016 03:15
so, how would i fix it to return undefined?
Brian
@sludge256
Jan 31 2016 03:15
yep
or just return works too
Zachary Odden
@oddenzac
Jan 31 2016 03:16
got it, thank you so much @sludge256
CamperBot
@camperbot
Jan 31 2016 03:16
oddenzac sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 1159 | @sludge256 | http://www.freecodecamp.com/sludge256
Alec
@akerr95
Jan 31 2016 03:17
```
<p>Click here for <a href="#"><img src="http://bit.ly/fcc-running-cats">cat photos.</p>
@mdbailin that should work
@oddenzac looks like problem solved
Zachary Odden
@oddenzac
Jan 31 2016 03:22
can someone paste me the code for the challenge called counting cards? I would love to be able to learn by looking at it instead of puzzling through it first
Syed Isam Hashmi
@prosdkr
Jan 31 2016 03:33
Here to help for a bit, mention me if you need anything :)
Zachary Odden
@oddenzac
Jan 31 2016 03:38
thanks @prosdkr
CamperBot
@camperbot
Jan 31 2016 03:38
oddenzac sends brownie points to @prosdkr :sparkles: :thumbsup: :sparkles:
:star: 317 | @prosdkr | http://www.freecodecamp.com/prosdkr
edgar
@codemyassoff
Jan 31 2016 03:46
can some help me figure out whats wrong with my code
<style>
  body {
    background-color: black;
    font-family: times new roman;
    color: green;
  }
  pink-text{

    color:pink;
  }
</style>
<h1 class="pink-text">Hello World!</h1>
Syed Isam Hashmi
@prosdkr
Jan 31 2016 03:47
@codemyassoff put a . before pink-text in the style tag
it's a class
so it should be ".pink-text"
@codemyassoff did that work?
huy-tran
@huy-tran
Jan 31 2016 03:59
@codemyassoff font-family should be wrapped like this "Times New Roman" because it has more than one word
Mohamed Fahadh
@fahadh14
Jan 31 2016 03:59
guys i need help
did my 1st bonfire exercise , managed to do it
but its messy can someone tell me how to write it nicer
Syed Isam Hashmi
@prosdkr
Jan 31 2016 04:00
@fahadh14 sure, what do you need? :)
@fahadh14 send it over :D
huy-tran
@huy-tran
Jan 31 2016 04:00
and the typo like @prosdkr said: adding dot "." to declare your class
Mohamed Fahadh
@fahadh14
Jan 31 2016 04:00

@prosdkr ```js
var a = "";
function reverseString(str) {
var b = "";
a = str.split("");
a.reverse();
b = a.join("");
return b;
}

reverseString("hello");

```

var a = "";
function reverseString(str) {
  var b = "";
  a = str.split("");
  a.reverse();
  b = a.join("");
  return b;
}

reverseString("hello");
@prosdkr
Syed Isam Hashmi
@prosdkr
Jan 31 2016 04:01
function reverseString(str) {
  a = str.split("");
  a.reverse();
  return a.join("");
}
try that? :)
Dalton Pelkey
@popatop15
Jan 31 2016 04:02
Was about to ask why you needed the .split() prototype
Mohamed Fahadh
@fahadh14
Jan 31 2016 04:02
@prosdkr omg sweet
perfect code
Thanks! @prosdkr
CamperBot
@camperbot
Jan 31 2016 04:02
fahadh14 sends brownie points to @prosdkr :sparkles: :thumbsup: :sparkles:
:star: 322 | @prosdkr | http://www.freecodecamp.com/prosdkr
Syed Isam Hashmi
@prosdkr
Jan 31 2016 04:02
awesome :)
@fahadh14 no problem, message me if you need anything else! :D
Mohamed Fahadh
@fahadh14
Jan 31 2016 04:02
i need to practise writing code this way
Syed Isam Hashmi
@prosdkr
Jan 31 2016 04:03
@fahadh14
function reverseString(str) {
  return str.split("").reverse().join("");
}
Mohamed Fahadh
@fahadh14
Jan 31 2016 04:03
@popatop15 to reverse you need an array, so need to split first ;/
Syed Isam Hashmi
@prosdkr
Jan 31 2016 04:03
@fahadh14 could probably get away with that too ;)
Mohamed Fahadh
@fahadh14
Jan 31 2016 04:03
@prosdkr wow thats even more sleek
Syed Isam Hashmi
@prosdkr
Jan 31 2016 04:04
@fahadh14 hehe, yup :D
Pranav Doshi
@pranavdoshi
Jan 31 2016 04:14
hello gm guys
:)
Mico Dospueblos
@micolifee
Jan 31 2016 04:23
Hello guys how can I set lobster font as a font-family value on h2 element?
Pavaman Yajurvedi
@mypavaman
Jan 31 2016 04:28
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
Matthew Bailin
@mdbailin
Jan 31 2016 04:28
Hi there. Sorry I was called away.
@sludge256 Here is my full code.

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

<a href="#"><img src="http://bit.ly/fcc-running-cats"></a>

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

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

I took out all of the "p" references in the "a" element. Still no go.
Brian
@sludge256
Jan 31 2016 04:30
What's the goal?
refresh my memory
Mico Dospueblos
@micolifee
Jan 31 2016 04:31
@mdbailin thx
liangke
@liangkecho
Jan 31 2016 04:33
does someone can teach me that
Replace the value of your a element's href attribute with a #, also known as a hash symbol, to turn it into a dead link.
Zachary Odden
@oddenzac
Jan 31 2016 04:33
// Setup
function phoneticLookup(val) {
  var result = "";

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

  };

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

// Change this value to test
phoneticLookup("charlie");
hey guys what do i have wrong here??
Convert the switch statement into a lookup table called lookup. Use it to lookup val and return the associated string.
Brian
@sludge256
Jan 31 2016 04:33
@liangkecho so normally the value of your href attribute is a url
replace the url with #
@oddenzac you have the object but you aren't doing anything with it
Matthew Bailin
@mdbailin
Jan 31 2016 04:34
@sludge256 My goal is to turn an image into a link
Zachary Odden
@oddenzac
Jan 31 2016 04:34
so what do i nee to do exactly??
liangke
@liangkecho
Jan 31 2016 04:34
@sludge256 thanks
CamperBot
@camperbot
Jan 31 2016 04:34
liangkecho sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 1166 | @sludge256 | http://www.freecodecamp.com/sludge256
Matthew Bailin
@mdbailin
Jan 31 2016 04:34
but I think I see what's up...It wants me to use the existing img in the code, not the one provided in the example
NoBro93
@NoBro93
Jan 31 2016 04:35
@oddenzac that looks fine. what is it asking?
Zachary Odden
@oddenzac
Jan 31 2016 04:35
Convert the switch statement into a lookup table called lookup. Use it to lookup val and return the associated string.
Brian
@sludge256
Jan 31 2016 04:35
@mdbailin yep

@oddenzac so this in the example

alpha[value];

shows you how to access the value

alpha being the name of the object
value being the name of the variable
that contains the lookup value
once you have accessed this value you should assign it to the variable that you are returning
Zachary Odden
@oddenzac
Jan 31 2016 04:37
so... lookup[value]?
Brian
@sludge256
Jan 31 2016 04:37
well in your code
your variable is called val
but yes you have the right idea
NoBro93
@NoBro93
Jan 31 2016 04:39
lookup[val] would give you the value from your table corresponding to whatever string val is
Zachary Odden
@oddenzac
Jan 31 2016 04:39
thats what i did, and its incorrect still
Matthew Bailin
@mdbailin
Jan 31 2016 04:39
@sludge256 Still not working...
Zachary Odden
@oddenzac
Jan 31 2016 04:39
// Setup
function phoneticLookup(val) {
  var result = "";

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

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

// Change this value to test
phoneticLookup("charlie");
NoBro93
@NoBro93
Jan 31 2016 04:40
you have to do something with that value. that only calculates it
Brian
@sludge256
Jan 31 2016 04:40
@mdbailin I would recommend pressing the reset button in case you added or removed code
then starting fresh from there
Matthew Bailin
@mdbailin
Jan 31 2016 04:40
@sludge256 I've tried that so many times...lol
Brian
@sludge256
Jan 31 2016 04:40
once more then :D
Matthew Bailin
@mdbailin
Jan 31 2016 04:40
k
Zachary Odden
@oddenzac
Jan 31 2016 04:41
i am getting an error on my lookup[val]; it says nexpected token
Brian
@sludge256
Jan 31 2016 04:41
@oddenzac you should assign it to a certain variable
you're not doing anything with the value you're accessing
Matthew Bailin
@mdbailin
Jan 31 2016 04:42
@sludge256 got it!
Brian
@sludge256
Jan 31 2016 04:42
@mdbailin sweet :+1:
Matthew Bailin
@mdbailin
Jan 31 2016 04:42
It needed the class of the image too! haha...how silly
Zachary Odden
@oddenzac
Jan 31 2016 04:42
can i get an example too please? it would be much easier to understand
Brian
@sludge256
Jan 31 2016 04:42
right now you're returning the variable result
but result is just an empty string
you want result to have the value that you're looking up inside the object
how would you connect these two things?
Matthew Bailin
@mdbailin
Jan 31 2016 04:43
thanks @sludge256
CamperBot
@camperbot
Jan 31 2016 04:43
mdbailin sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 1167 | @sludge256 | http://www.freecodecamp.com/sludge256
Zachary Odden
@oddenzac
Jan 31 2016 04:44
maybe im completely overthinking this right now (which i always do) but I do not know..
NoBro93
@NoBro93
Jan 31 2016 04:45
@oddenzac you need the variable result to have the value you found in the table
Zachary Odden
@oddenzac
Jan 31 2016 04:46
it tells me not to change the code below that line
// Setup
function phoneticLookup(val) {
  var result = "";

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

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

// Change this value to test
phoneticLookup("charlie");
NoBro93
@NoBro93
Jan 31 2016 04:46
so just change it above the line
Zachary Odden
@oddenzac
Jan 31 2016 04:47
can someone just write the line for me? I am completely blanking
NoBro93
@NoBro93
Jan 31 2016 04:48
result = lookup[val];
Zachary Odden
@oddenzac
Jan 31 2016 04:48
wow.....
i cant believe i couldnt understand what you guys were saying
thanks so much @NoBro93 @sludge256
CamperBot
@camperbot
Jan 31 2016 04:49
oddenzac sends brownie points to @nobro93 and @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 1168 | @sludge256 | http://www.freecodecamp.com/sludge256
:star: 147 | @nobro93 | http://www.freecodecamp.com/nobro93
Zachary Odden
@oddenzac
Jan 31 2016 04:49
like i said, i ALWAYS overthink things way too much
NoBro93
@NoBro93
Jan 31 2016 04:49
haha no problem. it gets easy to overthink things
Zachary Odden
@oddenzac
Jan 31 2016 04:50
it sure does, makes you feel dumb hahaha
but thanks again man i appreciate the help a lot
qsjackson
@qsjackson
Jan 31 2016 04:58
How do I change the text zoom?
or verify that my text zoom is at 100%
Pranav Doshi
@pranavdoshi
Jan 31 2016 04:58
zoom property of css
zoom:1 is 100%
Brian
@sludge256
Jan 31 2016 05:01
he's talking about his browser zoom level
ctrl + 0 does the trick
Ahmad Mansour
@Ahmad-Mansour
Jan 31 2016 05:06

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

}

</style>

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

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

guys what's wrong with my code?
Pedro Rezende
@pedrorezende
Jan 31 2016 05:07
@Ahmad-Mansour You have two "class" properties for <img> tag
Ahmad Mansour
@Ahmad-Mansour
Jan 31 2016 05:07
i have already added the "smaller-image" class but it's not detectable !
Ogundele Olumide
@Lumexralph
Jan 31 2016 05:08
@Ahmad-Mansour what're you trying to do?
Pedro Rezende
@pedrorezende
Jan 31 2016 05:08
it should be: <img class="thick-green-border smaller-image" src="https://bit.ly/fcc-relaxing-cat">
Ahmad Mansour
@Ahmad-Mansour
Jan 31 2016 05:09
i want the img tag to detect the second "smaller-image" class
Ogundele Olumide
@Lumexralph
Jan 31 2016 05:09
Agree with @pedrorezende
Ahmad Mansour
@Ahmad-Mansour
Jan 31 2016 05:09
so i should remove the second class?
Ogundele Olumide
@Lumexralph
Jan 31 2016 05:09
Try what @pedrorezende said.... @Ahmad-Mansour
Yes... Try that @Ahmad-Mansour
Ahmad Mansour
@Ahmad-Mansour
Jan 31 2016 05:10
It worked :smile:
Pedro Rezende
@pedrorezende
Jan 31 2016 05:10
;-)
Ahmad Mansour
@Ahmad-Mansour
Jan 31 2016 05:10
Thanks Pedro (y)
how can i give you a brownie points?
am kinda new here :smile:
Pranav Doshi
@pranavdoshi
Jan 31 2016 05:12
thanks @Nam
CamperBot
@camperbot
Jan 31 2016 05:12
pranavdoshi sends brownie points to @nam :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for nam
Pranav Doshi
@pranavdoshi
Jan 31 2016 05:12
like dis
hehe @sludge256
i thght css
:)
:P
Pedro Rezende
@pedrorezende
Jan 31 2016 05:14
@Ahmad-Mansour I don't even know what is Brownie Points, haha. This is the first time I enter here :)
mrugesh
@raisedadead
Jan 31 2016 05:18
explain brownie points
CamperBot
@camperbot
Jan 31 2016 05:18

:point_right: brownie points [wiki]

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

A user profile picture next to a with Brownie Points score

There are three ways you can get Brownie Points:

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

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

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

Pranav Doshi
@pranavdoshi
Jan 31 2016 05:18
@pedrorezende i already gave eg.
Pedro Rezende
@pedrorezende
Jan 31 2016 05:18
Thank you, guys :)
mrugesh
@raisedadead
Jan 31 2016 05:19
@pedrorezende There you go, the camperbot is there to sort you out! :smile:
HARISH PANDAMANENI
@harish436
Jan 31 2016 05:19
function convert(celsius) {
  // Only change code below this line

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

// Change the inputs below to test your code
convert(30);
convert(0);
can any one help me
mrugesh
@raisedadead
Jan 31 2016 05:21
there is a typo in farenheit @harish436
runntumtuber
@runntumtuber
Jan 31 2016 05:22
You are dividing 9 by 5, then multiplying it by 30, and multiplying it by 32 @harish436
mrugesh
@raisedadead
Jan 31 2016 05:22
you are missing an h
runntumtuber
@runntumtuber
Jan 31 2016 05:23
Fahrenheit needs to be assigned celsius, then multiplied by 9/5 + 32
mrugesh
@raisedadead
Jan 31 2016 05:24
hmm, @runntumtuber the expression looks odd but is actually correct.
I mean the end result will evaluate correctly, its just written in a non-standard way IMHO
HARISH PANDAMANENI
@harish436
Jan 31 2016 05:25
@raisedadead thank you :)
CamperBot
@camperbot
Jan 31 2016 05:25
harish436 sends brownie points to @raisedadead :sparkles: :thumbsup: :sparkles:
:star: 218 | @raisedadead | http://www.freecodecamp.com/raisedadead
mrugesh
@raisedadead
Jan 31 2016 05:25
Sure thing @harish436 !
runntumtuber
@runntumtuber
Jan 31 2016 05:27
ahh, good job.. it's easy to overlook things like typos..
mrugesh
@raisedadead
Jan 31 2016 05:30
@runntumtuber thanks :)
CamperBot
@camperbot
Jan 31 2016 05:30
raisedadead sends brownie points to @runntumtuber :sparkles: :thumbsup: :sparkles:
:star: 173 | @runntumtuber | http://www.freecodecamp.com/runntumtuber
KoToZ
@Mohamedtareque
Jan 31 2016 05:38
guys
how can i separate spaces between rows in calculator
see my code here
http://codepen.io/Mohamedtareque/pen/gPKvWr?editors=1100
HARISH PANDAMANENI
@harish436
Jan 31 2016 05:38
myStr should have the escape sequences for backslash tab tab carriage-return new-line separated by spaces
var myStr; // Change this line
mystr = "\\ \t \t \r \n";
Dien Dang
@diendang271
Jan 31 2016 05:42
How to code copy to clipboard function in javascript???
Pedro Rezende
@pedrorezende
Jan 31 2016 05:43
@Mohamedtareque You'll need to create a classe for each row container, let's say, ".row", with a defined margin-bottom; and then apply this class to the <div> tags that group the buttons
KoToZ
@Mohamedtareque
Jan 31 2016 05:44
ya i will
NoBro93
@NoBro93
Jan 31 2016 05:44
@harish436 you didn't capitalize the S in the second myStr, so it is treating it as a separate variable
KoToZ
@Mohamedtareque
Jan 31 2016 05:47
@pedrorezende how can i fix color of fonts in button as it change ?
HARISH PANDAMANENI
@harish436
Jan 31 2016 05:47
@NoBro93 thank you +1:
CamperBot
@camperbot
Jan 31 2016 05:47
harish436 sends brownie points to @nobro93 :sparkles: :thumbsup: :sparkles:
:star: 181 | @nobro93 | http://www.freecodecamp.com/nobro93
Brian
@sludge256
Jan 31 2016 05:48

Reminder, Free Code Camp will be going down for maintenance at 10PM PST/1AM EST tonight

Pedro Rezende
@pedrorezende
Jan 31 2016 05:50
@Mohamedtareque Bootstrap is applying a hover color on your button. You'll need to override it on the CSS, doing something like: .btn:hover { color: red; }
KoToZ
@Mohamedtareque
Jan 31 2016 05:53
ya this is work is bootstrap make this as i use color : #fff or what ?
Pedro Rezende
@pedrorezende
Jan 31 2016 05:57
@Mohamedtareque If you look at Bootstrap code (here: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.css ) you can search for .btn:hover , it's on line 3032 . The styles for the button in the normal state are right above (line 3001)
HARISH PANDAMANENI
@harish436
Jan 31 2016 06:00
// Example
var firstNameLength = 0;
var firstName = "Ada";

firstNameLength = firstName.length;

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

// Only change code below this line.

lastNameLength = lastName;
lastNameLength.length;
lastNameLength should be equal to eight.
NoBro93
@NoBro93
Jan 31 2016 06:01
you probably wanted lastNameLength = lastName.length; all on one line
otherwise you are setting lastNameLength to whatever lastName is and then finding the length of that without storing it in a variable
HARISH PANDAMANENI
@harish436
Jan 31 2016 06:07
@NoBro93 thankyou
NoBro93
@NoBro93
Jan 31 2016 06:08
no problem
budimanfix
@budimanfix
Jan 31 2016 06:18

Hello guys... would you give Example for this one: ```js
var studlyCapVaR = 10;
var properCamelCase ="A String";
var TitleCaseOver = 9000;

// Assignments
STUDLYCAPVAR = 10;
PRoperCAmelCAse = "A String";
tITLEcASEoVER = 9000;

```

HARISH PANDAMANENI
@harish436
Jan 31 2016 06:19
conver each to camelcase
@budimanfix
@budimanfix studlyCapVar = 10;
properCamelCase = "A String";
titleCaseOver = 9000;
studlyCapVar = 10;
properCamelCase = "A String";
titleCaseOver = 9000;
Arnoldo Munoz
@ArnoldoM23
Jan 31 2016 06:30
Hi I'm working on the random quote generator but my code won't seem to work properly. Can someone please take a look at my code and tell me what I'm doing wrong a second pair of eyes would really help. This is the link http://codepen.io/codeLife23/pen/qbowBK
Jade Xiao
@jadexiao
Jan 31 2016 06:35
@ArnoldoM23 Try putting your quotes array inside the randomQuotes function, the problem is that the function can’t access an array outside its scope
Arnoldo Munoz
@ArnoldoM23
Jan 31 2016 06:36
I got it to work I just needed to remove the else statement.
Chris
@chrisroberts2850
Jan 31 2016 06:37
Anybody know how long they're expecting it to be down for maintenance?
Pedro Rezende
@pedrorezende
Jan 31 2016 06:39
@ArnoldoM23 hint: you could use quotes.length instead of 8
Daniela
@undefinedsymbol
Jan 31 2016 06:56
@ArnoldoM23 And you can also bring up the quotes and authors by generating a new random number at each execution of the function (probably by button click) and then get a random element of the array like this: quotes[randomNum].quote and quote[randomNum].author, respectively.
shimax
@shimax
Jan 31 2016 07:03
hi
Alec
@akerr95
Jan 31 2016 07:26
@shimax Hi
Elifaz Filho
@Elifaz
Jan 31 2016 07:29
wiki sum all primes
CamperBot
@camperbot
Jan 31 2016 07:29

:point_right: bonfire sum all primes [wiki]

Explanation:

The explanation for this problem is very simple. You will generate a list of prime numbers up to the number you are given as a parameter. Then you need to add them all up and return that value. The tricky part is on generating the list of prime numbers. I suggest you find a code or a good math algorithm that you can turn into code.

:pencil: read more about bonfire sum all primes on the FCC Wiki

Alec
@akerr95
Jan 31 2016 07:30
@camperbot
Elifaz Filho
@Elifaz
Jan 31 2016 07:37
does anyone knows the meaning of this operator? << I did a google search and apparently this comes invisible to the search
is this even a operator?
Brian
@sludge256
Jan 31 2016 07:38
the ?
Alec
@akerr95
Jan 31 2016 07:38
@Elifaz in c++ it is, im not sure for java
Brian
@sludge256
Jan 31 2016 07:38
look for the term ternary
Elifaz Filho
@Elifaz
Jan 31 2016 07:38
I can’t find it on MDN
huy-tran
@huy-tran
Jan 31 2016 07:39
it’s kind of if else statement shortcut
Elifaz Filho
@Elifaz
Jan 31 2016 07:39
no, not the the ternary operator, the <<
Zabith Ahammed
@sabithahamedm
Jan 31 2016 07:39
Retrieve the second tree from the variable myPlants using object dot and array bracket notation.
Brian
@sludge256
Jan 31 2016 07:39
oh
huy-tran
@huy-tran
Jan 31 2016 07:39
would be easier if you put the whole code :)
Zabith Ahammed
@sabithahamedm
Jan 31 2016 07:39
please let me know how to code it
i usually use that operator to shift bits
Brian
@sludge256
Jan 31 2016 07:40
oh dang
too slow :P
Alec
@akerr95
Jan 31 2016 07:41
@sludge256 finally beat you to an answer #MissionAccomplished
Elifaz Filho
@Elifaz
Jan 31 2016 07:41
left shift what the heck…never heard of it. Will take a look now.
thanks @sludge256 @akerr95 @huy-tran
CamperBot
@camperbot
Jan 31 2016 07:41
elifaz sends brownie points to @sludge256 and @akerr95 and @akerr95 and @huy-tran :sparkles: :thumbsup: :sparkles:
:star: 216 | @akerr95 | http://www.freecodecamp.com/akerr95
:star: 1173 | @sludge256 | http://www.freecodecamp.com/sludge256
:star: 216 | @akerr95 | http://www.freecodecamp.com/akerr95
:star: 101 | @huy-tran | http://www.freecodecamp.com/huy-tran
Pedro Rezende
@pedrorezende
Jan 31 2016 07:45
@Elifaz left shift and right shit are great to play with power of 2 . For example, an expression like "x *( 2 ^ value)" can be written like x << value
right shift* lol
Arnoldo Munoz
@ArnoldoM23
Jan 31 2016 07:52
@pedrorezende thanks makes so much more sense to do it that way its more reusable I don't why I didn't think of that. @undefinedsymbol also than you its simple changes in the code that make it more efficient. I really appreciate it I'm going to look at my code different from now on.
CamperBot
@camperbot
Jan 31 2016 07:52
arnoldom23 sends brownie points to @pedrorezende and @undefinedsymbol :sparkles: :thumbsup: :sparkles:
:star: 24 | @pedrorezende | http://www.freecodecamp.com/pedrorezende
:star: 379 | @undefinedsymbol | http://www.freecodecamp.com/undefinedsymbol
Flo
@florianjosefreheis
Jan 31 2016 08:09
hey guys
Alec
@akerr95
Jan 31 2016 08:09
@florianjosefreheis Hi
Flo
@florianjosefreheis
Jan 31 2016 08:11
I have a question regarding exercise 104, simple thing, should add following comment: <!-- Only change code above this line. --> but I always get an error, that the comment has not the right wording. tried it with and without the dot.
Greg D
@mosaic-greg
Jan 31 2016 08:12
@florianjosefreheis can you paste your code?
kirbyedy
@kirbyedy
Jan 31 2016 08:12
what is the 104 exercise?
Flo
@florianjosefreheis
Jan 31 2016 08:13
<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>
Task: Add a comment at the top of your HTML that says Only change code above this line.
kirbyedy
@kirbyedy
Jan 31 2016 08:14
you have to add a comment, do you know how is that done?
Flo
@florianjosefreheis
Jan 31 2016 08:15
yeas
Its all about the wording of it
kirbyedy
@kirbyedy
Jan 31 2016 08:18
you know how to comment in the html ?
Flo
@florianjosefreheis
Jan 31 2016 08:20
yes, the error belongs only to the point that the comment text is not right
Brian
@sludge256
Jan 31 2016 08:22
Is there really a comment lesson that far into the curriculum?
I think giving a challenge name would be more helpful than givings us a number
MD. Abdur Rahim
@Hredoy
Jan 31 2016 08:22
i need help
Mohamed Fahadh
@fahadh14
Jan 31 2016 08:22
guys doing the palindrome bonfire someone help me out
function palindrome(str) {
  // Good luck!
  var a =str.replace(/[~`!@#$%^&*()-_=+[{\|;:'",<.>?/}]]/g,"");
  var b= a.toLowerCase();
  var c = b.split("");
  var d = c.reverse();
  var e = d.join("");
  if (e === b){
  return true;
  }
  else {
    return false;
  }
  }



palindrome("not a palindrome");
kirbyedy
@kirbyedy
Jan 31 2016 08:23
@florianjosefreheis you have to write the exact same text as they want
Only change code above this line.
this is your text
Flo
@florianjosefreheis
Jan 31 2016 08:23
@kirbyedy yes, I did
MD. Abdur Rahim
@Hredoy
Jan 31 2016 08:24

Your p element should have the text "View more " (with a space after it).
this is the challenge ...
here is the code

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

kirbyedy
@kirbyedy
Jan 31 2016 08:24
how, paste your code, only that line
MD. Abdur Rahim
@Hredoy
Jan 31 2016 08:24
i m
kirbyedy
@kirbyedy
Jan 31 2016 08:24
sorry that was for @florianjosefreheis :)
Flo
@florianjosefreheis
Jan 31 2016 08:24
Brian
@sludge256
Jan 31 2016 08:24
@Hredoy so with your code it will say "cat photosView more"
kirbyedy
@kirbyedy
Jan 31 2016 08:25
@florianjosefreheis try to give space after -
Brian
@sludge256
Jan 31 2016 08:25
"View more " should be in front of "cata photos"
and inside a p element
huy-tran
@huy-tran
Jan 31 2016 08:26
@Hredoy <p>View More <a…..>cat photos</a></p>
MD. Abdur Rahim
@Hredoy
Jan 31 2016 08:26
You need an a element that links to "http://www.freecatphotoapp.com". Your a element should have the anchor text of "cat photos"
Create a new p element around your a element. Your a element should be nested within your new p element.
Your p element should have the text "View more " (with a space after it). Your a element should not have the text "View more".
Make sure each of your p elements has a closing tag. Make sure each of your a elements has a closing tag.
here the task
@huy-tran i do that way ...but my task can't get right mark.
huy-tran
@huy-tran
Jan 31 2016 08:27
make sure you have one space after View More
@Hredoy <p>View More_<a…></a></p>
underscore represents space
Michael Poutre
@M1kep
Jan 31 2016 08:28
Heyo
Flo
@florianjosefreheis
Jan 31 2016 08:28
@kirbyedy cheers!
kirbyedy
@kirbyedy
Jan 31 2016 08:28
thank you will do as well :)
Hungry for that brownie :D
Michael Poutre
@M1kep
Jan 31 2016 08:29
Hrm, they should add "cheers" as a equivalent to thank you, just like they have done thnks
MD. Abdur Rahim
@Hredoy
Jan 31 2016 08:29
thanks ...the task is cleared
Michael Poutre
@M1kep
Jan 31 2016 08:30
@bothelp help
thanks @bothelp
CamperBot
@camperbot
Jan 31 2016 08:30
m1kep sends brownie points to @bothelp :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for bothelp
Michael Poutre
@M1kep
Jan 31 2016 08:30
lmao
kirbyedy
@kirbyedy
Jan 31 2016 08:31
:)
Michael Poutre
@M1kep
Jan 31 2016 08:32
lookup @kirbyedy
there should be a better way to find the commands
kirbyedy
@kirbyedy
Jan 31 2016 08:33
what should lookup do?
Brian
@sludge256
Jan 31 2016 08:33
@fahadh14 your regex has an extra ] at the end
also your regex does not remove spaces
And you should put \ before the - or the - will make your regex think you are inputting a range
kirbyedy
@kirbyedy
Jan 31 2016 08:33
profile?
Brian
@sludge256
Jan 31 2016 08:34
@M1kep
about @M1kep
CamperBot
@camperbot
Jan 31 2016 08:34
:star: 168 | @m1kep | http://www.freecodecamp.com/m1kep
kirbyedy
@kirbyedy
Jan 31 2016 08:34
just a quick question, how can I add the link to my web profile, like you people have here
Brian
@sludge256
Jan 31 2016 08:35
you mean this?
@kirbyedy
Michael Poutre
@M1kep
Jan 31 2016 08:35
about @kirbyedy
CamperBot
@camperbot
Jan 31 2016 08:35
:star: 377 | @kirbyedy | http://www.freecodecamp.com/kirbyedy
Brian
@sludge256
Jan 31 2016 08:35
@kirbyedy or do you mean the website if you hover over the avatar?
kirbyedy
@kirbyedy
Jan 31 2016 08:35
yes, the hovering thing :)
Michael Poutre
@M1kep
Jan 31 2016 08:36
about @sludge256
CamperBot
@camperbot
Jan 31 2016 08:36
:star: 1175 | @sludge256 | http://www.freecodecamp.com/sludge256
huy-tran
@huy-tran
Jan 31 2016 08:36
@kirbyedy I think you should link with your Github account
Michael Poutre
@M1kep
Jan 31 2016 08:36
@huy-tran he already has
Brian
@sludge256
Jan 31 2016 08:36
@kirbyedy it's on your Github settings
huy-tran
@huy-tran
Jan 31 2016 08:36
those details are from Github, remember to update those fields in your Github acc
kirbyedy
@kirbyedy
Jan 31 2016 08:36
ok I will check that
Quan Ta
@Genzy0112
Jan 31 2016 08:37
Hello everyone! Need some help with python.
kirbyedy
@kirbyedy
Jan 31 2016 08:37
is it working ? can someone see it. I dont see it here
maybe I should refresh the browser
Brian
@sludge256
Jan 31 2016 08:38
I see it
kirbyedy
@kirbyedy
Jan 31 2016 08:38
ok, thats good enough, I would refresh, thanks @sludge256
CamperBot
@camperbot
Jan 31 2016 08:38
kirbyedy sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
Michael Poutre
@M1kep
Jan 31 2016 08:38
Anybody here familiar with pyton?
CamperBot
@camperbot
Jan 31 2016 08:38
:star: 1176 | @sludge256 | http://www.freecodecamp.com/sludge256
Quan Ta
@Genzy0112
Jan 31 2016 08:39
@M1kep I'm learning hehe
Michael Poutre
@M1kep
Jan 31 2016 08:39
In one of my classes I wrote a pretty bloated program that just kept passing one array to all the functions
and wanted to see what you guys think lmao
Quan Ta
@Genzy0112
Jan 31 2016 08:39
@M1kep What class are you taking?
Michael Poutre
@M1kep
Jan 31 2016 08:40
@Genzy0112 was just one of the begining classes, CISP 300 I tihnk, Algorithims And Problem Solving
Nick S.
@sherbakov1
Jan 31 2016 08:40
Hey guys! Trying to pass a lesson - Assignment with a Returned Value - but it seems some bug there. Cannot pass it with my solution. Do anyone of you had the same issue with it?
Quan Ta
@Genzy0112
Jan 31 2016 08:41
@M1kep I see
Brian
@sludge256
Jan 31 2016 08:41
:wave: good night and good luck
Nick S.
@sherbakov1
Jan 31 2016 08:41
The code of my solution here FreeCodeCamp/FreeCodeCamp#6568
Michael Poutre
@M1kep
Jan 31 2016 08:41
Nested arrays get really confusing D:
Mohamed Fahadh
@fahadh14
Jan 31 2016 08:44
@sludge256 how do i remove spaces?
Alec
@akerr95
Jan 31 2016 08:44
@sherbakov1 what seems to be the problem ?
Nick S.
@sherbakov1
Jan 31 2016 08:46
@akerr95 cannot pass through - You should assign process to processed
Alec
@akerr95
Jan 31 2016 08:48
@sherbakov1 ok gonna take a look
Mohamed Fahadh
@fahadh14
Jan 31 2016 08:52
hey
someone can me out with palindrome bonfire?
function palindrome(str) {
  // Good luck!
  var a =str.replace(/[~`!@#$%^&*()-_=+[{\|;:'",<.>?/}]]/g,"");
  var b= a.toLowerCase();
  var c = b.split("");
  var d = c.reverse();
  var e = d.join("");
  if (e === b){
  return true;
  }
  else {
    return false;
  }
  }



palindrome("not a palindrome");
Flo
@florianjosefreheis
Jan 31 2016 08:54
Hey guys, jQuery is totally new to me. So does anyone know how to solve following task: Use the jQuery addClass() function to give the classes animated and bounce to your button elements. How do I add this class to a <button></button>?
Nick S.
@sherbakov1
Jan 31 2016 08:57
$(button).addClass(animated bounce);
Seems like that
Check the syntax
@florianjosefreheis
Michael Poutre
@M1kep
Jan 31 2016 09:00
@sherbakov1 remove teh space between the function name and tne '('s
Nick S.
@sherbakov1
Jan 31 2016 09:01
@M1kep OMG! Thank you!
CamperBot
@camperbot
Jan 31 2016 09:01
sherbakov1 sends brownie points to @m1kep :sparkles: :thumbsup: :sparkles:
:star: 187 | @m1kep | http://www.freecodecamp.com/m1kep
Michael Poutre
@M1kep
Jan 31 2016 09:02
lol @sherbakov1 no problemo, thought that was the issue, but I'm not very experienced but I stumbled upon that challenge and tested it!
Flo
@florianjosefreheis
Jan 31 2016 09:02
@sherbakov1 at the begin of the code in <script></script>?
Chad Kreutzer
@ChadKreutzer
Jan 31 2016 09:03
@fahadh14 lemme see what I can do.
budimanfix
@budimanfix
Jan 31 2016 09:04

Hello guys.. Where is my mistake here?? i can run test : ```js
var studlyCapVarCamelCase = 10;
var properCamelCase = "A String";
var titleCaseOverCamelcase = 9000;

// Assignments
studlyCapVarcamelCase = 10;
properCamelCase = "A String";
titleCaseOverCamelCase = 9000;

```

Nick S.
@sherbakov1
Jan 31 2016 09:07

@florianjosefreheis <script>
$(document).ready(function() {
$("button").addClass("animated bounce");
});

</script>

Michael Poutre
@M1kep
Jan 31 2016 09:07
Look at the assignment on "studlycapvarcamelcase" @budimanfix
cannelflow
@cannelflow
Jan 31 2016 09:11
@budimanfix read the instruction on exercise everything is there
@sherbakov1 ?
Flo
@florianjosefreheis
Jan 31 2016 09:11
@sherbakov1 yeah I know, but I have to add classes animated and bounce to each of my six buttons. how do I that?
Nick S.
@sherbakov1
Jan 31 2016 09:13
@florianjosefreheis the same. We are specify value for all buttons tags
Michael Poutre
@M1kep
Jan 31 2016 09:14
Is there a "strictly less than" operator?
Alec
@akerr95
Jan 31 2016 09:16
@M1kep Strictly less than wouldnt make sense or do you mean less than and equal to ?
@M1kep less than or equal to *
Michael Poutre
@M1kep
Jan 31 2016 09:16
@akerr95 I don't think taht exists either without multiple comparisions?
Alec
@akerr95
Jan 31 2016 09:17
@M1kep <1
@M1kep <= *
Michael Poutre
@M1kep
Jan 31 2016 09:17
Well I meant like 1 === "1" --> False
Alec
@akerr95
Jan 31 2016 09:17
oh
Michael Poutre
@M1kep
Jan 31 2016 09:18
but 1 < "2" --> True(I think(
Alec
@akerr95
Jan 31 2016 09:18
well you cant truly compare those in that way considering 2 is not a number
Michael Poutre
@M1kep
Jan 31 2016 09:18
So one would have to do type checks or something wonky
but wont JS just convert it like it does with 1 == "1"
Alec
@akerr95
Jan 31 2016 09:18
you could do 1 < parseInt(variable, 10)
Denaya16
@Denaya16
Jan 31 2016 09:19
i have recently joined.....Your image should have a src attribute that points to the kitten image.
what will that mean
Flo
@florianjosefreheis
Jan 31 2016 09:19
@sherbakov1 do you have the code for this button
<button class="btn btn-default target" id="target1">#target1</button>
Alec
@akerr95
Jan 31 2016 09:21
@Denaya16 the src attribute is used to tell the location of the image https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img
Nick S.
@sherbakov1
Jan 31 2016 09:23
@florianjosefreheis the same as i sent you. As i understand, you need to specify 1 value for all your buttons. All your buttons have <button> tag. no need to write code for each button. You can specify this value for all buttons on your page
@florianjosefreheis try to read description few more times.
Alec
@akerr95
Jan 31 2016 09:26
@M1kep
var num = parseInt("2",10);

if (1 < num){
  alert(1);
}else{
 alert(2) ;
}
Flo
@florianjosefreheis
Jan 31 2016 09:28
@sherbakov1 don't get it :-)
Mohamed Fahadh
@fahadh14
Jan 31 2016 09:35
@ChadKreutzer managed to do it?
Flo
@florianjosefreheis
Jan 31 2016 09:35

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

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

Ivan Georgiev
@ivangeorgiew
Jan 31 2016 09:44
guys are there any cons to writing a webpage in jQuery and not in html?
like for an example if I type:
$(h1).html(<i>blabla</i>)
I can skip <h1></h1> in the .html file
Chad Kreutzer
@ChadKreutzer
Jan 31 2016 09:46
@fahadh14 sorry. I'm at work and I was called away from the terminal.
budimanfix
@budimanfix
Jan 31 2016 09:47

Thank you... where i sould put ++ here : ```js
var myVar = 87;

// Only change code below this line
myVar = myVar = 87 + 1;

```

Alec
@akerr95
Jan 31 2016 09:47
well @ivangeorgiew jquery still have to turn that code into html, it is possible to template
it tho
Ivan Georgiev
@ivangeorgiew
Jan 31 2016 09:48
thanks @akerr95
CamperBot
@camperbot
Jan 31 2016 09:48
ivangeorgiew sends brownie points to @akerr95 :sparkles: :thumbsup: :sparkles:
api offline
Alec
@akerr95
Jan 31 2016 09:54
@ivangeorgiew this is a good example of templating with jquery http://stephenwalther.com/archive/2010/11/30/an-introduction-to-jquery-templates
ej
@emjames
Jan 31 2016 10:37

Hello, hello … I’m sort of stuck, I’m working on “check-for-palindromes” … My code passes all the tests except the last one ( palindrome("0_0 (: /-\ :) 0-0”) ) which I don’t really understand because it’s supposed to test to true but it doesn’t look like a palindrome to me …
Code:

function palindrome(str) {
  // Good luck!
  var result = [];
  // turn to lowercase
  var cleanStr = str.toLowerCase()
  // remove punctuation (spaces, commas, periods)
  .replace(/\s*[,.]?/g, "");
  for(var i = 0; i < cleanStr.length; i++){
    result.push(cleanStr[i]);
  }
  // compare the string to its reverse
  if (result.toString() == result.reverse().toString()){
    return true;
  } else {
    return false;
  }
}

palindrome("0_0 (: /-\ :) 0-0");

I’d appreciate any help!

Chad Kreutzer
@ChadKreutzer
Jan 31 2016 10:41
@emjames I had problems with that one too. I took a different approach with my regex, but my issue seemed to be handling the underscore (_).
try adding it: [,.\_]
actually. coming from the direction you are coming from, it might be easier to replace it with a dash rather than trying to remove it too.
Chad Kreutzer
@ChadKreutzer
Jan 31 2016 10:52
I think this might solve your problem.
var cleanStr = str.toLowerCase()
  // remove punctuation (spaces, commas, periods)
  .replace(/\s*[,.]?/g, "")
  // replace _ with -
  .replace(/\_/g, "-");
ej
@emjames
Jan 31 2016 10:56
@ChadKreutzer thanks, I thought about replacing it but I felt that was kind of cheating because I’m modifying the string. If I reverse the string, even with replacing the dash, I get string: 0_0(:/-:)0_0 string rev: 0_0):-/:(0_0which doesn’t look like a palindrome to me or is there something I’m missing ?
CamperBot
@camperbot
Jan 31 2016 10:56
emjames sends brownie points to @chadkreutzer :sparkles: :thumbsup: :sparkles:
:star: 447 | @chadkreutzer | http://www.freecodecamp.com/chadkreutzer
Chad Kreutzer
@ChadKreutzer
Jan 31 2016 10:58
@emjames oh, that's right. cause of JS thinking the "\" is an escape character.
I forgot about that.
do you know how to use the regexp "\W"?
try using this rexep: [\W\_] instead of \s*[,.]?. that's the one that I used.
ej
@emjames
Jan 31 2016 11:02
@ChadKreutzer Completely missed that one, \W is for non-alphanumerics
Chad Kreutzer
@ChadKreutzer
Jan 31 2016 11:02
exactly!
but for some reason \W doesn't flag underscores. thus including it in the regexp.
ej
@emjames
Jan 31 2016 11:03
@ChadKreutzer Thanks! again … Awesome!
CamperBot
@camperbot
Jan 31 2016 11:03
emjames sends brownie points to @chadkreutzer :sparkles: :thumbsup: :sparkles:
api offline
Chad Kreutzer
@ChadKreutzer
Jan 31 2016 11:04
@emjames here was my solution to the palindrome:
function palindrome(str) {
  return str.replace(/[\W\_]/g, '').toLowerCase() === str.split('').toLowerCase().reverse().join('');
}
ej
@emjames
Jan 31 2016 11:07
@ChadKreutzer Much cleaner , I had tried to do a one liner but I was getting confused
Chad Kreutzer
@ChadKreutzer
Jan 31 2016 11:08
@emjames that was actually a refactoring after I solved it in a messier way. I can't claim that was my first go.
ej
@emjames
Jan 31 2016 11:09
I’ll use it for further reference
Hope you don’t mind :P
Chad Kreutzer
@ChadKreutzer
Jan 31 2016 11:09
not at all. I like going back and trying to improve my answers.
buuug7
@buuug7
Jan 31 2016 11:21
??????????????????
Chad Kreutzer
@ChadKreutzer
Jan 31 2016 11:23
??
buuug7
@buuug7
Jan 31 2016 11:23
blob
where link to github?
how to continue my yesterday course?
blob
Chad Kreutzer
@ChadKreutzer
Jan 31 2016 11:25
@buuug7 I believe the website is still down. you can go to the beta version of the site, but your progress from before won't be visible.
buuug7
@buuug7
Jan 31 2016 11:26
e ?
ok
blob
where i can not found link to git hub
blob
when i click my avata it still show this
blob
buuug7
@buuug7
Jan 31 2016 11:31
when i click [41] it not redirect me to yesterday i finished courses
MD. Abdur Rahim
@Hredoy
Jan 31 2016 11:32
Your h3 element should have the text jQuery Playground
it is my task how can i do that
buuug7
@buuug7
Jan 31 2016 11:33
i must dropdown it at the bottom of browser to click it? it will continue yesterday pregress?
blob
what dit you do ?
like me ?
chaitanya ashtekar
@chaitanyaashtekar
Jan 31 2016 11:35
find fibonacci
CamperBot
@camperbot
Jan 31 2016 11:35
buuug7
@buuug7
Jan 31 2016 11:36
???????????
is someone online?
Mohamed Fahadh
@fahadh14
Jan 31 2016 11:40
@ChadKreutzer can you see whats wrong with mine
function palindrome(str) {
  // Good luck!
  var a =str.replace(/[~`!@#$%^&*()\-_=+[{|;:'",<.>?/}]]/g,"");
  var b= a.toLowerCase();
  var c = b.split("");
  var d = c.reverse();
  var e = d.join("");
  if (e === b){
  return true;
  }
  else {
    return false;
  }
  }



palindrome("not a palindrome");
buuug7
@buuug7
Jan 31 2016 11:41
how old yours age?i am 30
Peter Steele
@PeterHSteele
Jan 31 2016 11:42
Hi guys, having some trouble with 184. You have to return the factorial of the provided integer:
unction factorialize(num) {
var myArray=[];
var help=1
var multiply = function (){
for (var j = 0;j<=myArray.length;j++){
help = help*myArray[j];
}
}
if (num===0){
return 1;
}else{
for (var i=1;i<=num;i++){
myArray.push(i);
}
help = multiply();
}
}
factorialize(5);
buuug7
@buuug7
Jan 31 2016 11:42
unction? is equal "function">?
Peter Steele
@PeterHSteele
Jan 31 2016 11:43
yes sry
Mohamed Fahadh
@fahadh14
Jan 31 2016 11:43
var help = 1;
forgot the semi colon
@PeterHSteele
Peter Steele
@PeterHSteele
Jan 31 2016 11:46
Thanks! It's stil not working though..
buuug7
@buuug7
Jan 31 2016 11:46
'enforce' is mean to what?
Mohamed Fahadh
@fahadh14
Jan 31 2016 11:47
@PeterHSteele first of all, your first for method doesnt work
cause
array.length when actually your array is empty
hope that can fix that
otherwise give me the exercise name
i'll take a look at the instructions
buuug7
@buuug7
Jan 31 2016 11:49
has someone work in google?
Peter Steele
@PeterHSteele
Jan 31 2016 11:49
It's "Factorialize a Number"
Mohamed Fahadh
@fahadh14
Jan 31 2016 11:49
oh i just finish that
haha
do you want my answer? or try to fix yours?
@PeterHSteele
Peter Steele
@PeterHSteele
Jan 31 2016 11:51
I just googled the instructions and am going to try to figure it out on my own, thanks though @fahadh14!
CamperBot
@camperbot
Jan 31 2016 11:51
peterhsteele sends brownie points to @fahadh14 :sparkles: :thumbsup: :sparkles:
:star: 258 | @fahadh14 | http://www.freecodecamp.com/fahadh14
Mohamed Fahadh
@fahadh14
Jan 31 2016 11:54
@PeterHSteele np anything just ping me, i'll be here. Anyways im doing the palindrome exercsie next one. Lets do this!
Rashad Ibrahimov
@iredjee
Jan 31 2016 11:57
Hi there, can someone explain me the following task http://www.freecodecamp.com/challenges/exact-change ? Can't understand it
buuug7
@buuug7
Jan 31 2016 11:57
is future ract ? not angular.js?
which is stead future?
i learn react.js ? and angular.js ?
MD. Abdur Rahim
@Hredoy
Jan 31 2016 11:59
i wanna solution of 102
Shelly M
@smclallen
Jan 31 2016 12:04
I can't seem to pass this css test: "Give elements with the p tag a font-size of 16px. Browser and Text zoom should be at 100%." I've checked my zoom level and I'm using defaults for my font...any ideas?
Flo
@florianjosefreheis
Jan 31 2016 12:20
Hello, can someone explain me following task: Use the jQuery addClass() function to give the classes animated and bounce to your button elements.
Cheers
solution of number 110, task 1
kvnrao123
@kvnrao123
Jan 31 2016 12:23

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

}
</style>

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

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

its asking about this question below please
Give elements with the p tag a font-size of 16px. Browser and Text zoom should be at 100%.
could any one answer me please how the resolve bug it
buuug7
@buuug7
Jan 31 2016 12:25
who will be next facebook?please stand out
kvnrao123
@kvnrao123
Jan 31 2016 12:25
his son
Shelly M
@smclallen
Jan 31 2016 12:32
kvnrao123 we are having exactly the same problem. I've reset my browser zoom to 100% and my browser font is serif 16 px. I don't know anything else to try.... I hope someone has a suggestion!
Although it looks like you may want to put your font-size in the style section instead!
<style>
p {
font-size: 16px;
}
</style>
Chris
@chrisroberts2850
Jan 31 2016 13:01
@kvnrao123 you've put a semi-colon after font-size, replace it with a regular colon
Romina Bai
@rominabai
Jan 31 2016 13:05

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

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

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

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

this is my code
don't know where i went wrong though
cn somebody help??
Chris
@chrisroberts2850
Jan 31 2016 13:07
@rominabai is your zoom at 100%?
Romina Bai
@rominabai
Jan 31 2016 13:07
i dont think i included it
Chris
@chrisroberts2850
Jan 31 2016 13:08
nah nah, your browser zoom
Romina Bai
@rominabai
Jan 31 2016 13:08
but the last step didnt mark it wrong
Chris
@chrisroberts2850
Jan 31 2016 13:08
are you using Google Chrome?
Romina Bai
@rominabai
Jan 31 2016 13:08
yes
a
Subhojit Paul
@subhojit777
Jan 31 2016 13:08
hello. I am stuck in the simon game zipline. I am not able to trigger play + flash at the same time. can anybody help me
Chris
@chrisroberts2850
Jan 31 2016 13:09
Press Control or Command(depends on whether your using Mac or Windows) and + or -
Romina Bai
@rominabai
Jan 31 2016 13:09
how do i zoom it to 100%
it is at 100%
it still won't make me advance
i try to run the test but it wont mark it correct
蒲公英の生活
@fewspider
Jan 31 2016 13:10
command ++ or --?
Arunkumar
@arrunar256
Jan 31 2016 13:10
can anyone tell me what is script element
Markus Kiili
@Masd925
Jan 31 2016 13:14
@arrunar256 Script element is an HTML element that can contain a script or point to external script. <script>...</script>. It can be put inside head or body element.
Arunkumar
@arrunar256
Jan 31 2016 13:15
@Masd925 thankyou i got your point
Chad Kreutzer
@ChadKreutzer
Jan 31 2016 13:22
@fahadh14 it's in your regexp. it won't work right. This is a good website to practice regex: http://regexr.com/. Rather than trying to include every individual character you can think of (some of which needed to be escaped to even work, and you didn't do that,) you can use /[\W\_]/ this automatically looks for all non alphanumeric characters (\W) and underscores (_). The rest of your solution looks like it should work, but it's really cumbersome declaring and passing the variables down the line. Remember from an earlier lesson: you can chain functions together by using the dot notation.
chaitanya ashtekar
@chaitanyaashtekar
Jan 31 2016 13:23
find prime
CamperBot
@camperbot
Jan 31 2016 13:23

find prime

:zero: bonfire sum all primes

Half_Blood_Prince
@SectumPsempra
Jan 31 2016 13:25
Hiii everyone..I joined today .I hear about FCC from my friend
PHPman
@dmitrikonnikov
Jan 31 2016 13:25
how do you create a dead link with a hash i am having trouble
here is my code
Aleksander Gębicki
@Takumar
Jan 31 2016 13:26
@dmitrikonnikov use hash character href="#"
PHPman
@dmitrikonnikov
Jan 31 2016 13:26

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

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

Aleksander Gębicki
@Takumar
Jan 31 2016 13:26
@dmitrikonnikov replace this address: http://www.freecatphotoapp.com with hash
PHPman
@dmitrikonnikov
Jan 31 2016 13:26
oh okay
got it
Aleksander Gębicki
@Takumar
Jan 31 2016 13:27
@dmitrikonnikov href is keyword of HTML you don't replace it with anything.
Arunkumar
@arrunar256
Jan 31 2016 13:27
@dmitrikonnikov use attribute href and then its value as #

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

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

i think it will work
Ivan Litov
@vankatal
Jan 31 2016 13:42
Hello all
蒲公英の生活
@fewspider
Jan 31 2016 13:42
@vankatal hello
Ivan Litov
@vankatal
Jan 31 2016 13:43
What tool should I use to create android apps with html5, css and JavaScript?
蒲公英の生活
@fewspider
Jan 31 2016 13:45
Ivan Litov
@vankatal
Jan 31 2016 13:46
Thanks
Will take a look
蒲公英の生活
@fewspider
Jan 31 2016 13:47
you are welcome
Sergei Volkov
@svolkov
Jan 31 2016 13:47
Hello World!
CamperBot
@camperbot
Jan 31 2016 13:47

welcome to FreeCodeCamp @svolkov!

蒲公英の生活
@fewspider
Jan 31 2016 13:47
@svolkov hello
Ivan Litov
@vankatal
Jan 31 2016 13:48
People told me about Meteor
But idk how does it works
budimanfix
@budimanfix
Jan 31 2016 14:08
@harish436 Thanks you
CamperBot
@camperbot
Jan 31 2016 14:08
budimanfix sends brownie points to @harish436 :sparkles: :thumbsup: :sparkles:
:star: 163 | @harish436 | http://www.freecodecamp.com/harish436
budimanfix
@budimanfix
Jan 31 2016 14:16

Hello..!! what What wrong here?? ```js
var myVar = 87;

// Only change code below this line
myVar = ++; = 86 + 1;

```

Diego Salcovsky
@dsalcovs
Jan 31 2016 14:24
Hey peeps, i'm a little confused about the first JQuery challenge
<script>$(document).ready(function(){});
that at the top of the doc clearly does not work
I've tried a couple variations without luck
never mind....spoke too soon
all set :-)
budimanfix
@budimanfix
Jan 31 2016 14:25
@dsalcovs You need closing tag </script>
Bernardo Tapia
@bernart81
Jan 31 2016 14:26
@budimanfix try this myVar += 86 + 1;
budimanfix
@budimanfix
Jan 31 2016 14:29
@bernart81 Thanks, the instuction is : Change the code to use the ++ operator on myVar.
CamperBot
@camperbot
Jan 31 2016 14:29
budimanfix sends brownie points to @bernart81 :sparkles: :thumbsup: :sparkles:
:star: 32 | @bernart81 | http://www.freecodecamp.com/bernart81
Bernardo Tapia
@bernart81
Jan 31 2016 14:34
@budimanfix maybe myVar=myVar++;
Robert Uivarosi
@URobert
Jan 31 2016 14:37
@budimanfix myVar++; should be all you need. Make sure you are carefully reading the instructions
budimanfix
@budimanfix
Jan 31 2016 14:37
@bernart81 done thanks
CamperBot
@camperbot
Jan 31 2016 14:37
budimanfix sends brownie points to @bernart81 :sparkles: :thumbsup: :sparkles:
:warning: budimanfix already gave bernart81 points
budimanfix
@budimanfix
Jan 31 2016 14:38
@URobert Thanks
CamperBot
@camperbot
Jan 31 2016 14:38
budimanfix sends brownie points to @urobert :sparkles: :thumbsup: :sparkles:
:star: 537 | @urobert | http://www.freecodecamp.com/urobert
Robert Uivarosi
@URobert
Jan 31 2016 14:38
@budimanfix yw
leanminmachine
@leanminmachine
Jan 31 2016 14:41
hey guys i need help with JS bonfire - basic scripting
CamperBot
@camperbot
Jan 31 2016 14:41
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
leanminmachine
@leanminmachine
Jan 31 2016 14:41
bonfire name return the largest numbers in array
CamperBot
@camperbot
Jan 31 2016 14:41
Sorry, can't find a bonfire called name return the largest numbers in array . [ Check the map? ]
leanminmachine
@leanminmachine
Jan 31 2016 14:42
bonfire return the largest numbers in array
CamperBot
@camperbot
Jan 31 2016 14:42
Sorry, can't find a bonfire called return the largest numbers in array. [ Check the map? ]
leanminmachine
@leanminmachine
Jan 31 2016 14:42
bonfire return largest numbers in arrays
CamperBot
@camperbot
Jan 31 2016 14:42
Sorry, can't find a bonfire called return largest numbers in arrays . [ Check the map? ]
leanminmachine
@leanminmachine
Jan 31 2016 14:42
UGHH
Moose89
@Moose89
Jan 31 2016 14:42
Hello!
leanminmachine
@leanminmachine
Jan 31 2016 14:42
bonfire Return Largest Numbers in Arrays
CamperBot
@camperbot
Jan 31 2016 14:42

:fire:Bonfire: Return Largest Numbers in Arrays :link:

function largestOfFour(arr) {
  // You can do this!
  return arr;
}

largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);

Return an array consisting of the largest number from each provided sub-array. For simplicity, the provided array will contain exactly 4 sub-arrays.

more info:  bf details | bf links | hint

leanminmachine
@leanminmachine
Jan 31 2016 14:42
there we go.

here's my code :
``` function largestOfFour(arr) {
// You can do this!
// I HATE LOOPS BUT I MUST EMBRACE THEM

//BIG LOOPITY LOOP
for (var i = 0; i < arr.length; i++) {

//SMALL LOOP. arr[i] is to access my subarray and its length correspondingly.
for (var j = 0; j< arr[i].length; j++) {

   var largest = 0;

    //now my if statement. [i][j] is to access my subarray's element
    if (largest < arr[i][j]) {
    // giving my var largest a new value aka subarray's element which is largest now
    largest = arr[i][j];
     }  
 } 

}
return arr;
}

largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);

ugh and formatting is screwed up sigh
Moose89
@Moose89
Jan 31 2016 14:43
I have set this class to a div but it won't work. Someone knows what's wrong?
.gray-background {
background-color: gray;
}
leanminmachine
@leanminmachine
Jan 31 2016 14:44
@moose89 what's your html like
<div class = "gray-background"> content here blah blah </div>
Moose89
@Moose89
Jan 31 2016 14:45
<div class="gray-background">
This is the Code
And it's closed, also..
leanminmachine
@leanminmachine
Jan 31 2016 14:47
lol. works for me on codepen
Moose89
@Moose89
Jan 31 2016 14:49
:( can i show you the entire Code? Maybe you see sth.
leanminmachine
@leanminmachine
Jan 31 2016 14:49
yeap sure thing
put it on codepen or something!
Moose89
@Moose89
Jan 31 2016 14:50
<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>
Mind The silly text :)
Arunkumar
@arrunar256
Jan 31 2016 14:51
@budimanfix just use myVar++;
leanminmachine
@leanminmachine
Jan 31 2016 14:52
Diego Salcovsky
@dsalcovs
Jan 31 2016 14:52
Hey coders!
when we enter the following
$(".target:nth-child(2)").addClass("animated bounce");
to make the second element in our wells bounce
Moose89
@Moose89
Jan 31 2016 14:53
I know..well, i'll take another look at IT. Thanks anyway! :De
Diego Salcovsky
@dsalcovs
Jan 31 2016 14:53
how come we never reference the class well in our code?
Arunkumar
@arrunar256
Jan 31 2016 15:23
@dsalcovs since target is the class and we are referncing 2nd child so no need of refrencing well class
Diego Salcovsky
@dsalcovs
Jan 31 2016 15:24
@arrunar256 I guess this is still not very clear to me...
@arrunar256 What if our document had several different "well"-like classes...each with its own different 2nd childs?
Arunkumar
@arrunar256
Jan 31 2016 15:28
@dsalcovs we used only target class in our code if we reference well means the right well fully will bounce
aPainter
@aaPainter
Jan 31 2016 15:29
how do i change html text to italics using jQuery?
Diego Salcovsky
@dsalcovs
Jan 31 2016 15:30
@arrunar256 i understand why we don't just use $(".well"), what i do not understand is how the .target:nth-child knows to default to the second child of the wells
@aaPainter $("").html(<i>TEXT</i>);
aPainter
@aaPainter
Jan 31 2016 15:31
@dsalcovs cheers
Diego Salcovsky
@dsalcovs
Jan 31 2016 15:31
inside the empty "" you need to reference the element
Arunkumar
@arrunar256
Jan 31 2016 15:38
we are denoting like child(2) that means second child
Alexander Køpke
@alexanderkopke
Jan 31 2016 15:46
@dsalcovs what challenge is it?
Larry Launstein Jr
@dustylover
Jan 31 2016 15:53

I'm stuck on the Storing Values with the Equal Operator. Here's my code:
// Setup
var a;
var b = 2;

// Only change code below this line
var a = 7;
var b = 7;

daniellagomes
@daniellagomes
Jan 31 2016 15:53
u cant use var b twice
var b = 2;
then b = 7;
Tim P
@xTimpi
Jan 31 2016 15:54
hi, I’m working on the url shortener zipline and I can’t pass an url as a parameter for my api, it seems like it has to do with the // in the url because without them everything works just fine, can anyone tell me how to pass a entire URL as a node js route parameter?
aaronK
@aaronk73
Jan 31 2016 15:55
hello. can any one help me with this code
var myStr= "I am a \"double quoted\" string inside \"double Quotes\."; // Change this line
Arunkumar
@arrunar256
Jan 31 2016 15:56
@daniellagomes whats the task bro
aaronK
@aaronk73
Jan 31 2016 15:57
Escaping Literal Quotes in Strings
daniellagomes
@daniellagomes
Jan 31 2016 15:57
@arrunar256 no probz
Diego Salcovsky
@dsalcovs
Jan 31 2016 15:58
@alexanderkopke can't remember now one of the later JQuery ones
i got it done correctly...i would just like to understand a little better how javascript breaks down the code
Mohanad Hafiz Suliman
@moh7afiz90
Jan 31 2016 16:01
Someone needs help here
I didnt get this
Your h2 element should have the class red-text.
Your stylesheet should declare a red-text class and have its color set to red.
can someone help me pls
!!
Dave Lee
@march-dave
Jan 31 2016 16:02
Does anybody have issue with "You need an a element that links to http://freecatphotoapp.com"?
First of all I don't get any image and even I put the anchor tag. It doesn't pass my code as well.
Arunkumar
@arrunar256
Jan 31 2016 16:05
@moh7afiz90 declare class like .red-text{color:red;} and add class in your h2 element that is <h2 class="red-text">*</h2>
Toya82
@Toya82
Jan 31 2016 16:06
I know I may get laughed at, but I'm just starting and I am stuck on the Use CSS Selectors to Style Elements part.. It says to change to blue, so I added the style element: <style>
h2 {color: blue;}
</style>
But it's still saying it's wrong. Help please 😊
Arunkumar
@arrunar256
Jan 31 2016 16:07
@Toya82 can u send full task
Toya82
@Toya82
Jan 31 2016 16:08

@arrunar256
Use CSS Selectors to Style Elements

With CSS, there are hundreds of CSS propertiesthat you can use to change the way an element looks on your page.

When you entered <h2 style="color: red">CatPhotoApp</h2>, you were giving that individual h2 element an inline style.

That's one way to add style to an element, but a better way is by using CSS, which stands forCascading Style Sheets.

At the top of your code, create a style element like this:

<style>
</style>

Inside that style element, you can create a CSS selector for all h2 elements. For example, if you wanted all h2 elements to be red, your style element would look like this:

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

Note that it's important to have both opening and closing curly braces ({ and }) around each element's style. You also need to make sure your element's style is between the opening and closing style tags. Finally, be sure to add the semicolon to the end of each of your element's styles.

Delete your h2 element's style attribute and instead create a CSS style element. Add the necessary CSS to turn all h2 elements blue.

aaronK
@aaronk73
Jan 31 2016 16:10
var myStr= "I am a \"double quoted\" string inside \"double Quotes."; // Change this line
Arunkumar
@arrunar256
Jan 31 2016 16:11
@aaronk73 correct code bro var myStr; // Change this line
myStr="I am a \"double quoted\" string inside \"double quotes\"";
cannelflow
@cannelflow
Jan 31 2016 16:12
@aaronk73 yu can try by reading instruction carefully everythingis their
@Toya82 are you in trouble ?
Toya82
@Toya82
Jan 31 2016 16:14
Yes, just really confused.
cannelflow
@cannelflow
Jan 31 2016 16:15
@Toya82 which exercise ? can you paste your code
aaronK
@aaronk73
Jan 31 2016 16:15
@arrunar256 thank you
CamperBot
@camperbot
Jan 31 2016 16:15
aaronk73 sends brownie points to @arrunar256 :sparkles: :thumbsup: :sparkles:
:star: 139 | @arrunar256 | http://www.freecodecamp.com/arrunar256
Larry Launstein Jr
@dustylover
Jan 31 2016 16:16

@daniellagomes I've been trying to figure out which variable b needs to be removed. I've tried removing it on either the setup or the only change code below this line. Sorry to keep bothering you.

// Setup
var a;
var b = 2;

// Only change code below this line
var a = 7;
var b = 7;

Toya82
@Toya82
Jan 31 2016 16:16

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

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

aaronK
@aaronk73
Jan 31 2016 16:16
@cannelflow true. i should read more careful
cannelflow
@cannelflow
Jan 31 2016 16:17
@aaronk73 :+1:
@dustylover which exercise ?
@Toya82 which exercise ?
wiki format
CamperBot
@camperbot
Jan 31 2016 16:17

:point_right: code formatting [wiki]

Inline code

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

Code Block

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

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

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

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

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

Toya82
@Toya82
Jan 31 2016 16:17
@cannelflow
daniellagomes
@daniellagomes
Jan 31 2016 16:18
@dustylover u cant declare the same variable twice so the var on the 2nd b needs to be removed
Toya82
@Toya82
Jan 31 2016 16:18
@cannelflow Use CSS Selectors to Style Elements
cannelflow
@cannelflow
Jan 31 2016 16:20
@Toya82 you don't have h2 tag in html
exercise had asked to Delete your h2 element's style attribute @cannelflow not h2 tag
that is <h2 style=""></h2> here style attr is style="" @Toya82
Larry Launstein Jr
@dustylover
Jan 31 2016 16:24
@daniellagomes This is how it comes up when the Storing Values with Equal Values test is run:
a - 7, b - 7
Sorry for not mentioning the test above.
Alexander Køpke
@alexanderkopke
Jan 31 2016 16:30
@dsalcovs I have searched a bit for a good description of nth-child: Selects all elements that are the nth-child of their parent. so (".target:nth-child(2)") means .target is the child that is selected. This is how it also select its parent .well because you are specifying the child element. You can also specify the parent if you like in case you need it like this (".well .target:nth-child(2)") This would only select .target children of the .well parent. While (".target:nth-child(2)") doesn't care what parent it is as long as it has .target children.
budimanfix
@budimanfix
Jan 31 2016 16:30

Why my this not work guys..?? : ```js
var a = 3;
var b = 17;
var c = 12;

// Only modify code below this line

a += a + 12;
b += 9 + b;
c += c + 7;

```

cannelflow
@cannelflow
Jan 31 2016 16:31
@Toya82 ?
@budimanfix which exercise ?
Fejokay
@Fejokay
Jan 31 2016 16:31

this does not pass after setting the font size to 16px<style>
.red-text {
color: red; font-size: 16px;}
</style>

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

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

SHARAD SHINDE
@shindesharad71
Jan 31 2016 16:32
Hello World!
CamperBot
@camperbot
Jan 31 2016 16:32

welcome to FreeCodeCamp @shindesharad71!

Diego Salcovsky
@dsalcovs
Jan 31 2016 16:32
@alexanderkopke Thanks for taking the time to do the research! That's very kind of you. I guess that makes sense. So if there were say other 2nd child of parents other than well in that problem they would also be affected
CamperBot
@camperbot
Jan 31 2016 16:32
dsalcovs sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
cannelflow
@cannelflow
Jan 31 2016 16:32
@Fejokay which exercise?
CamperBot
@camperbot
Jan 31 2016 16:32
:star: 454 | @alexanderkopke | http://www.freecodecamp.com/alexanderkopke
Toya82
@Toya82
Jan 31 2016 16:32
@cannelflow 😕 extra lost now.. so I was completely wrong with: <style> h2 {color: blue;} </style>
The example
cannelflow
@cannelflow
Jan 31 2016 16:33
@Toya82 you solved it ?
SHARAD SHINDE
@shindesharad71
Jan 31 2016 16:33

Hello World

CamperBot
@camperbot
Jan 31 2016 16:33

welcome to FreeCodeCamp @shindesharad71!

Fejokay
@Fejokay
Jan 31 2016 16:33
@cannelflow Change the Font Size of an Element
Alexander Køpke
@alexanderkopke
Jan 31 2016 16:33
@dsalcovs in the challenge there are two .well classes that both have .target children. So in both wells the second .target child does a bounce.
Toya82
@Toya82
Jan 31 2016 16:34
no, not at all. . Confused still..
Diego Salcovsky
@dsalcovs
Jan 31 2016 16:34
@alexanderkopke Perfect. Its clear now. Thanks so much man!
CamperBot
@camperbot
Jan 31 2016 16:34
dsalcovs sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:warning: dsalcovs already gave alexanderkopke points
Alexander Køpke
@alexanderkopke
Jan 31 2016 16:34
@dsalcovs np :)
Diego Salcovsky
@dsalcovs
Jan 31 2016 16:35
lol saying thanks with your name in it automatically gives you brownie points?
cannelflow
@cannelflow
Jan 31 2016 16:35
@Fejokay create an entry for p elements and set the font-size to 16 pixels (16px).
Diego Salcovsky
@dsalcovs
Jan 31 2016 16:35
@Fejokay Thanks
CamperBot
@camperbot
Jan 31 2016 16:35
dsalcovs sends brownie points to @fejokay :sparkles: :thumbsup: :sparkles:
cannelflow
@cannelflow
Jan 31 2016 16:35
@Fejokay try reading slowly Inside the same <style> tag that contains your red-text class, create an entry for p elements and set the font-size to 16 pixels (16px).
CamperBot
@camperbot
Jan 31 2016 16:35
:star: 12 | @fejokay | http://www.freecodecamp.com/fejokay
Alexander Køpke
@alexanderkopke
Jan 31 2016 16:35
@dsalcovs yes it does. Thanks
CamperBot
@camperbot
Jan 31 2016 16:35
alexanderkopke sends brownie points to @dsalcovs :sparkles: :thumbsup: :sparkles:
:star: 167 | @dsalcovs | http://www.freecodecamp.com/dsalcovs
Diego Salcovsky
@dsalcovs
Jan 31 2016 16:35
that hilarioues
Fejokay
@Fejokay
Jan 31 2016 16:37
@cannelflow 'Browser and Text zoom should be at 100%' is the issue.
Stephen Zukowski
@zukethenuke
Jan 31 2016 16:37
So, I'm on the Return Largest Numbers in Arrays waypoint. It's giving me the error 'arr is not a function' and I don't understand why. It's a for loop nested in a for loop.
function largestOfFour(arr) {
  // You can do this!
  var answerArr = [];
  for (i=0; i<arr.length; i++){

    for (ii=0; ii<arr(i).length; ii++){
      if (arr(i).ii > arr(i).ii+1){
        answerArr[i] = arr(i).ii;
      }

    }
  }
  return answerArr;
}

largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);
cannelflow
@cannelflow
Jan 31 2016 16:38
@Fejokay you don't have correct code
create a separate p tag in style and give it attribute
runntumtuber
@runntumtuber
Jan 31 2016 16:38
@Fejokay you have the code, but there
is nothing telling it to apply the 16px font to <p>
Harvey S
@harveysanders
Jan 31 2016 16:39
@zukethenuke you need [] instead of ()
SHARAD SHINDE
@shindesharad71
Jan 31 2016 16:40
@Toya82 may I help you? what is your question?
Harvey S
@harveysanders
Jan 31 2016 16:40
@zukethenuke ii<arr(i).length >> ii<arr[i].length
as well as the rest
Fejokay
@Fejokay
Jan 31 2016 16:40
@cannelflow pls what is the code/
runntumtuber
@runntumtuber
Jan 31 2016 16:42
@Fejokay Separate your .red-text class from the font-size property
cannelflow
@cannelflow
Jan 31 2016 16:42
<style>
  .red-text {
    color: red;    
  }
  p {
    font-size: 16px;
  }

</style>
@Fejokay
Harvey S
@harveysanders
Jan 31 2016 16:43
@zukethenuke becuase remember arr is an array, not a function. so you’ll need to use bracket notation to get elements from that array
Fejokay
@Fejokay
Jan 31 2016 16:43
@runntumtuber 16px is in the same red-text class.
Stephen Zukowski
@zukethenuke
Jan 31 2016 16:44
Thanks @hardannyhw , I don't understand the difference between [] and ()'s yet
CamperBot
@camperbot
Jan 31 2016 16:44
zukethenuke sends brownie points to @hardannyhw :sparkles: :thumbsup: :sparkles:
:star: 202 | @hardannyhw | http://www.freecodecamp.com/hardannyhw
Harvey S
@harveysanders
Jan 31 2016 16:44
@zukethenuke the parenthesis makes the interpreter think you are trying to call arr as if it were a function, i.e. console.log()
Stephen Zukowski
@zukethenuke
Jan 31 2016 16:44
got it
Karl-Edward F. P. Jean-Mehu
@Karl-EdwardFPJeanMehu
Jan 31 2016 16:45
Hello everyone?
runntumtuber
@runntumtuber
Jan 31 2016 16:45
hello @Karl-EdwardFPJeanMehu
Karl-Edward F. P. Jean-Mehu
@Karl-EdwardFPJeanMehu
Jan 31 2016 16:46
Anyone know how to get the actual content width of a container minus the empty space in js? Hi @runntumtuber
Jago Kosolosky
@Jago-Kosolosky
Jan 31 2016 16:46
Falsy Bouncer: This works but I noticed in Github the final code is completely different and doesn't make sense to me. Can someone help talk me through this. Here is the link to Github (https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/Bonfire-Falsy-Bouncer) en below is my code.
function bouncer(arr) {
  // Don't show a false ID to this bouncer.
  function check(value) {
    var index = arr.indexOf(value);

    if(value !== false || value !==null || value !== 0 || value !== "" || value !== undefined || isNaN(value)){
    return value;
       }else{
         arr.splice(index, 1);
       }
  }


  var finalarr = arr.filter(check);
  return finalarr;
}

bouncer([false, null, 0, NaN, undefined, ""]);
CamperBot
@camperbot
Jan 31 2016 16:46
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
aaronK
@aaronk73
Jan 31 2016 16:47
var myStr =  'href="http:www.example.com" target="_blank">Link';
i do not see my error
cannelflow
@cannelflow
Jan 31 2016 16:49
@aaronk73 which exercise ?
aaronK
@aaronk73
Jan 31 2016 16:49
Quoting Strings with Single Quotes
David Weedmark
@DavidWeedmark
Jan 31 2016 16:50
@aaronk73 < >
runntumtuber
@runntumtuber
Jan 31 2016 16:50
you're missing the tags
@aaronk73 <a...........> </a>
Alexander Køpke
@alexanderkopke
Jan 31 2016 16:52
@aaronk73 also // after http:
cannelflow
@cannelflow
Jan 31 2016 16:52
@aaronk73 you need a tag
Markus Kiili
@Masd925
Jan 31 2016 16:53
@Jago-Kosolosky It is better if you don't look at that code at all.
aaronK
@aaronk73
Jan 31 2016 16:53
var myStr = <a'href="http//:www.example.com" target="_blank">Link'></a>;
var myStr =<a'href="http//:www.example.com" target="_blank">Link'></a>;
Jawbh
@CaBra503
Jan 31 2016 16:54
lol What is the point of waypoints like "Logical order in If else Statements"
cannelflow
@cannelflow
Jan 31 2016 16:54
@aaronk73 '<a></a>'
David Weedmark
@DavidWeedmark
Jan 31 2016 16:54
@aaronk73 closer var myStr = '<a href="http://www.example.com" target="_blank">Link</a>';
Jawbh
@CaBra503
Jan 31 2016 16:54
I do not feel as if I learned Anything from that other than to make sure to have the correct order of statements?
Jago Kosolosky
@Jago-Kosolosky
Jan 31 2016 16:54
@Masd925 Only do so after finishing an exercise in order to see if my code is somewhat clear
Fejokay
@Fejokay
Jan 31 2016 16:55
@cannelflow not yet ok.
Markus Kiili
@Masd925
Jan 31 2016 16:55
@Jago-Kosolosky That solution is terrible.
budimanfix
@budimanfix
Jan 31 2016 16:55
Any one can give solution for this task : freecodecamp.com/challenges/assignment-with-plus-equals#?solution=var
runntumtuber
@runntumtuber
Jan 31 2016 16:55
@budimanfix What have you got so far?
budimanfix
@budimanfix
Jan 31 2016 16:56
var a = 3;
var b = 17;
var c = 12;

// Only modify code below this line

a +=a + 12;
b +=9 + b;
c += c + 7;
Jago Kosolosky
@Jago-Kosolosky
Jan 31 2016 16:56
@Masd925 Hence my question...
aaronK
@aaronk73
Jan 31 2016 16:57
i had it , i needed to reset the page
Markus Kiili
@Masd925
Jan 31 2016 16:57
@Jago-Kosolosky You can solve it in several short ways like this:
function bouncer(arr) { 
  return arr.filter(function(val){return val;});
}
aaronK
@aaronk73
Jan 31 2016 16:57
@cannelflow @DavidWeedmark @alexanderkopke @runntumtuber thank you all
CamperBot
@camperbot
Jan 31 2016 16:57
aaronk73 sends brownie points to @cannelflow and @davidweedmark and @alexanderkopke and @runntumtuber :sparkles: :thumbsup: :sparkles:
runntumtuber
@runntumtuber
Jan 31 2016 16:57
@budimanfix should be the variable = the variable += the number....
a = a += 12
CamperBot
@camperbot
Jan 31 2016 16:57
:star: 194 | @runntumtuber | http://www.freecodecamp.com/runntumtuber
:star: 671 | @cannelflow | http://www.freecodecamp.com/cannelflow
:star: 455 | @alexanderkopke | http://www.freecodecamp.com/alexanderkopke
:star: 271 | @davidweedmark | http://www.freecodecamp.com/davidweedmark
Premraj Sahu
@fymous
Jan 31 2016 16:58
@budimanfix a += 12;
b += 9;
c += 7;
Jago Kosolosky
@Jago-Kosolosky
Jan 31 2016 17:00
@Masd925 Yeah I get that now thanks to other people helping out, just needed some more info on falsy
CamperBot
@camperbot
Jan 31 2016 17:00
jago-kosolosky sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
:star: 878 | @masd925 | http://www.freecodecamp.com/masd925
Jago Kosolosky
@Jago-Kosolosky
Jan 31 2016 17:00
Damn you @camperbot ;)
budimanfix
@budimanfix
Jan 31 2016 17:02
@fymous Thanks
CamperBot
@camperbot
Jan 31 2016 17:02
budimanfix sends brownie points to @fymous :sparkles: :thumbsup: :sparkles:
:star: 34 | @fymous | http://www.freecodecamp.com/fymous
budimanfix
@budimanfix
Jan 31 2016 17:02
@runntumtuber Thanks
CamperBot
@camperbot
Jan 31 2016 17:02
budimanfix sends brownie points to @runntumtuber :sparkles: :thumbsup: :sparkles:
:star: 195 | @runntumtuber | http://www.freecodecamp.com/runntumtuber
Jason Ulaner
@julaner
Jan 31 2016 17:04
Hi I’m curious if anyone here has considered Hack Reactor Remote Beta vs Free Code Camp? I’m torn whether HR is worth the investment
David Weedmark
@DavidWeedmark
Jan 31 2016 17:06
@julaner 17K for an online course!?!?
Jason Ulaner
@julaner
Jan 31 2016 17:07
@DavidWeedmark I know, crazy right?! I was all set to do hackreactor online and was preping for it until I found this site
ive worked through 110 lessons so far and it seem pretty easy
on fcc
David Weedmark
@DavidWeedmark
Jan 31 2016 17:08
@julaner I don't know about that one, but I've tried a lot of online courses. nothing has compared to FCC. How many challenges have you done so far?
Stephen Zukowski
@zukethenuke
Jan 31 2016 17:09
What about FreeCodeCamp vs an onsite class such as devBootCamp?
Jason Ulaner
@julaner
Jan 31 2016 17:09
no challenges so far
@DavidWeedmark im on the jquery portion now
@DavidWeedmark how far are you into FCC
David Weedmark
@DavidWeedmark
Jan 31 2016 17:09
the first are quite easy if you know a bit of html-css-js... but wait til you get to the next sections. I've been working two days on my calculator
Jason Ulaner
@julaner
Jan 31 2016 17:10
@zukethenuke I dont know much about devBootcamp but being in a in person bootcamp can lead to rapid learning if you can keep up with the pace from what Ive read
David Weedmark
@DavidWeedmark
Jan 31 2016 17:10
take a look... I've only been here a week http://www.freecodecamp.com/davidweedmark
Jason Ulaner
@julaner
Jan 31 2016 17:10
@DavidWeedmark ill take a look now
aaronK
@aaronk73
Jan 31 2016 17:10
var myStr; // Change this line

myStr='<a /backslash /tab /tab /carriage-return new-line </a>;'
Stephen Zukowski
@zukethenuke
Jan 31 2016 17:11
@julaner, it's gets more difficult. I'm on the basic algorithm scripting section and have slowed my pace considerably.
aaronK
@aaronk73
Jan 31 2016 17:11
Escape Sequences in Strings
Premraj Sahu
@fymous
Jan 31 2016 17:11

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

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

Your <style> should have a pink-text CSS class with its color set to pink.
how to solveit
Jago Kosolosky
@Jago-Kosolosky
Jan 31 2016 17:11
@julaner Does get a lot harder, wouldn't spend that kind of money on something that still depends on your own effort and consistency, there's a ton of free resources and some that are very affordable. I'd only pay a few k for on site classes. But no experience paying for HR online, I assume they treat you well and really try to help you get a job etc. but for that money that seems only normal.
David Weedmark
@DavidWeedmark
Jan 31 2016 17:12
looks like you're missing a ; on your color:pink there @fymous
Stephen Zukowski
@zukethenuke
Jan 31 2016 17:12
@julaner, I hope so. I live in Chicago near DevBootCamp. My plan is spend a few months on FCC to get the basics down , and then goto DevBootCamp
Premraj Sahu
@fymous
Jan 31 2016 17:13
@DavidWeedmark -thanks..silly things;big impacts :+1:
CamperBot
@camperbot
Jan 31 2016 17:13
fymous sends brownie points to @davidweedmark :sparkles: :thumbsup: :sparkles:
:star: 272 | @davidweedmark | http://www.freecodecamp.com/davidweedmark
David Weedmark
@DavidWeedmark
Jan 31 2016 17:13
np
Jason Ulaner
@julaner
Jan 31 2016 17:14
@Jago-Kosolosky Thanks for the input! For 17k it would have to be a huge huge difference from FCC for me to consider it to be worth it.
CamperBot
@camperbot
Jan 31 2016 17:14
julaner sends brownie points to @jago-kosolosky :sparkles: :thumbsup: :sparkles:
:star: 267 | @jago-kosolosky | http://www.freecodecamp.com/jago-kosolosky
Jason Ulaner
@julaner
Jan 31 2016 17:14
@DavidWeedmark thanks
CamperBot
@camperbot
Jan 31 2016 17:14
julaner sends brownie points to @davidweedmark :sparkles: :thumbsup: :sparkles:
:star: 273 | @davidweedmark | http://www.freecodecamp.com/davidweedmark
Jago Kosolosky
@Jago-Kosolosky
Jan 31 2016 17:16
@julaner Agreed, I assume a promise for a programming job might do the trick but still, so much money...
David Weedmark
@DavidWeedmark
Jan 31 2016 17:17
@julaner have you looked at coursera and edx? they've got some good certification lines now from Harvard, MIT etc
I'd still give this place a week first though
Jason Ulaner
@julaner
Jan 31 2016 17:17
@Jago-Kosolosky how many people do you think are getting jobs from FCC, I know they dont track, but I wonder what the outcomes are. I’m coming from the medical field so have no CS degree or background other than code academy and FCC
aaronK
@aaronk73
Jan 31 2016 17:18
what way point
Jason Ulaner
@julaner
Jan 31 2016 17:18
@DavidWeedmark coursera seems impressive, have not checked out edx yet
aaronK
@aaronk73
Jan 31 2016 17:18
var myStr; // Change this line

myStr='<a /backslash /tab /tab /carriage-return new-line </a>;'
i must be missing something small
NoBro93
@NoBro93
Jan 31 2016 17:19
your semicolon is inside the quotes
Jago Kosolosky
@Jago-Kosolosky
Jan 31 2016 17:19
@julaner If a job is what you want, I think only online commitment will never cut it really. It can be a start but not more. Go work part-time, take cheap cs intro classes and do online classes and try to get an internship somewhere after a while.
David Weedmark
@DavidWeedmark
Jan 31 2016 17:20
@julaner I've worked in IT for years, as a hiring manager for a lot of that time. certifications help get an interview but if you're good, can show why you're good, and can learn, you shouldn't have a problem finding a job.
Jason Ulaner
@julaner
Jan 31 2016 17:20
@Jago-Kosolosky thank you
CamperBot
@camperbot
Jan 31 2016 17:20
julaner sends brownie points to @jago-kosolosky :sparkles: :thumbsup: :sparkles:
:warning: julaner already gave jago-kosolosky points
aaronK
@aaronk73
Jan 31 2016 17:20
@NoBro93 it is inside the quote
David Weedmark
@DavidWeedmark
Jan 31 2016 17:20
the caveat there is "good". a lot of people think they're good because they have a paper, but can't adapt to a real working environment in problem solving etc.
Shagun Chauhan
@themaverick96
Jan 31 2016 17:21
system.out.print("Hello World!");
Jason Ulaner
@julaner
Jan 31 2016 17:22
@DavidWeedmark I really appreciate that input and it certainly helps that you are in the field. This field seems a lot less about the cert/degree and more about proving your worth
Shagun Chauhan
@themaverick96
Jan 31 2016 17:22
Hi! I'm new here.
Jason Ulaner
@julaner
Jan 31 2016 17:22
medicine is all about how many certs or degrees you have behind your name
totally opposite
NoBro93
@NoBro93
Jan 31 2016 17:22
@aaronk73 what are you trying to do>
David Weedmark
@DavidWeedmark
Jan 31 2016 17:22
was just going to ask @themaverick96 is that code? or are you new? Welcome aboard!
aaronK
@aaronk73
Jan 31 2016 17:23
Escape Sequences in Strings
gaschd
@gaschd
Jan 31 2016 17:23
var _fibs = [1,1];

function sumFibs(num) {
  getFibs(num);
  var res = 0;
    for(var i = 0; i < _fibs.length;i++){
      if(_fibs[i]%2 === 1){
        res += _fibs[i];
      }
    }

  if(num === 1){
    return 1;}
  else{
  return res;
  }
}

function getFibs(num) {
  var n = 2;

  while((_fibs[n-2] + _fibs[n-1]) <= num){
      _fibs.push(_fibs[n-2] + _fibs[n-1]);
      n++;
  }
}

sumFibs(1);
This code works for the given examples but i don't pass the bonfire. Any ideas?
David Weedmark
@DavidWeedmark
Jan 31 2016 17:23
@julaner the other nice thing about this place seems to be that you'll work on real problems for non-profits. that's going to be more important on a resume than any certification, imo
Abhishek Balam
@abhishekbalam
Jan 31 2016 17:23
Hello World, feells awesome to be here
CamperBot
@camperbot
Jan 31 2016 17:23

welcome to FreeCodeCamp @abhishekbalam!

David Weedmark
@DavidWeedmark
Jan 31 2016 17:23
back to work for me! cya
NoBro93
@NoBro93
Jan 31 2016 17:24
@aaronk73 escape sequences are only one character long, you should look back at the samples
Sherlock Holmes
@SherlcokHolmes
Jan 31 2016 17:25

Inside the same <style> tag that contains your red-text class, create an entry for p elements and set the font-size to 16 pixels (16px). <style>
.red-text {
color: red;
}
</style>

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

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

<p2> Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p2>

what should i do
i am dump
runntumtuber
@runntumtuber
Jan 31 2016 17:26
You are not dumb! you made it this far.. @SherlcokHolmes
Look at the left for the example... it shows
h1 {
font-size: 30px;
}
That's the code for changing the font size of the h1 tag to 30px
You're being asked to change the font size of the p tags to 16px
Sherlock Holmes
@SherlcokHolmes
Jan 31 2016 17:27
i know but where should i write it
runntumtuber
@runntumtuber
Jan 31 2016 17:28
Anywhere in the style tags
Sherlock Holmes
@SherlcokHolmes
Jan 31 2016 17:28
within the .red-text class?
runntumtuber
@runntumtuber
Jan 31 2016 17:28
No. that's it's own class
Right after that class.
aaronK
@aaronk73
Jan 31 2016 17:28
@NoBro93 ok will do
Fejokay
@Fejokay
Jan 31 2016 17:33
@SherlcokHolmes did you get it. i'm having same issue.
Pradhvan Bisht
@Pradhvan
Jan 31 2016 17:33
hey anybody around delhi here ?
Vladislav Shemavnov
@VladShima14
Jan 31 2016 17:36
why doesn't work?
Nest the existing img element within an a element.
Your a element should be a dead link with a href attribute set to #.
Make sure each of your a elements has a closing tag.
<a href="#"><img src="http://bit.ly/fcc-running-cats"/></a>
Sherlock Holmes
@SherlcokHolmes
Jan 31 2016 17:36
finally passed it thanks @runntumtuber
CamperBot
@camperbot
Jan 31 2016 17:36
sherlcokholmes sends brownie points to @runntumtuber :sparkles: :thumbsup: :sparkles: