These are chat archives for FreeCodeCamp/Help

1st
Feb 2016
Bill
@kirah1314
Feb 01 2016 00:00
@aaronk73 7 is in index 0 and 9 is in index 2, so where's 8?
aaronK
@aaronk73
Feb 01 2016 00:00
index 2
Waleed Ehsan
@WaleedEhsan
Feb 01 2016 00:00
@kirah1314 thanks it is working for other challenges
aaronK
@aaronk73
Feb 01 2016 00:01
index 1
Waleed Ehsan
@WaleedEhsan
Feb 01 2016 00:01
@kirah1314 what reasons may for the previous challenge
Bill
@kirah1314
Feb 01 2016 00:01
@WaleedEhsan ok cool, I'm guessing you didn't have passing codes so run tests didn't do anything
Waleed Ehsan
@WaleedEhsan
Feb 01 2016 00:02
@kirah1314 might be. thanks for your help let me check that also
CamperBot
@camperbot
Feb 01 2016 00:02
waleedehsan sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 912 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Waleed Ehsan
@WaleedEhsan
Feb 01 2016 00:03
@camperbot how can i do this.
@camperbot you are right
Jahmai Jones
@jahmaijones123
Feb 01 2016 00:03
so i must write celsius = (example) followed by my formula. and alter the number of celsius. its because i need to get multiple answers at the same time. so when im changing the formula numbers i lose the tick for a question @kirah1314
aaronK
@aaronk73
Feb 01 2016 00:04
@kirah1314 lets try this again im sorry
Bill
@kirah1314
Feb 01 2016 00:05
@jahmaijones123 you want to declare a new variable called fahrenheit and set it equal to the formula on the left section
Michael Poutre
@M1kep
Feb 01 2016 00:05
@jahmaijones123 when freecodecamp runs there tests it runs the function, so your calls are just for you to test it
Bill
@kirah1314
Feb 01 2016 00:06
@aaronk73 I already gave you the answer buddy, if you're not sure how array indices work then I would suggest reviewing the first array challenge again
aaronK
@aaronk73
Feb 01 2016 00:07
ok, thank you
@kirah1314 thank you
CamperBot
@camperbot
Feb 01 2016 00:07
aaronk73 sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 913 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Waleed Ehsan
@WaleedEhsan
Feb 01 2016 00:07
how can i give brownie points to some one
Bill
@kirah1314
Feb 01 2016 00:08
help brownie
CamperBot
@camperbot
Feb 01 2016 00:08

: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

aaronK
@aaronk73
Feb 01 2016 00:11
@kirah1314 thank you, i got it, i had a brain burp
CamperBot
@camperbot
Feb 01 2016 00:11
aaronk73 sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:warning: aaronk73 already gave kirah1314 points
Michael Poutre
@M1kep
Feb 01 2016 00:11
lol I feel like I amde this uneedly lengthy, especially the final iff
var count = 0;

function cc(card) {
  // Only change code below this line
  if(card >= 2 && card <= 6) {
    count += 1;
    return (count + (count > 0 ? " Bet" : " Hold"));
  } else if(card >= 7 && card <= 9) {
    return (count + (count > 0 ? " Bet" : " Hold"));
  } else if(card == 10 || card == 'J' || card == 'K' || card == 'Q' || card == 'A') {
    count -= 1;
    return (count + (count > 0 ? " Bet" : " Hold"));
  }

  // Only change code above this line
}

// Add/remove calls to test your function.
// Note: Only the last will display
cc(2);cc(3);cc(4);cc(5);cc(6);
greg
@wearenotgroot
Feb 01 2016 00:12
@M1kep after you done this do it with a switch statement :+1:
greg
@wearenotgroot
Feb 01 2016 00:17
@M1kep look at the prevous waypoint you have done. it will help solve this, if you want to test this with a switch statement instead.--------> waypoint: Multiple Identical Options in Switch Statements
Mindi Torrey
@minditorrey
Feb 01 2016 00:19
I'm trying to write a function that takes an argument of numbers and returns the following counts in a single object: {odd, negative, average, median}. The object is returning, but largely with "undefined" values. Can anyone offer guidance on how I might figure this out? Here is my code:
calculateAllTheThings = function(integers) {
    for (var i = 0; i <= integers.length; i++) {
      if(integers[i] % 2 !== 0) {
    var odd =+ 1;
    }
  };
  for (var j = 0; j - integers.length; j++) {
      if (ingegers[i] < 0) {
    var negative =+ 1;
    }
  };
  for (var h = 0; h <= integers.length; h++) {
      var sum =+ integers[i];
    var average = sum/integers.length;
  };
  var median = (integers.length/2) + 1;
  var counted = {
      odd: odd,
    negative: negative,
    average: average,
    median: median
  };

    return counted
};
var integers = (1, 5, 7, 12, 110, - 13, 22);
console.log(calculateAllTheThings(integers));
greg
@wearenotgroot
Feb 01 2016 00:20
@minditorrey maybe because the variable are inside the loops and others cant access it
@minditorrey example var odd no other thing in the function can access that !
Fearnostigma
@fearnostigma
Feb 01 2016 00:22
Hey guys, quick question. I have the following code:
<script>
  $(document).ready(function() {
    $("#target1").css("color", "red");
    $("#target1").prop("disabled", true);
    $("#target4").remove();
    $("#target2").appendTo("#right-well");
    $("#target5").clone().appendTo("#left-well");
    $("#target1").parent().css("background-color", "red");
    $("#right-well").children().css("color", "orange");
    $("#left-well").children().css("color", "green");
    $(".target:nth-child(2)").addClass("animated bounce");
    $(".target:even").addClass("animated shake");

  });
</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>
The code .target:even is making button elements 1,3,6 bounce.
greg
@wearenotgroot
Feb 01 2016 00:23
@minditorrey you should review scope of variables :+1:
Fearnostigma
@fearnostigma
Feb 01 2016 00:24
Im thinking that its numbering the element 1 with the count 0 element.
Other function calls like nth element didnt seem to apply that same count
Mindi Torrey
@minditorrey
Feb 01 2016 00:24
@wearenotgroot, thanks, I tried listing the variables and assigning them a value of 0 inside the function but outside of the for loops, but this didn't work either. Thanks, for your help, though.
Michael Poutre
@M1kep
Feb 01 2016 00:25
Are the algrotithsm part an important part
VinCoding
@VinCoding
Feb 01 2016 00:25
how do I replace value HREF with #. I switch the two but it does nothing
Michael Poutre
@M1kep
Feb 01 2016 00:26
Replce the url
so href=www.blah.cm
href=#
Carlos Toro Vera
@carmelo12341
Feb 01 2016 00:26
some help with mongo, im trying to send the result from a query from inside the function to the outside, but trying to do that gives me nothing D:
halp please
VinCoding
@VinCoding
Feb 01 2016 00:27
@M1kep sorry I must have stated it incorrectly. What I mean is I currently have "href" set to a URL. How do I switch it to #. I tried but it does not work
greg
@wearenotgroot
Feb 01 2016 00:29
@minditorrey btw you have typos!
@minditorrey ìngegers[i] at second for loop
Michael Poutre
@M1kep
Feb 01 2016 00:30
@VinCoding can you past that line
VinCoding
@VinCoding
Feb 01 2016 00:31
<p>Click here for <a href="http://www.freecatphotoapp.com">cat photos</a>.</p>
Brian
@sludge256
Feb 01 2016 00:32
Did you create an entirely new anchor element or did you modify the existing anchor element?
Kevin
@kevinandr
Feb 01 2016 00:32
hey friends, i need some help whit the Increment a Number with Javascript lesson
VinCoding
@VinCoding
Feb 01 2016 00:32
@sludge256 nothing yet. I am trying to make it a dead url.
Kevin
@kevinandr
Feb 01 2016 00:33
it says to make myVar + 1 in the ++ way
i did, but it keeps telling me it is wrong
Brian
@sludge256
Feb 01 2016 00:33
I thought you said you already tried switching the url out with a #
Kevin
@kevinandr
Feb 01 2016 00:34
var myVar = 87;

// Only change code below this line
myVar = myVar++;
Brian
@sludge256
Feb 01 2016 00:34
@kevinandr don't do an assignment when you do myVar++
VinCoding
@VinCoding
Feb 01 2016 00:34
@sludge256 I am supposed to make it a dead url. I tried setting href = #. I am asking what I am doing wrong or if I am missing something.
greg
@wearenotgroot
Feb 01 2016 00:35
@minditorrey also an array should be with square brackets [] not ( )
Kevin
@kevinandr
Feb 01 2016 00:35
Thanks @sludge256
CamperBot
@camperbot
Feb 01 2016 00:35
kevinandr sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 1178 | @sludge256 | http://www.freecodecamp.com/sludge256
Mindi Torrey
@minditorrey
Feb 01 2016 00:36
@wearenotgroot It's not an array, it's an argument of integers.
MaestraB
@MaestraB
Feb 01 2016 00:37
I'm stuck on the "give a background color to a div" challenge! Can anyone help me out? Thanks!
greg
@wearenotgroot
Feb 01 2016 00:37
@minditorrey why not put it in array`?
VinCoding
@VinCoding
Feb 01 2016 00:37
I'm stuck on the "Make Dead Links using the Hash Symbol"!
Thank you in advance
runntumtuber
@runntumtuber
Feb 01 2016 00:38
@MaestraB Create a background color class, and assign the class in the div tag
Michael Poutre
@M1kep
Feb 01 2016 00:38
Testing obects for properties, im sure im just missing soeting simple
// Setup
var myObj = {
  gift: "pony",
  pet: "kitten",
  bed: "sleigh"
};

function checkObj(checkProp) {
  // Your Code Here
  if(myObj.hasOwnProperty(checkProp)) {
  return myObj.checkProp;
  } else {
  return "Not Found";
  }
}

// Test your code by modifying these values
checkObj("gift");
Brian
@sludge256
Feb 01 2016 00:39
@VinCoding are you leaving in the quotations?
@M1kep dot notation won't work with variables
it will look up the literal name of the variable
instead of the value
Mindi Torrey
@minditorrey
Feb 01 2016 00:40
@wearenotgroot my task is to pass in an argument. Though, I have tried with an array and still having the same issues. Beyond the typo and the argument, I am having a problem with the function itself.
VinCoding
@VinCoding
Feb 01 2016 00:40
@sludge256 This is what I did. <p>Click here for <a href="#">cat photos</a>.</p>
Brian
@sludge256
Feb 01 2016 00:41
seems right
mind pasting all your code?
using the copy pretty button
VinCoding
@VinCoding
Feb 01 2016 00:41
This message was deleted
MaestraB
@MaestraB
Feb 01 2016 00:43
thanks @runntumtuber ! I'm trying to create the class - do I need to put it inside a style element within the div?
CamperBot
@camperbot
Feb 01 2016 00:43
maestrab sends brownie points to @runntumtuber :sparkles: :thumbsup: :sparkles:
:star: 240 | @runntumtuber | http://www.freecodecamp.com/runntumtuber
runntumtuber
@runntumtuber
Feb 01 2016 00:43
@MaestraB The class needs to go inside the <style>, created like you do all the others, then you assign it the same way you do any other class.
class=
MaestraB
@MaestraB
Feb 01 2016 00:46
Thanks @runntumtuber!
CamperBot
@camperbot
Feb 01 2016 00:46
maestrab sends brownie points to @runntumtuber :sparkles: :thumbsup: :sparkles:
:warning: maestrab already gave runntumtuber points
MaestraB
@MaestraB
Feb 01 2016 00:46
Got it!
runntumtuber
@runntumtuber
Feb 01 2016 00:46
good job :)
aaronK
@aaronk73
Feb 01 2016 00:47
// Example
var ourArray = [1,2,3];
var removedFromOurArray = ourArray.pop(); 
// removedFromOurArray now equals 3, and ourArray now equals [1,2]

// Setup
var myArray = [["John", 23], ["cat", 2]];

// Only change code below this line.
var RemovedfrommyArray = myArray.pop(["cat", 2]);
wil someone help me with this code
Michael Poutre
@M1kep
Feb 01 2016 00:48
yay imi almost too the algorithism!
Brian
@sludge256
Feb 01 2016 00:48
@aaronk73 pop removes the last element of an array
aaronK
@aaronk73
Feb 01 2016 00:50
yes
var RemovedfrommyArray= pop();
runntumtuber
@runntumtuber
Feb 01 2016 00:51
@aaronk73 you have extra stuff in your code
aaronK
@aaronk73
Feb 01 2016 00:51

// Example
var ourArray = [1,2,3];
var removedFromOurArray = ourArray.pop();
// removedFromOurArray now equals 3, and ourArray now equals [1,2]

// Setup
var myArray = [["John", 23], ["cat", 2]];

// Only change code below this line.
var removedFromMyArray;

Brian
@sludge256
Feb 01 2016 00:52
look at how pop is used in the example
compared to how you used it
aaronK
@aaronk73
Feb 01 2016 00:52
// Example
var ourArray = [1,2,3];
var removedFromOurArray = ourArray.pop(); 
// removedFromOurArray now equals 3, and ourArray now equals [1,2]

// Setup
var myArray = [["John", 23], ["cat", 2]];

// Only change code below this line.
var removedFromMyArray;
.pop()
greg
@wearenotgroot
Feb 01 2016 00:57
@minditorrey you are using the wrong iterators!
```
function calculateAllTheThings(integers) {
   var odd = 0;               //had all the variable declared inside the for loop(scope!)
   var negative = 0;
   var sum = 0;
   var average = 0;

   for (var i = 0; i < integers.length; i++) {

      if(integers[i]%2 !== 0) {
         odd++;
      }
  }

  for (var j = 0; j < integers.length; j++) {          //<------------------was using i instead of j
      if(integers[j] < 0)                //<----------------had typos ingegers instead of integers
      {
        negative++;
       }
  }

  for (var h = 0; h < integers.length; h++) {  //<------------------was using i instead of h
      sum += integers[h];
      average = sum/integers.length;
  }


  var median = (integers.length/2) + 1;
  var counted = {
      odd: odd,
    negative: negative,
    average: average,
    median: median
  };

    return counted;
}
var integers = [1, 5, 7, 12, 110, -13, 22];
console.log(calculateAllTheThings(integers));```
aaronK
@aaronk73
Feb 01 2016 00:57
var removedFromMyArray= myArray.pop();
@sludge256 thank you sludge
CamperBot
@camperbot
Feb 01 2016 00:57
aaronk73 sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
greg
@wearenotgroot
Feb 01 2016 00:57
@minditorrey you were using i on all of the for loops. instead of j and h
CamperBot
@camperbot
Feb 01 2016 00:57
:star: 1179 | @sludge256 | http://www.freecodecamp.com/sludge256
greg
@wearenotgroot
Feb 01 2016 00:59
@minditorrey to recap ------> wrong variable scope and typos aka wrong variable names. in addition to use of wrong iterators(used i on all of the for loop instead of the assigned ones)
Michael Poutre
@M1kep
Feb 01 2016 01:05
wold this be considered a bug cause it consideres it as an acceptable way of doing it even though it tells you to push them?
// Example
var ourArray = [];

for (var i = 10; i > 0; i -= 2) {
  ourArray.push(i);
}

// Setup
var myArray = [];

// Only change code below this line.
for (var i = 1; i <= 9; i += 2) {
  myArray.unshift(i);
}
PowerBauer
@pbhoeh
Feb 01 2016 01:06
Hi there, I just created an endless loop and added // noprotect. now when I open the exercise the code is immediately executes and I cant edit the mistake out.
Michael Poutre
@M1kep
Feb 01 2016 01:06
lol
greg
@wearenotgroot
Feb 01 2016 01:06
@pbhoeh :+1:
Michael Poutre
@M1kep
Feb 01 2016 01:06
Pretty sure thats why the have protection
greg
@wearenotgroot
Feb 01 2016 01:07
PSA always use protection ..gigity!
PowerBauer
@pbhoeh
Feb 01 2016 01:07
can i get to e version of the exercise with only the default code?
greg
@wearenotgroot
Feb 01 2016 01:07
@pbhoeh try clearing your browser history and cookies!
Michael Poutre
@M1kep
Feb 01 2016 01:08
about @pbhoeh
CamperBot
@camperbot
Feb 01 2016 01:08
:warning: no user found for pbhoeh
Michael Poutre
@M1kep
Feb 01 2016 01:08
lol
cant even find your camper account
greg
@wearenotgroot
Feb 01 2016 01:08
@M1kep a ghost!
Brian
@sludge256
Feb 01 2016 01:08
wiki auto
CamperBot
@camperbot
Feb 01 2016 01:08

:point_right: disable code auto run [wiki]

By default, the Free Code Camp site automatically loads and runs your last recorded solution. If you have accidentally created an infinite loop or other irrecoverable error or simply don't trust the code, you can disable code auto-run by putting the following in your URL:
run=disabled

Example:

URL: http://www.freecodecamp.com/challenges/bonfire-meet-bonfire#?solution=function%20meetBonfire(argument)

No-Run URL: http://www.freecodecamp.com/challenges/bonfire-meet-bonfire#?run=disabled&solution=function%20meetBonfire(argument)

:pencil: read more about disable code auto run on the FCC Wiki

Michael Poutre
@M1kep
Feb 01 2016 01:09
but anywho, like I was saying is this a bug cause it doesnst use push like it says to
// Example
var ourArray = [];

for (var i = 10; i > 0; i -= 2) {
  ourArray.push(i);
}

// Setup
var myArray = [];

// Only change code below this line.
for (var i = 1; i <= 9; i += 2) {
  myArray.unshift(i);
}
PowerBauer
@pbhoeh
Feb 01 2016 01:09
thanks, deleting websitedata helped
Michael Poutre
@M1kep
Feb 01 2016 01:09
and it doesnt use the backwards loop
greg
@wearenotgroot
Feb 01 2016 01:10
@pbhoeh :+1:
@M1kep what do you mean?
@M1kep first one will output---------> [10, 8, 6, 4, 2]
@M1kep second one will output---------->[9, 7, 5, 3, 1]
Elifaz Filho
@Elifaz
Feb 01 2016 01:15
wiki Smallest Common Multiple
CamperBot
@camperbot
Feb 01 2016 01:15

:point_right: bonfire smallest common multiple [wiki]

Explanation:

This particular problem can be confusing because most people look for the smallest common multiple of the two number but forget the keyword range. This means that if you get [1,5] then you have to check for the smallest common multiple for all these numbers [1,2,3,4,5] that is evenly divisible by all of them.

:pencil: read more about bonfire smallest common multiple on the FCC Wiki

Michael Poutre
@M1kep
Feb 01 2016 01:16
@wearenotgroot but the instructins dont say to do it that way
greg
@wearenotgroot
Feb 01 2016 01:16
@M1kep which way point is this?
And my code is:
// Example
var ourArray = [];

for (var i = 10; i > 0; i -= 2) {
  ourArray.push(i);
}

// Setup
var myArray = [];

// Only change code below this line.
for (var i = 1; i <= 9; i += 2) {
  myArray.unshift(i);
}
greg
@wearenotgroot
Feb 01 2016 01:18
@M1kep why not use push()?
@M1kep also i = 9
Michael Poutre
@M1kep
Feb 01 2016 01:19
Cause it achieves the same thing and I dont have to deal with the wonky negative stuff
greg
@wearenotgroot
Feb 01 2016 01:19
@M1kep then count backwards
Michael Poutre
@M1kep
Feb 01 2016 01:19
My function passes the tetst
Thats why im asking if its a bug
Cause it probably shouldnt pass
Though it does give the same output
greg
@wearenotgroot
Feb 01 2016 01:20
@M1kep well it will pass as long as the same outcome/result is achieve
@M1kep i guess this waypoint only checks the result and not the way it is implemented
Devi
@Devi999
Feb 01 2016 01:23
hi can somebody help me with the stand in line task

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

return item; // Change this line
}

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

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

Add the number to the end of the array, then remove the first element of array. The queue function should then return the element that was removed.
greg
@wearenotgroot
Feb 01 2016 01:27
@Devi999 review the previous waypoints there are methods there that you can use!
@Devi999 array methods to be exact!
@Devi999 or check the documentation online
@Devi999 here look at the bottom there are methods for arrays------>https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
Michael Poutre
@M1kep
Feb 01 2016 01:29
isnt generating random decimals and just multiplying by a number and then rounding really ineffecient
greg
@wearenotgroot
Feb 01 2016 01:30
@M1kep I supposed
@M1kep depend on what scale!
@M1kep as long as the operation isnt n^2(speed)
@Devi999 so did you find the methods to use?
@Devi999 Hints! first letters are p and s
Devi
@Devi999
Feb 01 2016 01:39
@wearenotgroot yeah i am using the push and shift methods. But i am getting RangeError: Maximum call stack size exceeded
greg
@wearenotgroot
Feb 01 2016 01:40
@Devi999 let's see it!
@Devi999 btw read the return values of each methods
Devi
@Devi999
Feb 01 2016 01:44

@wearenotgroot function queue(arr, item) {
// Your code here
var Add= arr.push(1);
var Remove=arr.shift();
return Remove; // Change this line
}

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

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

@wearenotgroot please correct me if i am wrong
greg
@wearenotgroot
Feb 01 2016 01:45
@Devi999 umm use the given parameter of the function--------> item to push in the array
@Devi999 .push() method will return the new length of the array after the push happens
@Devi999 .shift() will return the element that was removed
@Devi999 post updated code when you can
greg
@wearenotgroot
Feb 01 2016 01:51
@Devi999 so any progress?
@Devi999 hint! can be simplified into two lines of code
PHPman
@dmitrikonnikov
Feb 01 2016 01:54
how do you add an id to an element here is my code
<form id="cat-photo-app" action="/submit-cat-photo">
  <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> Outdoor</label>
  <label><input type="checkbox" name="personality" checked> Loving</label>
  <label><input type="checkbox" name="personality"> Lazy</label>
  <label><input type="checkbox" name="personality"> Energetic</label>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>
greg
@wearenotgroot
Feb 01 2016 01:54
@dmitrikonnikov same process with adding class
PHPman
@dmitrikonnikov
Feb 01 2016 01:55
that doesnt seem to be working
see line 1
am i doing it wrong?
greg
@wearenotgroot
Feb 01 2016 01:55
@dmitrikonnikov looks right
PHPman
@dmitrikonnikov
Feb 01 2016 01:55
so what is wrong
greg
@wearenotgroot
Feb 01 2016 01:55
@dmitrikonnikov which waypoint is this?
kilik42
@kilik42
Feb 01 2016 01:55
which element
PHPman
@dmitrikonnikov
Feb 01 2016 01:55
Set the ID of an Element
the form element
kilik42
@kilik42
Feb 01 2016 01:56
you did it right
PHPman
@dmitrikonnikov
Feb 01 2016 01:56
so why is it not working?
greg
@wearenotgroot
Feb 01 2016 01:56
@dmitrikonnikov wrong name
kilik42
@kilik42
Feb 01 2016 01:56
was there something you were supposed to do in the style tag as well
PHPman
@dmitrikonnikov
Feb 01 2016 01:56
no
greg
@wearenotgroot
Feb 01 2016 01:56
@dmitrikonnikov should be from
@dmitrikonnikov --->cat-photo-form.
@dmitrikonnikov re-read instructions!
PHPman
@dmitrikonnikov
Feb 01 2016 01:57
thank you
srry
greg
@wearenotgroot
Feb 01 2016 01:57
@dmitrikonnikov np
kilik42
@kilik42
Feb 01 2016 01:57
np
Michael Poutre
@M1kep
Feb 01 2016 02:16
is it just me or is the site being slow?
info @bothelp
Yay almsot to algorithims :DDDDDDDDDDDDDDD
Michael Poutre
@M1kep
Feb 01 2016 02:19
does free code came go over that stuff eventually?
Machinist89
@Machinist89
Feb 01 2016 02:19
no
Michael Poutre
@M1kep
Feb 01 2016 02:19
:/
kilik42
@kilik42
Feb 01 2016 02:20
best place I learned ruby was the beginner ruby on rails tuts at mackenzie child site
he was that guy who had that famous 12 in 12 app challenge
Machinist89
@Machinist89
Feb 01 2016 02:20
PHP will always be king of the web, dont waste your time http://w3techs.com/technologies/overview/programming_language/all
Thomas Noe
@t3h2mas
Feb 01 2016 02:21
troll still
CamperBot
@camperbot
Feb 01 2016 02:21
:trollface: troll problems? notify admins here
Michael Poutre
@M1kep
Feb 01 2016 02:22
Hm, why'd he get ban;ned?
Thomas Noe
@t3h2mas
Feb 01 2016 02:23
he trolled the gen channel.
Brian
@sludge256
Feb 01 2016 02:23
He trolls chat a lot
and makes new accounts
Michael Poutre
@M1kep
Feb 01 2016 02:23
also
Where wold I report a bug with camperbot?
about @sludge256
CamperBot
@camperbot
Feb 01 2016 02:24
:star: 1179 | @sludge256 | http://www.freecodecamp.com/sludge256
Matt Gilbert
@Alquh
Feb 01 2016 02:32

any help with this? Create a CSS class called pink-text that gives an element the color pink.

Give your h1 element the class of pink-text.```html
.pink-text {
color:pink;
}
</style>

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

runntumtuber
@runntumtuber
Feb 01 2016 02:33
You assign the class with class=
Rena
@rsugihara
Feb 01 2016 02:33
Can somebody point out what's wrong with my code? I'm on bonfire "Return Large Numbers in Arrays" and my code works for one array but not the other.
function largestOfFour(arr) {
  // You can do this!
  var array = [];
  var largest = 0;
    for (i = 0; i <= arr.length - 1; i++) {
      for (j = 0; j <= arr[i].length - 1; j++) {
        if (largest < arr[i][j]) {
          largest = arr[i][j];
        }
    }
      array.push(largest);
  }
  return array;
}


largestOfFour([[4, 9, 1, 3], [13, 35, 18, 26], [32, 35, 97, 39], [1000000, 1001, 857, 1]]);
// returns a correct set of numbers in an array [9, 35, 97, 1000000].

largestOfFour([[13, 27, 18, 26], [4, 5, 1, 3], [32, 35, 37, 39], [1000, 1001, 857, 1]]);
//returns [27,27,39,1001] instead of [27,5,39,1001].
Matt Gilbert
@Alquh
Feb 01 2016 02:34
thanks! @runntumtuber
CamperBot
@camperbot
Feb 01 2016 02:34
alquh sends brownie points to @runntumtuber :sparkles: :thumbsup: :sparkles:
:star: 243 | @runntumtuber | http://www.freecodecamp.com/runntumtuber
cannelflow
@cannelflow
Feb 01 2016 02:35
@Alquh <h1 style="pink-text">Hello World!</h1> you need to give h1 class not style
Michael Poutre
@M1kep
Feb 01 2016 02:37
Agh reduce and map or confuzzing
lookup reduce
find reduce
Michael Poutre
@M1kep
Feb 01 2016 02:37
1
CamperBot
@camperbot
Feb 01 2016 02:37

:point_right: js array prototype reduce [wiki]

js Array prototype reduce

The reduce() method applies a function against an accumulator and each value of the array (from left-to-right) to reduce it to a single value.

:pencil: read more about js array prototype reduce on the FCC Wiki

Michael Poutre
@M1kep
Feb 01 2016 02:39
dafaq, that didnt help me very much......
welp, im just gonna head off for the night I guess, see yall tomorrow! or in like 6 hours
runntumtuber
@runntumtuber
Feb 01 2016 02:40
Make Object Properties Private

erm
runntumtuber
@runntumtuber
Feb 01 2016 02:46

halp
myfriendpaul
@myfriendpaul
Feb 01 2016 02:47

Create a Bulleted Unordered List, been stuck for 30 min and i cant figure out what im doing wrong here

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

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

h2 {
font-family: Lobster, Monospace;
}

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

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

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

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

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

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

<u1>
<li>lasagna</li>
<li>garfield</li>
<li>odie</li>
</u>

Thomas Noe
@t3h2mas
Feb 01 2016 02:47
@myfriendpaul look at what tags you're using for the list.
runntumtuber
@runntumtuber
Feb 01 2016 02:47
look at the closing list tag
Thomas Noe
@t3h2mas
Feb 01 2016 02:48
the opening list tag might be off too.
myfriendpaul
@myfriendpaul
Feb 01 2016 02:49
fixed that last </u1>
still nothing
Thomas Noe
@t3h2mas
Feb 01 2016 02:51
@myfriendpaul only one more thing... make sure the syntax is <u1> instead of something very similar...
runntumtuber
@runntumtuber
Feb 01 2016 02:52
How does this stuff happen? :P
myfriendpaul
@myfriendpaul
Feb 01 2016 02:52
IT WAS AN L THE WHOLE TIME
NOT A 1
DANGIT
Thomas Noe
@t3h2mas
Feb 01 2016 02:52
:tongue:
runntumtuber
@runntumtuber
Feb 01 2016 02:54
whelp I'm stuck
Thomas Noe
@t3h2mas
Feb 01 2016 02:54
ul stands for unordered list, li list item, etc
@runntumtuber on what?
runntumtuber
@runntumtuber
Feb 01 2016 02:55

var Bike = function() {

// Only change code below this line.
var gear = 1;

this.setGear = function(change){
gear += change;
};

this.getGear = function(setGear){
return gear;
};
};

var myCar = new Car();

var myBike = new Bike();

Thomas Noe
@t3h2mas
Feb 01 2016 02:56
@runntumtuber the gear variables within those functions are local, is there an object syntax to make those accessible within the object?
I'm not sure what challenge you are working on, but have they covered prototype/constructor relationships?
Zachary Odden
@oddenzac
Feb 01 2016 02:59
// Setup
var myObj = {
  gift: "pony",
  pet: "kitten",
  bed: "sleigh"
};

function checkObj(checkProp) {
  // Your Code Here
  myObj.hasOwnProperty("gift");
  myObj.hasOwnProperty("pet");
  myObj.hasOwnProperty("bed");

  return "Not Found";
}

// Test your code by modifying these values
checkObj("gift");
Instructions
Modify the function checkObj to test myObj for checkProp. If the property is found, return that property's value. If not, return "Not Found".
hey guys can i have a little help with this one??
runntumtuber
@runntumtuber
Feb 01 2016 02:59
I'm on Make Object Properties Private... and I'm supposed to make gear a private variable, and setGear, and getGear public... which I have done, according to the green CHECK... but then I'm having trouble calling setGear to get 4, 3, and 1.
Thomas Noe
@t3h2mas
Feb 01 2016 03:01
@oddenzac whatcha need
Zachary Odden
@oddenzac
Feb 01 2016 03:02
these are the instructions Instructions
Modify the function checkObj to test myObj for checkProp. If the property is found, return that property's value. If not, return "Not Found".
Thomas Noe
@t3h2mas
Feb 01 2016 03:02
@runntumtuber I'll take a look
Zachary Odden
@oddenzac
Feb 01 2016 03:02
// Setup
var myObj = {
  gift: "pony",
  pet: "kitten",
  bed: "sleigh"
};

function checkObj(checkProp) {
  // Your Code Here
  myObj.hasOwnProperty("gift");
  myObj.hasOwnProperty("pet");
  myObj.hasOwnProperty("bed");

  return "Not Found";
}

// Test your code by modifying these values
checkObj("gift");
Thomas Noe
@t3h2mas
Feb 01 2016 03:02
@oddenzac where are ya stuck
Zachary Odden
@oddenzac
Feb 01 2016 03:03
testing objects for properties
Thomas Noe
@t3h2mas
Feb 01 2016 03:03
@oddenzac perhaps you'd want to make checkObj look at the checkProp variable and return results from that
Franco Zapata
@Francozt01
Feb 01 2016 03:03
@oddenzac has to be done with the parameter checkProp
Zachary Odden
@oddenzac
Feb 01 2016 03:04
in addition to hasOwnProperty? or instead of it?
Franco Zapata
@Francozt01
Feb 01 2016 03:04
@oddenzac also use an if statement and check if the property is in that object
if (myObj.hasOwnProperty(checkProp))
Thomas Noe
@t3h2mas
Feb 01 2016 03:04
@runntumtuber which module is that challenge in
Franco Zapata
@Francozt01
Feb 01 2016 03:05
u need to check if the property checkProp is inside ur object with the use of hasOwnProperty()
runntumtuber
@runntumtuber
Feb 01 2016 03:05
Object Oriented and Functional Programming
Zachary Odden
@oddenzac
Feb 01 2016 03:06
ok let me try something...
Pedro Rezende
@pedrorezende
Feb 01 2016 03:07
hasOwnProperty returns a boolean, so you could just return its value and use the variable checkProp as a parameter, instead of a string
Thomas Noe
@t3h2mas
Feb 01 2016 03:12
@runntumtuber think I see
try not to think of setGear in the context of the Car object, rather think of the basic meaning of getting and setting a variable
Zachary Odden
@oddenzac
Feb 01 2016 03:13
@Francozt01 so then how would i get it to return the property value?
Thomas Noe
@t3h2mas
Feb 01 2016 03:13
@oddenzac how do you get the value of an object's property?
Zachary Odden
@oddenzac
Feb 01 2016 03:14
tell it to return the property, but what is the statement for returning the certain property instead of the value itself?
tommy
@tommygebru
Feb 01 2016 03:14
You-Da-Real-MVP.jpg
Zachary Odden
@oddenzac
Feb 01 2016 03:15
^^ so true ^^
Franco Zapata
@Francozt01
Feb 01 2016 03:16
@oddenzac inside the if statement after checkin if it exist return myObj[checkProp];
Thomas Noe
@t3h2mas
Feb 01 2016 03:17
didn't format that right
Nicholas Abad
@nicoar9
Feb 01 2016 03:18
Hello people
Thomas Noe
@t3h2mas
Feb 01 2016 03:18
var person = {
    name: "Russel WIlson",
    job: "Quarterback"
}
Josue Rodriguez
@Rapidisimo
Feb 01 2016 03:18
Sup
VinCoding
@VinCoding
Feb 01 2016 03:18
Hey can someone help me on "Make Dead Links using the Hash Symbol"
I made HREF= #
Franco Zapata
@Francozt01
Feb 01 2016 03:18
@nicoar9 welcome
VinCoding
@VinCoding
Feb 01 2016 03:18
but it is not correct
Franco Zapata
@Francozt01
Feb 01 2016 03:18
@Rapidisimo sos nuevo
Thomas Noe
@t3h2mas
Feb 01 2016 03:19
@VinCoding as in <a href=#></a> ?
Josue Rodriguez
@Rapidisimo
Feb 01 2016 03:19
@Francozt01 Si lo soy.
Zachary Odden
@oddenzac
Feb 01 2016 03:19
// Setup
var myObj = {
  gift: "pony",
  pet: "kitten",
  bed: "sleigh"
};

function checkObj(checkProp) {
  // Your Code Here
 if (myObj.hasOwnProperty("gift"))
    return myObj[checkProp];
  if (myObj.hasOwnProperty("pet"))
    return myObj[checkProp];
  if (myObj.hasOwnProperty("bed"))
    return myObj[checkProp];

  if (myObj.hasOwnProperty())
  return "Not Found";
}

// Test your code by modifying these values
checkObj("house");
Franco Zapata
@Francozt01
Feb 01 2016 03:19
@VinCoding <a href="#"></a>
Zachary Odden
@oddenzac
Feb 01 2016 03:19
how do i get something other than gift, pet, and bed to return "Not Found"?
Franco Zapata
@Francozt01
Feb 01 2016 03:19
@Rapidisimo bien venido :+1:
Josue Rodriguez
@Rapidisimo
Feb 01 2016 03:19
@Francozt01 Thanks! Glad to be here.
CamperBot
@camperbot
Feb 01 2016 03:19
rapidisimo sends brownie points to @francozt01 :sparkles: :thumbsup: :sparkles:
:star: 512 | @francozt01 | http://www.freecodecamp.com/francozt01
Franco Zapata
@Francozt01
Feb 01 2016 03:20
@oddenzac with the if statement as default case
VinCoding
@VinCoding
Feb 01 2016 03:20
@t3h2mas Yes. I did it earlier and it seemed not to work but it did now... Thank you!
CamperBot
@camperbot
Feb 01 2016 03:20
vincoding sends brownie points to @t3h2mas :sparkles: :thumbsup: :sparkles:
:star: 20 | @t3h2mas | http://www.freecodecamp.com/t3h2mas
Franco Zapata
@Francozt01
Feb 01 2016 03:20
if (myObj.hasOwnProperty(checkProp)) {return the property} else { return "Not Found"; }
@oddenzac
Thomas Noe
@t3h2mas
Feb 01 2016 03:20
@VinCoding you might have to use <a href="#"></a> with the quotes
if it gives you issues in the future.
Franco Zapata
@Francozt01
Feb 01 2016 03:21
@Rapidisimo np! ponle ganas :+1:
Zachary Odden
@oddenzac
Feb 01 2016 03:21
// Setup
var myObj = {
  gift: "pony",
  pet: "kitten",
  bed: "sleigh"
};

function checkObj(checkProp) {
  // Your Code Here
 if (myObj.hasOwnProperty("gift"))
    return myObj[checkProp];
  if (myObj.hasOwnProperty("pet"))
    return myObj[checkProp];
  if (myObj.hasOwnProperty("bed"))
    return myObj[checkProp];
  else return "Not Found";
  // default: { if (myObj.hasOwnProperty())
  //return "Not Found";}
}


// Test your code by modifying these values
checkObj("house");
Josue Rodriguez
@Rapidisimo
Feb 01 2016 03:22
@Francozt01 Le voy con todas ganas amigo.
Franco Zapata
@Francozt01
Feb 01 2016 03:22
@oddenzac u don't need all those if ()... only one with myObj.hasOwnProperty(checkProp)
Zachary Odden
@oddenzac
Feb 01 2016 03:23
got it! thanks a ton @Francozt01
CamperBot
@camperbot
Feb 01 2016 03:23
oddenzac sends brownie points to @francozt01 :sparkles: :thumbsup: :sparkles:
:star: 513 | @francozt01 | http://www.freecodecamp.com/francozt01
Franco Zapata
@Francozt01
Feb 01 2016 03:24
checkProp is a parameter = to gift, pet and bed... in this case it represents the values u past to the function so if (myObj.hasOwnProperty(checkProp)) { return myObj[checkProp]; } else { return "Not Found"; } check this
pass*
gn8 all / buenas noches
Josue Rodriguez
@Rapidisimo
Feb 01 2016 03:25
@Francozt01 Cya
runntumtuber
@runntumtuber
Feb 01 2016 03:27
I'm not sure the basic meaning of getting and setting a variable applies here because I can't modify the private property normally? I don't know. I'm still stuck. @t3h2mas
Thomas Noe
@t3h2mas
Feb 01 2016 03:28
@runntumtuber you can't modify the private normally -- true. But you can get and set from within the function
Thomas Noe
@t3h2mas
Feb 01 2016 03:29
hint: they aren't asking you to increment the value of gear, only to set it.
CamperBot
@camperbot
Feb 01 2016 03:29
Set a bonfire to talk about with bonfire name
Thomas Noe
@t3h2mas
Feb 01 2016 03:30
what is a bonfire
Josue Rodriguez
@Rapidisimo
Feb 01 2016 03:36
@t3h2mas I believe they are challenges that you need to solve later in the map.
Thomas Noe
@t3h2mas
Feb 01 2016 03:37
I see..
runntumtuber
@runntumtuber
Feb 01 2016 03:43
wiki Bonfire
CamperBot
@camperbot
Feb 01 2016 03:43

:point_right: bonfire arguments optional [wiki]

Explanation:

It can be quite complicated to understand what needs to be done. There are always many ways to do something when coding but regardless of the algorithm used, we have to create a program that does the following:

  • It has to add two numbers passed as parameters and return the sum.
  • It has to check if any of the numbers are actual numbers, otherwise return undefined and stop the program right there.
  • It has to check if it has one or two arguments passed. More are ignored.
  • If it has only one argument then it has to return a function that uses that number and expects another one, to then add it.

:pencil: read more about bonfire arguments optional on the FCC Wiki

Thomas Noe
@t3h2mas
Feb 01 2016 03:45
uh
runntumtuber
@runntumtuber
Feb 01 2016 03:47
find bike
CamperBot
@camperbot
Feb 01 2016 03:47
find bike
nothing found
runntumtuber
@runntumtuber
Feb 01 2016 03:48
find constructor
Thomas Noe
@t3h2mas
Feb 01 2016 03:48
@runntumtuber still stuck?
runntumtuber
@runntumtuber
Feb 01 2016 03:48
find object
runntumtuber
@runntumtuber
Feb 01 2016 03:49
yeah, I'm not sure how I'm supposed to meet the requirements of having setGear return 4, 3, and 1 withotu incrementing
Thomas Noe
@t3h2mas
Feb 01 2016 03:50
@runntumtuber if you feel like you have a strong grasp of the concepts I can give you the solution
runntumtuber
@runntumtuber
Feb 01 2016 03:52
I understand the difference between private properties, and public methods.. just not sure how I'm supposed to call them to get the requirements. I can get 4/6 but not all 6..
Thomas Noe
@t3h2mas
Feb 01 2016 03:52
what does your code show now
runntumtuber
@runntumtuber
Feb 01 2016 03:53
WAIT
I just got it
thanks @t3h2mas
CamperBot
@camperbot
Feb 01 2016 03:53
runntumtuber sends brownie points to @t3h2mas :sparkles: :thumbsup: :sparkles:
:star: 24 | @t3h2mas | http://www.freecodecamp.com/t3h2mas
runntumtuber
@runntumtuber
Feb 01 2016 03:53
for all the help
haha
Thomas Noe
@t3h2mas
Feb 01 2016 03:53
sweet :D
I think the instructions left it too open combined with the Car example
runntumtuber
@runntumtuber
Feb 01 2016 03:54
var Bike = function() {
// Only change code below this line.
  var gear;

  this.getGear = function(){
    return gear;
  };


  this.setGear = function(num){
    gear = num;
  };

};
Thomas Noe
@t3h2mas
Feb 01 2016 03:54
awesome
runntumtuber
@runntumtuber
Feb 01 2016 03:55
I kept trying to pass parameters in setGear as a number, instead of an identifier..
Thomas Noe
@t3h2mas
Feb 01 2016 03:57
looks like you figured it out. if it wasn't an example I'd recommend setting gear to a default value so that if you run
var coolBike = new Bike();
console.log( coolBike.getGear() );
 > undefined
where undefined is what would be printed. (if you don't know console.log alert works in the browser)
runntumtuber
@runntumtuber
Feb 01 2016 04:01
hey how do you know so much? haha
Pranjal Singh
@pr4njal
Feb 01 2016 04:03
did any1 solved "Check for Palindromes" exercise
Thomas Noe
@t3h2mas
Feb 01 2016 04:04
@pr4njal are you struggling w/ it?
Pranjal Singh
@pr4njal
Feb 01 2016 04:04
@t3h2mas yes
Thomas Noe
@t3h2mas
Feb 01 2016 04:05
@pr4njal where ysa at
ya*
Pranjal Singh
@pr4njal
Feb 01 2016 04:05
@t3h2mas did u solved it?
Thomas Noe
@t3h2mas
Feb 01 2016 04:05
@pr4njal I haven't looked at it yet.
James
@jammatpic
Feb 01 2016 04:06
Hey, I'm currently trying to build a Pomodoro clock, and I can't seem to get one timer to start after another. I'm implementing two timers using setInterval() - they simply change the on-screen text every second until they run out.
Pranjal Singh
@pr4njal
Feb 01 2016 04:06
its asking to check for palindrome("0_0 (: /-\ :) 0-0") and to return true
oops "0_0 (: /-\ :) 0-0")
OOps this smiley
James
@jammatpic
Feb 01 2016 04:07
If I put one sequentially after another, the second timer will start part-way through the first timer's run
Thomas Noe
@t3h2mas
Feb 01 2016 04:07
@jammatpic they may run asynchrously
James
@jammatpic
Feb 01 2016 04:08
They're meant to run sequentially
one after the other
Thomas Noe
@t3h2mas
Feb 01 2016 04:08
in your code or in practice?
James
@jammatpic
Feb 01 2016 04:08
in practice
In my code, they're placed sequentially after one anther, but the second either executes part-way through the first one, or doesn't execute at all, depending on what I do to the code
Thomas Noe
@t3h2mas
Feb 01 2016 04:10
I'm not 100% but I think they execute asynch
Austin Thornley
@AustinThornley
Feb 01 2016 04:10
So if I wanted to return "Hi World" by just calling this function, how would I do that?
function myFunction() {
  console.log("Hi World");
}

myFunction();
Manish Giri
@Manish-Giri
Feb 01 2016 04:11
@AustinThornley return “Hi World”;
James
@jammatpic
Feb 01 2016 04:11
I've got a variable in the first timer that is set only when it gets to 0, and that variable sets the second timer
Austin Thornley
@AustinThornley
Feb 01 2016 04:11
@Manish-Giri Yeah but couldn't I somehow call myFunction and that will then run the console.log("Hi world");??
Manish Giri
@Manish-Giri
Feb 01 2016 04:12
@AustinThornley
Mauricio Santos
@maosan132
Feb 01 2016 04:12
I found the explanation of "reduce" function very weak...
Manish Giri
@Manish-Giri
Feb 01 2016 04:13
@AustinThornley
function myFunction() {
  return “Hi World";
}
console.log(myFunction());
Mauricio Santos
@maosan132
Feb 01 2016 04:13
In Condense arrays with reduce
Austin Thornley
@AustinThornley
Feb 01 2016 04:13
@Manish-Giri Ohhh. Thank you.
CamperBot
@camperbot
Feb 01 2016 04:13
austinthornley sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star: 617 | @manish-giri | http://www.freecodecamp.com/manish-giri
Manish Giri
@Manish-Giri
Feb 01 2016 04:13
welcome
Nicholas Abad
@nicoar9
Feb 01 2016 04:14

Hello! Can someone help me with the Waypoint: Change Text Inside an Element Using jQuery Incomplete
<script>
  $(document).ready(function() {
    $("#target1").css("color", "red");
$("target4").html("<i> #target4 </i>");




  });
</script>

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

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <h4>#left-well</h4>
      <div class="well" id="left-well">
        <button class="btn btn-default target" id="target1">#target1</button>
        <button class="btn btn-default target" id="target2">#target2</button>
        <button class="btn btn-default target" id="target3">#target3</button>
      </div>
    </div>
    <div class="col-xs-6">
      <h4>#right-well</h4>
      <div class="well" id="right-well">
        <button class="btn btn-default target" id="target4">#target4</button>
        <button class="btn btn-default target" id="target5">#target5</button>
        <button class="btn btn-default target" id="target6">#target6</button>
      </div>
    </div>
  </div>
</div>
"Italicize the text in your target4 button by adding HTML tags."
it doesn't seem to work
Manish Giri
@Manish-Giri
Feb 01 2016 04:17
@nicoar9 you’re forgetting the # in $(“#target4”);
Shameer S N
@shameersn
Feb 01 2016 04:17
@nicoar9 $("#target4").html("<i> #target4 </i>"); u miss #
Darla Sudheer
@sudheerdarla
Feb 01 2016 04:17
put # before target 4
@nicoar9
Nicholas Abad
@nicoar9
Feb 01 2016 04:18
oh yes, and i try that too
Thomas Noe
@t3h2mas
Feb 01 2016 04:18
and it doesn't work?
Nicholas Abad
@nicoar9
Feb 01 2016 04:19
well
it does
Thomas Noe
@t3h2mas
Feb 01 2016 04:19
but?
Nicholas Abad
@nicoar9
Feb 01 2016 04:19
it says "Make sure the text is otherwise unchanged."
Thomas Noe
@t3h2mas
Feb 01 2016 04:20
is the text changed?
Nicholas Abad
@nicoar9
Feb 01 2016 04:20
the text gets italicized
Darla Sudheer
@sudheerdarla
Feb 01 2016 04:20
try ctrl + f5 to remove the cache.
what is that test name? in map
@nicoar9
Nicholas Abad
@nicoar9
Feb 01 2016 04:22
Change Text Inside an Element Using jQuery @sudheerdarla
it doesn't work
:(
Thomas Noe
@t3h2mas
Feb 01 2016 04:23
changing text to html..
Darla Sudheer
@sudheerdarla
Feb 01 2016 04:24
@nicoar9 got it
!!
Nicholas Abad
@nicoar9
Feb 01 2016 04:25
:D
Darla Sudheer
@sudheerdarla
Feb 01 2016 04:25
$("target4").html("<i> #target4 </i>");
remove the spaces before and after the #target4
and put #
@nicoar9
Nicholas Abad
@nicoar9
Feb 01 2016 04:25
gonna try it
oh wow
thanks
:D
@sudheerdarla
Darla Sudheer
@sudheerdarla
Feb 01 2016 04:28
Happy coding!!
@nicoar9
Nicholas Abad
@nicoar9
Feb 01 2016 04:28
thanks @sudheerdarla
CamperBot
@camperbot
Feb 01 2016 04:28
nicoar9 sends brownie points to @sudheerdarla :sparkles: :thumbsup: :sparkles:
:star: 213 | @sudheerdarla | http://www.freecodecamp.com/sudheerdarla
Nicholas Abad
@nicoar9
Feb 01 2016 04:28
:D
Darla Sudheer
@sudheerdarla
Feb 01 2016 04:29
:smile:
Zachary Odden
@oddenzac
Feb 01 2016 04:38
var b = contacts.length;
return b;
why is this an illegal return statement?
Thomas Noe
@t3h2mas
Feb 01 2016 04:40
it shouldn't be
Shameer S N
@shameersn
Feb 01 2016 04:40
@oddenzac full code??
Zachary Odden
@oddenzac
Feb 01 2016 04:41
//Setup
var contacts = [
    {
        "firstName": "Akira",
        "lastName": "Laine",
        "number": "0543236543",
        "likes": ["Pizza", "Coding", "Brownie Points"]
    },
    {
        "firstName": "Harry",
        "lastName": "Potter",
        "number": "0994372684",
        "likes": ["Hogwarts", "Magic", "Hagrid"]
    },
    {
        "firstName": "Sherlock",
        "lastName": "Holmes",
        "number": "0487345643",
        "likes": ["Intriguing Cases", "Violin"]
    },
    {
        "firstName": "Kristian",
        "lastName": "Vos",
        "number": "unknown",
        "likes": ["Javascript", "Gaming", "Foxes"]
    }
];


function lookUp(firstName, prop){
 //Only change code below this line
for (var i =0; i < contacts.length; i++)
  if (firstName === '')
    return "No such Contact";}

// Only change code above this line

var b = contacts.length;
return b;
// Change these values to test your function
//lookUp("Sam", "likes");
i just want to see the contact.length to help me learn
Shameer S N
@shameersn
Feb 01 2016 04:42
@oddenzac use { } and one missing last
Zachary Odden
@oddenzac
Feb 01 2016 04:43
example please?
Shameer S N
@shameersn
Feb 01 2016 04:43

function lookUp(firstName, prop){
//Only change code below this line
for (var i =0; i < contacts.length; i++)
{ if (firstName === ''){
return "No such Contact";
}
}

// Only change code above this line

var b = contacts.length;
return b;
}

Thomas Noe
@t3h2mas
Feb 01 2016 04:43
functions need to open with { and close with }
Zachary Odden
@oddenzac
Feb 01 2016 04:44
im not seeing where i am missing it?
oh wait
but i can comment all of that, i just want to see what the contact length is for helping me learn the challenge
Shameer S N
@shameersn
Feb 01 2016 04:45
@oddenzac closing of functiion declaration and also on for loop
Zachary Odden
@oddenzac
Feb 01 2016 04:46
//Setup
var contacts = [
    {
        "firstName": "Akira",
        "lastName": "Laine",
        "number": "0543236543",
        "likes": ["Pizza", "Coding", "Brownie Points"]
    },
    {
        "firstName": "Harry",
        "lastName": "Potter",
        "number": "0994372684",
        "likes": ["Hogwarts", "Magic", "Hagrid"]
    },
    {
        "firstName": "Sherlock",
        "lastName": "Holmes",
        "number": "0487345643",
        "likes": ["Intriguing Cases", "Violin"]
    },
    {
        "firstName": "Kristian",
        "lastName": "Vos",
        "number": "unknown",
        "likes": ["Javascript", "Gaming", "Foxes"]
    }
];


//function lookUp(firstName, prop){
 //Only change code below this line
//for (var i =0; i < contacts.length; i++)
//  if (firstName === ''){
//    return "No such Contact";


// Only change code above this line

var b = contacts.length;
return b;
// Change these values to test your function
//lookUp("Sam", "likes");
there, why is it giving me an illegal return statement?
Herman Fassett
@HermanFassett
Feb 01 2016 04:46
@oddenzac because you can't return without a function
Zachary Odden
@oddenzac
Feb 01 2016 04:47
oh
Shameer S N
@shameersn
Feb 01 2016 04:47
@HermanFassett is correct
Zachary Odden
@oddenzac
Feb 01 2016 04:47
ok thank you, @HermanFassett , so how would i add a function in there quick. I just want to see the contacts.length
CamperBot
@camperbot
Feb 01 2016 04:47
oddenzac sends brownie points to @hermanfassett :sparkles: :thumbsup: :sparkles:
:star: 1519 | @hermanfassett | http://www.freecodecamp.com/hermanfassett
Thomas Noe
@t3h2mas
Feb 01 2016 04:48
@oddenzac you might want to go over the basics again.
Zachary Odden
@oddenzac
Feb 01 2016 04:48
i think its just too late and i need to go to bed haha, see ya guys
Herman Fassett
@HermanFassett
Feb 01 2016 04:49
@oddenzac well cya but
function contactLength() {
    var b = contacts.length;
    return b;
}
contactLength();
Zachary Odden
@oddenzac
Feb 01 2016 04:49
yea see i should know that, thanks again
joseph graham
@tstcman
Feb 01 2016 04:53
So I am just starting out and I am lost. what am i doing wrong ?
<!---->
<h1>Hello World</h1>
<!---->
<h2>CatPhotoApp</h2>
<!---->
<p>Hello Paragraph</p>
-->
Shameer S N
@shameersn
Feb 01 2016 04:54
@tstcman remove closting --> below p tag
Yoel Trujillo
@y0el22
Feb 01 2016 04:55
hi guys!!
how you been?
Pranav Doshi
@pranavdoshi
Feb 01 2016 04:57
hello wassup goodmorning guys
:)
runntumtuber
@runntumtuber
Feb 01 2016 04:57
HI
Scott Brenner
@ScottBrenner
Feb 01 2016 04:58
Can someone help with Record Collection? ^_^
Pranav Doshi
@pranavdoshi
Feb 01 2016 04:58
atleast we can try
@ScottBrenner
will try to help u out although i have not yet reached there
Tobias Murphy
@tmrdr
Feb 01 2016 04:59
hello can someone help me with Stand in Line (180)?
Scott Brenner
@ScottBrenner
Feb 01 2016 04:59
ok so the first part,
If value is non-blank (value !== "") and prop is not "tracks" then update or set the value for the prop.
Pranav Doshi
@pranavdoshi
Feb 01 2016 04:59
@tmrdr sure whynot
Andrew Charlebois
@andrewchar
Feb 01 2016 04:59
@tstcman this is showing you your header tags and a paragraph tag
Scott Brenner
@ScottBrenner
Feb 01 2016 04:59
I have this, right?
if (value !== "" && prop !== "tracks") {
    collection[prop] = value;
  }
Tobias Murphy
@tmrdr
Feb 01 2016 04:59
im not really sure how to do what it is asking
Pranav Doshi
@pranavdoshi
Feb 01 2016 04:59
why wat happen @tmrdr
Andrew Charlebois
@andrewchar
Feb 01 2016 04:59
@tmrdr what is the question
Pranav Doshi
@pranavdoshi
Feb 01 2016 05:00
@ScottBrenner i got u are assigning the value to collection array on checking the conditional right
Tobias Murphy
@tmrdr
Feb 01 2016 05:00
function queue(arr, item) {
  // Your code here
  queue.push(item);
  queue.shift(testArr[0]);

  return item;  // Change this line
}

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

// Display Code
console.log("Before: " + JSON.stringify(testArr));
console.log(queue(testArr, 6)); // Modify this line to test
console.log("After: " + JSON.stringify(testArr));
joseph graham
@tstcman
Feb 01 2016 05:00
@andrewchar ok, Im thank you guys for your help
CamperBot
@camperbot
Feb 01 2016 05:00
tstcman sends brownie points to @andrewchar :sparkles: :thumbsup: :sparkles:
:star: 224 | @andrewchar | http://www.freecodecamp.com/andrewchar
Scott Brenner
@ScottBrenner
Feb 01 2016 05:01
@pranavdoshi Yeah, If value is non-blank (value !== "") and prop is not "tracks" then update or set the value for the prop.
Andrew Charlebois
@andrewchar
Feb 01 2016 05:01
@tmrdr what does it want you to do
Will G
@willgorham
Feb 01 2016 05:02
@tmrdr 'queue' is the name of the function. You should use arr.push / arr.shift and return the removed item
Tobias Murphy
@tmrdr
Feb 01 2016 05:02
it wants me to "Write a function queue which takes an array (arr) and a number (item) as arguments. Add the number to the end of the array, then remove the first element of array. The queue function should then return the element that was removed."
Pranav Doshi
@pranavdoshi
Feb 01 2016 05:02
@tmrdr o/p shud be 23456 right?
Scott Brenner
@ScottBrenner
Feb 01 2016 05:03
@tmrdr If I'm not mistaken you don't have to call shift on anything, you can just say shift().
And you should return the shift right?
Will G
@willgorham
Feb 01 2016 05:03
@ScottBrenner yep :+1:
ScottBrenner @ScottBrenner vaguely remembers that challenge
Will G
@willgorham
Feb 01 2016 05:04
@tmrdr listen to this guy ^
Andrew Charlebois
@andrewchar
Feb 01 2016 05:05
which exercise was this again
Tobias Murphy
@tmrdr
Feb 01 2016 05:05
180 Stand in line
Andrew Charlebois
@andrewchar
Feb 01 2016 05:08
your first line is close
you should not be using queue in the line thou
Tobias Murphy
@tmrdr
Feb 01 2016 05:10
ok
but can I call testArr when it is outside of the function?
I mean use it in the function if it is below it
Yoel Trujillo
@y0el22
Feb 01 2016 05:11
hi guys
i got a question for all of you
Andrew Charlebois
@andrewchar
Feb 01 2016 05:11
testArr is just there for you to test your code
Yoel Trujillo
@y0el22
Feb 01 2016 05:12
how you memorize all this codes?
is alot
runntumtuber
@runntumtuber
Feb 01 2016 05:12
you don't
Yoel Trujillo
@y0el22
Feb 01 2016 05:12
a lot*
Andrew Charlebois
@andrewchar
Feb 01 2016 05:12
yeah, you don't
Yoel Trujillo
@y0el22
Feb 01 2016 05:12
so?
how you do?
Thomas Noe
@t3h2mas
Feb 01 2016 05:12
sarcasm?
Andrew Charlebois
@andrewchar
Feb 01 2016 05:12
you remember some of it
like remembering syntax
but you will never remember all of it
no one ever will
Yoel Trujillo
@y0el22
Feb 01 2016 05:13
ok, but if you find a job in this, you don't need to remember much codes?
runntumtuber
@runntumtuber
Feb 01 2016 05:13
whelp, if you know one programming language, you can prolly figure it out in another.. you just have to remember the basics
Andrew Charlebois
@andrewchar
Feb 01 2016 05:14
i can't tell if im being trolled or not lol
Yoel Trujillo
@y0el22
Feb 01 2016 05:14
is serious men
is some thought
because i have bad memory
runntumtuber
@runntumtuber
Feb 01 2016 05:15
I'd imagine even real programmers need references
Yoel Trujillo
@y0el22
Feb 01 2016 05:15
and i don't know if i can work for this
runntumtuber
@runntumtuber
Feb 01 2016 05:15
You've got good grammar though, and that's a start.
Yoel Trujillo
@y0el22
Feb 01 2016 05:16
hahahahah thanks i do my best, the english is not my native language
Andrew Charlebois
@andrewchar
Feb 01 2016 05:16
from what i have read, even good programmers need to keep tabs open to check references
runntumtuber
@runntumtuber
Feb 01 2016 05:16
find RegExp
CamperBot
@camperbot
Feb 01 2016 05:16
find regexp
nothing found
Yoel Trujillo
@y0el22
Feb 01 2016 05:16
mmmm i got it
thanks guys :)
runntumtuber
@runntumtuber
Feb 01 2016 05:17
wiki RegExp
CamperBot
@camperbot
Feb 01 2016 05:17
no wiki entry for: regexp
Thomas Noe
@t3h2mas
Feb 01 2016 05:17
find regular expression
Herman Fassett
@HermanFassett
Feb 01 2016 05:17
explain regex
CamperBot
@camperbot
Feb 01 2016 05:17

:point_right: js regex resources [wiki]

Links to useful RegEx resources.

See also: :clipboard: Tutorials | :syringe: Testing | :soccer: Games | :newspaper: Blogs | :package: Software

:pencil: read more about js regex resources on the FCC Wiki

runntumtuber
@runntumtuber
Feb 01 2016 05:18
oh that's better
thanks @HermanFassett
CamperBot
@camperbot
Feb 01 2016 05:18
runntumtuber sends brownie points to @hermanfassett :sparkles: :thumbsup: :sparkles:
:star: 1523 | @hermanfassett | http://www.freecodecamp.com/hermanfassett
Scott Brenner
@ScottBrenner
Feb 01 2016 05:20
Can someone help with this part of Record Collection?
After update(2548, "artist", ""), artist should not be set
Thomas Noe
@t3h2mas
Feb 01 2016 05:20
what is your code doing
Scott Brenner
@ScottBrenner
Feb 01 2016 05:21
if (value == "") {
    collection[id][prop].pop();
  }
is what I have because If value is blank, delete that prop.
Thomas Noe
@t3h2mas
Feb 01 2016 05:22
what kind of data structure is collection
Scott Brenner
@ScottBrenner
Feb 01 2016 05:22
oop nevermind got it
Thomas Noe
@t3h2mas
Feb 01 2016 05:22
:thumbsup:
Scott Brenner
@ScottBrenner
Feb 01 2016 05:22
:thumbsup:
Sean McIntyre
@SeanM5
Feb 01 2016 05:45
how do you paste code formatted like that
Herman Fassett
@HermanFassett
Feb 01 2016 05:45
explain format
CamperBot
@camperbot
Feb 01 2016 05:45

: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

Chris Katzmann
@cwkatzmann
Feb 01 2016 05:46
hey could someone take a look at my celsius-farenheit converter code?
it keeps telling me farenheit is undefined and I can't figure out why
function convert(celsius) {
  // Only change code below this line
celsius = celsius * 9;
celsius = celsius /5;

var farenheit;
farenheit = 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(3);
Brian
@sludge256
Feb 01 2016 05:49
you spelled fahrenheit wrong
Sean McIntyre
@SeanM5
Feb 01 2016 05:49

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

// Modify values below to test your code
multiplyAll([[1,2],[3,4],[5,6,7]]);'''
Why isn't my function multiplying my arrays?

CamperBot
@camperbot
Feb 01 2016 05:49
:bulb: to format code use backticks! ``` more info
Chris Katzmann
@cwkatzmann
Feb 01 2016 05:49
@sludge256 oh boy...
lol
Thomas Noe
@t3h2mas
Feb 01 2016 05:49
both are ` symbols @SeanM5
Sean McIntyre
@SeanM5
Feb 01 2016 05:50
lol
Chris Katzmann
@cwkatzmann
Feb 01 2016 05:50
its late!
I'm not THAT dumb....
lol
Thomas Noe
@t3h2mas
Feb 01 2016 05:50
@cwkatzmann we all been there
Chris Katzmann
@cwkatzmann
Feb 01 2016 05:50
thank you for pointing out my error @sludge256
CamperBot
@camperbot
Feb 01 2016 05:50
cwkatzmann sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 1181 | @sludge256 | http://www.freecodecamp.com/sludge256
Brian
@sludge256
Feb 01 2016 05:52
@SeanM5 you didn't initialize i or p
Sean McIntyre
@SeanM5
Feb 01 2016 05:52
ah
thank you
James Jung
@thejcode24
Feb 01 2016 05:54
@sludge256 still saving the day i see
sup all
happy coding
Thomas Noe
@t3h2mas
Feb 01 2016 05:54
o/
Andrew Charlebois
@andrewchar
Feb 01 2016 05:54
it took me 4 hours to do record collecting
omg
Scott Brenner
@ScottBrenner
Feb 01 2016 05:56
Loool I just finished it, took me a bit
Andrew Charlebois
@andrewchar
Feb 01 2016 05:57
"a bit" :P
Ghost
@ghost~56a18e6ae610378809bd9384
Feb 01 2016 05:57
can anyone give me some advice on Escape Sequences in Strings?
Scott Brenner
@ScottBrenner
Feb 01 2016 05:57
@nruck1 Follow the table they give you
So just lookup the stuff they want you to encode in that guide
Ghost
@ghost~56a18e6ae610378809bd9384
Feb 01 2016 05:59

Yea I am but I get confused if it's suppose to start off with double or single quotes:

var myStr = "code" or 'code';

Thomas Noe
@t3h2mas
Feb 01 2016 06:00
both of those examples work.
Scott Brenner
@ScottBrenner
Feb 01 2016 06:00
ya
Ghost
@ghost~56a18e6ae610378809bd9384
Feb 01 2016 06:02
oh I'm dumb, I thought it wanted to use the escape thing it had in the previous challenge. Thanks!
Scott Brenner
@ScottBrenner
Feb 01 2016 06:04
:thumbsup:
John Clyde Gonzaga
@ClydeAmazing
Feb 01 2016 06:07
hi
Thomas Noe
@t3h2mas
Feb 01 2016 06:08
@ClydeAmazing hi
John Clyde Gonzaga
@ClydeAmazing
Feb 01 2016 06:09
help., im new here, i stuck on the stage where you will be referred to the help camp., but i cannot continue
CamperBot
@camperbot
Feb 01 2016 06:09
no wiki entry for: im new here i stuck on the stage where you will be referred to the help camp but i cannot continue
Thomas Noe
@t3h2mas
Feb 01 2016 06:10
what camp exactly?
John Clyde Gonzaga
@ClydeAmazing
Feb 01 2016 06:11
this help chat room
Thomas Noe
@t3h2mas
Feb 01 2016 06:11
you're here though?
can you skip it in the map?
John Clyde Gonzaga
@ClydeAmazing
Feb 01 2016 06:12
yeah, i know but i cannot click the 'go to my next step' button
Thomas Noe
@t3h2mas
Feb 01 2016 06:14
go to the map at the top right of the page and find the next challenge
John Clyde Gonzaga
@ClydeAmazing
Feb 01 2016 06:17
refreshed the page, and it work now., thank for the assistance @t3h2mas
CamperBot
@camperbot
Feb 01 2016 06:17
clydeamazing sends brownie points to @t3h2mas :sparkles: :thumbsup: :sparkles:
:star: 83 | @t3h2mas | http://www.freecodecamp.com/t3h2mas
Ahmad Mansour
@Ahmad-Mansour
Feb 01 2016 06:29

<input type="radio" name="test-name" checked>

<input type="checkbox" name="test-name" checked>

guys what's wrong with this ?
i need the radio button to be checked and the checkbox as well.
Lucky charm
@luckycharm223
Feb 01 2016 06:30
what am i doing wrong? <style>
body {
background-color: rgb(255,225,225)
}
</style>
Ahmad Mansour
@Ahmad-Mansour
Feb 01 2016 06:31
you forgot the semi colon!
@luckycharm223 the semi colon!
you forgot about it.
@luckycharm223 try this:
what am i doing wrong? <style>
body {
background-color: rgb(255,225,225);
}
</style> @luckycharm223
Lucky charm
@luckycharm223
Feb 01 2016 06:33
@Ahmad-Mansour i did, still not working
Scott Brenner
@ScottBrenner
Feb 01 2016 06:44
What's not working? Looks right to me.
@luckycharm223 Which challenge are you working on?
James Jung
@thejcode24
Feb 01 2016 06:45
function myFunction() {
  'use strict';
  var myVar = "foo";

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

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

// now remove the console log line to pass the test
can anyone help me with this exercise?
keeps saying
reference error: myVar is not defined
John Clyde Gonzaga
@ClydeAmazing
Feb 01 2016 06:46
delete the last console.log
Scott Brenner
@ScottBrenner
Feb 01 2016 06:46
@thejcode24 myVar is not globally defined.
John Clyde Gonzaga
@ClydeAmazing
Feb 01 2016 06:47
place myvar outside the function
Scott Brenner
@ScottBrenner
Feb 01 2016 06:47
And yea, remove that last line.
Charlten Oldenkott
@Charltenoldenk
Feb 01 2016 06:47
hello
Scott Brenner
@ScottBrenner
Feb 01 2016 06:49
@Ahmad-Mansour Are you still having issues with the buttons being checked? Looks right to me.
James Jung
@thejcode24
Feb 01 2016 06:50
now it says no global myVar variable..
jacekthong
@guanhuahong
Feb 01 2016 06:50
@Ahmad-Mansour Use other color. e.g. red
Scott Brenner
@ScottBrenner
Feb 01 2016 06:50
@thejcode24 Right, because myVar is defined within your function, not globally.
jacekthong
@guanhuahong
Feb 01 2016 06:52
The background-color's default color is white
James Jung
@thejcode24
Feb 01 2016 06:53
function myFunction() {
  'use strict';


  console.log(myVar);
}
myFunction();
var myVar ="1";
Thomas Noe
@t3h2mas
Feb 01 2016 06:54
the truncate exercize could be more clear.
James Jung
@thejcode24
Feb 01 2016 06:54
says No global myVar variable
Scott Brenner
@ScottBrenner
Feb 01 2016 06:54
@thejcode24 Close, myVar has to be defined before the function.
Because as it is now myVar does not exist when you call myFunction();.
James Jung
@thejcode24
Feb 01 2016 06:56
var myVar ="a";

function myFunction() {
  'use strict';


  console.log(myVar);
}
myFunction();
like this?
jacekthong
@guanhuahong
Feb 01 2016 06:56
var myVar = “1”;
function myFunction() {
 ‘use strict’;
console.log(myVar); // 1
}
console.log(myVar); // 1
myFunction();
Scott Brenner
@ScottBrenner
Feb 01 2016 06:57
@thejcode24 Looks good. What challenge are you working on?
still doesnt work..
Anthony Gayflor
@Anthonyg23
Feb 01 2016 06:57

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

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

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

im trying to fix the font size but it wont execute any idea?
James Jung
@thejcode24
Feb 01 2016 06:58
nvm
gonna try tomorrow..
too tired
thanks
Scott Brenner
@ScottBrenner
Feb 01 2016 06:58
@thejcode24 Oh, read the instructions for the challenge silly! Declare a local variable myVar inside myFunction
So just move your variable declaration about the console.log() statement.
jacekthong
@guanhuahong
Feb 01 2016 07:00
function myFunction() {
'use strict';
var myVar = "b";
console.log(myVar);
}
myFunction();
Scott Brenner
@ScottBrenner
Feb 01 2016 07:01
@Anthonyg23 Try this?
<style>
.red-text {
color: red;
}

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

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

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">
Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched. </p>
^ that should work.
Anthony Gayflor
@Anthonyg23
Feb 01 2016 07:05
it looks exactly the same, what did i do wrong? @ScottBrenner
Scott Brenner
@ScottBrenner
Feb 01 2016 07:06
@Anthonyg23 Did that work? I cleaned up the formatting a bit.
Anthony Gayflor
@Anthonyg23
Feb 01 2016 07:06
no sadly it did not @ScottBrenner
Scott Brenner
@ScottBrenner
Feb 01 2016 07:06
@Anthonyg23 Ah, bummer. Which challenge are you working on? I'll take a look.
Anthony Gayflor
@Anthonyg23
Feb 01 2016 07:06
Change the Font Size of an Element
Scott Brenner
@ScottBrenner
Feb 01 2016 07:09
ooo
Looks like they don't want that second <p> tag to have the class "red-text"
Anthony Gayflor
@Anthonyg23
Feb 01 2016 07:10
ohhh okay, could you explain why?
@ScottBrenner
Scott Brenner
@ScottBrenner
Feb 01 2016 07:11
Well, in the instructions it just tells you to create a second <p> element. It doesn't say anything about giving it a class.
Actually it explicitly says Also, please do not add any extra classes to your new element.
:p
Anthony Gayflor
@Anthonyg23
Feb 01 2016 07:12
true, i should have read the directions better haha @ScottBrenner
Scott Brenner
@ScottBrenner
Feb 01 2016 07:12
:thumbsup:
Anthony Gayflor
@Anthonyg23
Feb 01 2016 07:12
Thank you! @ScottBrenner
CamperBot
@camperbot
Feb 01 2016 07:12
anthonyg23 sends brownie points to @scottbrenner :sparkles: :thumbsup: :sparkles:
:star: 242 | @scottbrenner | http://www.freecodecamp.com/scottbrenner
Thomas Noe
@t3h2mas
Feb 01 2016 07:28
just tore through "hours" and "hours" of challanges. Bed time. Code on amigos o/
Anthony Gayflor
@Anthonyg23
Feb 01 2016 07:41
I nested this correctly right?
<a href = "#">
<img src="https://bit.ly/fcc-relaxing-cat"> </a>
leanminmachine
@leanminmachine
Feb 01 2016 07:41
hey guys i need help for this
John Clyde Gonzaga
@ClydeAmazing
Feb 01 2016 07:41
@Anthonyg23 yeah\
Anthony Gayflor
@Anthonyg23
Feb 01 2016 07:42
well this challenge is telling me otherwise @ClydeAmazing
leanminmachine
@leanminmachine
Feb 01 2016 07:42
freecodecamp Factoralize A Number
Thomas Noe
@t3h2mas
Feb 01 2016 07:42
what does it say to do
John Clyde Gonzaga
@ClydeAmazing
Feb 01 2016 07:42
are you having a problem?
@Anthonyg23
Anthony Gayflor
@Anthonyg23
Feb 01 2016 07:43
yes with the "turn an image into a link" challenge"@ClydeAmazing and all its asking me to do is next the img element into an a element but it keeps reading that its not nested @t3h2mas
nest the image*
John Clyde Gonzaga
@ClydeAmazing
Feb 01 2016 07:45
<a href = "#"><img src="https://bit.ly/fcc-relaxing-cat"></a>
Michael Poutre
@M1kep
Feb 01 2016 07:45

@M1kep
hmmm, what am i doing wrong with my replace thing

  str = str.replace("/[^a-zA-Z0-9]/g", '');

@M1kep
well it works on https://regex101.com/r/uJ5wC7/2
but its not replacing it on https://repl.it/Bi9U/0

Anthony Gayflor
@Anthonyg23
Feb 01 2016 07:47
thats exactnly what i have @ClydeAmazing
exactly*
John Clyde Gonzaga
@ClydeAmazing
Feb 01 2016 07:50
its working on me @Anthonyg23
Anthony Gayflor
@Anthonyg23
Feb 01 2016 07:50

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

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

h2 {
font-family: Lobster, Monospace;
}

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

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

img{
width: 100px;
}
</style>

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

<p>Click here for </p>

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

<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 entire code right now @ClydeAmazing

Robert Uivarosi
@URobert
Feb 01 2016 07:55
@Anthonyg23 Hi. can you link me directly to your exercise ?
Shameer S N
@shameersn
Feb 01 2016 07:56
@Anthonyg23 change like this<p>Click here for
<a href = "#">
<img src="https://bit.ly/fcc-relaxing-cat"></a></p>
Robert Uivarosi
@URobert
Feb 01 2016 07:58

@Anthonyg23

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

@Anthonyg23 ```
``

<p>Click here for <a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a> cat photos.</p>
Anthony Gayflor
@Anthonyg23
Feb 01 2016 07:59
yup that fixed it, thanks! @URobert
CamperBot
@camperbot
Feb 01 2016 07:59
anthonyg23 sends brownie points to @urobert :sparkles: :thumbsup: :sparkles:
:star: 539 | @urobert | http://www.freecodecamp.com/urobert
Adam Snetiker
@ajsnetiker
Feb 01 2016 07:59
hey all, here to answer questions before I go to sleep. I’m up to the projects but I like helping people with the basiscs since I’ve been doing that for a while. You can tag me if you need help, i’ll be up at least a few minutes
Robert Uivarosi
@URobert
Feb 01 2016 08:03
@Anthonyg23 the proeblem with your code was that you wiped out the class of the img
class="smaller-image thick-green-border"
@Anthonyg23 yw. Happy coding
Micheal
@wordaddict
Feb 01 2016 08:16
hello guys
i have a problem
@wordaddict What's going on?
Micheal
@wordaddict
Feb 01 2016 08:17
I'm new here but am having problem with html
lesson 17
Can you post your code?
Micheal
@wordaddict
Feb 01 2016 08:17
changing of d font size
ok

<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> Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched. </p>

but this was the instruction i was given
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).
Any help??
John Clyde Gonzaga
@ClydeAmazing
Feb 01 2016 08:20
p {
font-size: 16px;
}
put this inside your stylr tag
*style
Micheal
@wordaddict
Feb 01 2016 08:20
Ok
let me try it
Shameer S N
@shameersn
Feb 01 2016 08:20
p{font-size:16px;} add this inside style element @wordaddict
Micheal
@wordaddict
Feb 01 2016 08:21
wow
thanks
John Clyde Gonzaga
@ClydeAmazing
Feb 01 2016 08:22
no problem @wordaddict
Micheal
@wordaddict
Feb 01 2016 08:22
it worked @shameersn and @ClydeAmazing
thanks too @ltr7
CamperBot
@camperbot
Feb 01 2016 08:22
wordaddict sends brownie points to @ltr7 :sparkles: :thumbsup: :sparkles:
:star: 298 | @ltr7 | http://www.freecodecamp.com/ltr7
park23
@park23
Feb 01 2016 08:25
after gold section in js not work new challenges
gold
golf*
Pranjal Singh
@pr4njal
Feb 01 2016 08:25
bonfire Find the Longest Word in a String
CamperBot
@camperbot
Feb 01 2016 08:25

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

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

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

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

more info:  bf details | bf links | hint

Pranjal Singh
@pr4njal
Feb 01 2016 08:26
bf details
CamperBot
@camperbot
Feb 01 2016 08:26

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

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

findLongestWord('The quick brown fox jumped over the lazy dog');
Return the length of the longest word in the provided sentence.
Your response should be a number.
Remember to use RSAP if you get stuck. Try to pair program. Write your own code.
links:
Pranjal Singh
@pr4njal
Feb 01 2016 08:26
hint
CamperBot
@camperbot
Feb 01 2016 08:26
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
park23
@park23
Feb 01 2016 08:26
Uncaught TypeError: Cannot read property 'join' of null
console log
error
park23
@park23
Feb 01 2016 08:38
ok, all section's not work
wtf
Robert Uivarosi
@URobert
Feb 01 2016 08:39
@park23 what exercise are you doing ?
@park23 thanks
CamperBot
@camperbot
Feb 01 2016 08:39
urobert sends brownie points to @park23 :sparkles: :thumbsup: :sparkles:
:star: 199 | @park23 | http://www.freecodecamp.com/park23
Robert Uivarosi
@URobert
Feb 01 2016 08:39
@park23 brownie was to check cbot response
park23
@park23
Feb 01 2016 08:40
js , all after golf
@URobert up)
Robert Uivarosi
@URobert
Feb 01 2016 08:42
Golf Code? I can't seem to find "After golf"
park23
@park23
Feb 01 2016 08:44
@URobert all afer golf code not work
@URobert switch case
Robert Uivarosi
@URobert
Feb 01 2016 08:45
@park23 Link me your code
park23
@park23
Feb 01 2016 08:46
@URobert solution is right, but not redirect to next challenge

@URobert function myTest(val) {
var answer = "";
// Only change code below this line

switch(val){
case 1:
answer="alpha";
break;
case 2:
answer="beta";
break;
case 3:
answer="gamma";
break;
case 4:
answer="delta";
break;

}

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

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

Robert Uivarosi
@URobert
Feb 01 2016 08:49
@park23 hah... you complete it and you are forwarded to the same exercise ?
leanminmachine
@leanminmachine
Feb 01 2016 08:50
hey anyone has any idea what's wrong with this code? supposed to return A... when ("A-", 1) but im just getting "..." lol
park23
@park23
Feb 01 2016 08:50
@URobert I finished and it hangs on forwarding
leanminmachine
@leanminmachine
Feb 01 2016 08:50

```else if ((str.length < num) && (str.length <= 3)) {
results = str.slice(0, num - str.length) + "...";
}

return results;
}

truncate("A-", 1);

Robert Uivarosi
@URobert
Feb 01 2016 08:51
@park23 refresh the browser, should work: next up is: Adding a default option in Switch statements
leanminmachine
@leanminmachine
Feb 01 2016 08:51

```else if ((str.length < num) && (str.length <= 3)) {
results = str.slice(0, num - str.length) + "...";
}

return results;
}

truncate("A-", 1);

ugh i cant type in the markdown again lol
Robert Uivarosi
@URobert
Feb 01 2016 08:51
@park23 if refresh/close-reopen doesn't work... try to access the exercise from the map, see if the previous one is checked. But it should work fine
Micheal
@wordaddict
Feb 01 2016 08:51
Guys i have a small problem
Bon
@OriBon
Feb 01 2016 08:52
we might have a small solution
Micheal
@wordaddict
Feb 01 2016 08:52
lol @OriBon thanks .... let me copy the code
CamperBot
@camperbot
Feb 01 2016 08:52
wordaddict sends brownie points to @oribon :sparkles: :thumbsup: :sparkles:
:star: 640 | @oribon | http://www.freecodecamp.com/oribon
Tarun prakash singh
@tpstps
Feb 01 2016 08:52
$("#target4").html("<i>target4</i>");
park23
@park23
Feb 01 2016 08:53
@URobert not work(
Tarun prakash singh
@tpstps
Feb 01 2016 08:53
not working for http://www.freecodecamp.com/challenges/change-text-inside-an-element-using-jquery#?solution=fccss%0A%20%20%24%28document%29.ready%28function%28%29%20{%0A%20%20%20%20%24%28%22%23target4%22%29.html%28%22%3Ci%3Etarget4%3C%2Fi%3E%22%29%3B%0A%0A%20%20}%29%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A
Micheal
@wordaddict
Feb 01 2016 08:53

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

<style>
.red-text {
color: red;
}
smaller-image {
width: 100px;
}

h2 {
font-family: Lobster, Monospace;
}

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

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

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

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

This is d instruction..............
Tarun prakash singh
@tpstps
Feb 01 2016 08:53
Change the button with id target4 by italicizing its text. $("#target4").html("<i>target4</i>");
Robert Uivarosi
@URobert
Feb 01 2016 08:53
@park23 try reseting the code and copy it again
Tarun prakash singh
@tpstps
Feb 01 2016 08:53
why its nt working
Micheal
@wordaddict
Feb 01 2016 08:53
Create a class called smaller-image and use it to resize the image so that it's only 100 pixels wide.
budimanfix
@budimanfix
Feb 01 2016 08:55
@URobert need help for this challenge : freecodecamp.com/challenges/convert-celsius-to-fahrenheit#?solution=function%20convert(celsius)
park23
@park23
Feb 01 2016 08:55
@URobert some problem with token : X-CSRF-Token:undefined
Konstantin
@r0uder
Feb 01 2016 08:55
guys why if I click submit and go to my next challenge nothing happens
park23
@park23
Feb 01 2016 08:56
i thine relog help me
leands
@lileander
Feb 01 2016 08:58

Hi everyone!
I'm still working on the Mutations problem under Basic Algorithm Scripting section.
Do we really have to use "return arr"
Thank you.

function mutation(arr) {
return arr;
}

mutation(["hello", "hey"]);

Shameer S N
@shameersn
Feb 01 2016 08:59
@tpstps $("#target4").html("<i>#target4</i>") ; use this
leands
@lileander
Feb 01 2016 09:00
BTW, 20 mins ago it seems that FCC is not working even when clearing browser cache, etc
Konstantin
@r0uder
Feb 01 2016 09:01
@lileander same
Robert Uivarosi
@URobert
Feb 01 2016 09:01
@budimanfix see response on pm
Tarun prakash singh
@tpstps
Feb 01 2016 09:01
thanks shameersn
Shameer S N
@shameersn
Feb 01 2016 09:02
@tpstps :smile:
park23
@park23
Feb 01 2016 09:02
@URobert i'm relogin, clear cookies, resresh browser, and it's nt work(
thomas-duval
@thomas-duval
Feb 01 2016 09:04
Hey guys, trying to do the profile lookup challenge and I encounter a problem.
contacts[i].prop is not returning anything but
contacts[i].likesis working properly ...
I thought they were the same when you do lookUp("Akira", "likes");
Thanks.
Robert Uivarosi
@URobert
Feb 01 2016 09:04
@lileander i don't recall the instructions exactly but basically you can return whatever you want as long as it is the correct answer. You don't have to assign the result to arr and then return arr... you can have return myOwnStuff ;)
@park23 what exactly is happening... is just loading forever ?
park23
@park23
Feb 01 2016 09:05
@URobert yes(
Robert Uivarosi
@URobert
Feb 01 2016 09:06
@park23 have you tried getting to the new exercise from the map ?
park23
@park23
Feb 01 2016 09:07
yeah
@URobert yes
Robert Uivarosi
@URobert
Feb 01 2016 09:11
@park23 that is very odd.. have you tried other exercises? A few steps ahead, or some that you have already completed
?
park23
@park23
Feb 01 2016 09:11
@URobert FreeCodeCamp/FreeCodeCamp#6633 i have same issue
leands
@lileander
Feb 01 2016 09:12
@URobert, that was what I was doing because I thought we need to use the exact return statement on the problem set. Thanks!
CamperBot
@camperbot
Feb 01 2016 09:12
lileander sends brownie points to @urobert :sparkles: :thumbsup: :sparkles:
:star: 541 | @urobert | http://www.freecodecamp.com/urobert
Robert Uivarosi
@URobert
Feb 01 2016 09:13
@lileander yw
@park23 I don't know how else to help you. You might want to check your firewall setting... but if previously was working fine... it can't really be the problem unless someone cut you your connection to ffc server ips
@park23 which I kind doubt is the case... unless ofc your are doing this from work, and your sysadmin caught you :0
Nikita Manahov
@Nikitaw99
Feb 01 2016 09:15
Hello world!
CamperBot
@camperbot
Feb 01 2016 09:15

welcome to FreeCodeCamp @Nikitaw99!

park23
@park23
Feb 01 2016 09:15
@URobert ok, thank for help)
CamperBot
@camperbot
Feb 01 2016 09:15
park23 sends brownie points to @urobert :sparkles: :thumbsup: :sparkles:
:star: 542 | @urobert | http://www.freecodecamp.com/urobert
Micheal
@wordaddict
Feb 01 2016 09:16
I have a problem resizing my image
Shameer S N
@shameersn
Feb 01 2016 09:16
yes
Micheal
@wordaddict
Feb 01 2016 09:16
let me paste the code
Shameer S N
@shameersn
Feb 01 2016 09:16
k
leands
@lileander
Feb 01 2016 09:16
@park23, In my case, I have tried changing my DNS. It worked for me. I am able to access the site again.
Robert Uivarosi
@URobert
Feb 01 2016 09:16
@park23 np. Sorry I could not help you fix it. Fire up another browser, see if it works
Micheal
@wordaddict
Feb 01 2016 09:16

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

<style>
.red-text {
color: red;
}
.smaller-image {
width: 100px;
}

h2 {
font-family: Lobster, Monospace;
}

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

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

<style>

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

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

this is the instruction.............
Robert Uivarosi
@URobert
Feb 01 2016 09:17
@lileander @park23 good hint
Micheal
@wordaddict
Feb 01 2016 09:17
Create a class called smaller-image and use it to resize the image so that it's only 100 pixels wide.
park23
@park23
Feb 01 2016 09:17
@URobert for the fact that trying to help)
@lileander ok ,thx i will try)
CamperBot
@camperbot
Feb 01 2016 09:17
park23 sends brownie points to @lileander :sparkles: :thumbsup: :sparkles:
:star: 258 | @lileander | http://www.freecodecamp.com/lileander
Micheal
@wordaddict
Feb 01 2016 09:18
@shameersn
Tarun prakash singh
@tpstps
Feb 01 2016 09:18

Clone your target5 element and append it to your left-well.

<script>
$(document).ready(function() {
$("#target5").clone().appendTo("#left-well");}

</script>whats wrong in it giving syntax error

Micheal
@wordaddict
Feb 01 2016 09:18
Anybody???
Shameer S N
@shameersn
Feb 01 2016 09:18
@wordaddict
<style>
.red-text {
color: red;
}
.smaller-image {
width: 100px;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}
.smaller-image{
width:100px;
}
</style>
 <img src="https://bit.ly/fcc-relaxing-cat" class="smaller-image">
Micheal
@wordaddict
Feb 01 2016 09:19
yes @shameersn
It has refused to run @shameersn
Shameer S N
@shameersn
Feb 01 2016 09:20
@tpstps closing bracket end of code

@wordaddict ```

<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;
}
.smaller-image{
width:100px;
}
</style>

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

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

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

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

Marcos Antônio de Souza Silva
@massilva
Feb 01 2016 09:22
@tpstps
<script>
$(document).ready(function() {
$("#target5").clone().appendTo("#left-well");});
</script>
Micheal
@wordaddict
Feb 01 2016 09:24
still not running @shameersn
Shameer S N
@shameersn
Feb 01 2016 09:25
@wordaddict whatis the error ??
Micheal
@wordaddict
Feb 01 2016 09:28
@shameersn Your img element should have the class smaller-image.
Your image should be 100 pixels wide. Browser zoom should be at 100%.
That is the error
budimanfix
@budimanfix
Feb 01 2016 09:29
@URobert :+1:
Shameer S N
@shameersn
Feb 01 2016 09:30
@wordaddict The above code worked for me Try reloading the page pressing ctrl+f5 then try again this code
Marcos Antônio de Souza Silva
@massilva
Feb 01 2016 09:30
@wordaddict you doing in the PC or mobile?
I had this problem in the mobile
Micheal
@wordaddict
Feb 01 2016 09:31
PC @massilva
it worked
thanks @shameersn
CamperBot
@camperbot
Feb 01 2016 09:33
wordaddict sends brownie points to @shameersn :sparkles: :thumbsup: :sparkles:
:star: 163 | @shameersn | http://www.freecodecamp.com/shameersn
Shameer S N
@shameersn
Feb 01 2016 09:34
@wordaddict try this inside.smaller-image{
width:100px;
zoom: 100%;
}
:clap:
Ceren
@Cyener
Feb 01 2016 09:35
Dear all, i am having the same issue i believe. I am on the same exercise and even though i created the class called smaller image and gave 100 pixels, i still get the same warning message saying: 1) Your img element should have the class smaller-image.
2)Your image should be 100 pixels wide.
Shameer S N
@shameersn
Feb 01 2016 09:36
@Cyener try using
zoom: 100%; inside smaller-image class
Ceren
@Cyener
Feb 01 2016 09:38
i already did, but unfortunately does not work
Shameer S N
@shameersn
Feb 01 2016 09:39
try rloading the page cntrl+f5
Micheal
@wordaddict
Feb 01 2016 09:40
@Cyener all i did was to copy and paste the code sent by @shameersn
Ceren
@Cyener
Feb 01 2016 09:45

Thank you @wordaddict indeed copying and pasting the code from @shameersn worked! I don't understand why it didn't work with my code as i also used .smaller-image{ width:100px; }
(<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;
}
.smaller-image{
width:100px;
}
</style>

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

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

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

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

CamperBot
@camperbot
Feb 01 2016 09:45
cyener sends brownie points to @wordaddict and @shameersn :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for wordaddict
:star: 168 | @shameersn | http://www.freecodecamp.com/shameersn
Shameer S N
@shameersn
Feb 01 2016 09:47
:clap:
Nikolay
@luisciphere
Feb 01 2016 09:50

// Example
var changed = 0;

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

changed = change(10);

// Setup
var processed = 0;

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

// Only change code below this line
processed = process (7);

hello! can anybody help me with this one. Goal is: You should assign process to processed

kirbyedy
@kirbyedy
Feb 01 2016 09:52
@luisciphere your processed should be a process... if that makes any sense :)
Nikolay
@luisciphere
Feb 01 2016 09:55
@kirbyedy maybe it's my poor English, but i dont get it :(
Mohit Garg
@mohitgarg
Feb 01 2016 09:56
OrderPeople([ { age: 83, name: 'joel' },
{ age: 46, name: 'roger' },
{ age: 99, name: 'vinny' },
{ age: 26, name: 'don' },
{ age: 74, name: 'brendan' } ])
guys how do i sort age in the this using array sort function?
kirbyedy
@kirbyedy
Feb 01 2016 09:56
changed = change(10); your line should be like this one @luisciphere
apply it to your case, and you will pass the challenge
André Santos
@andremsantos
Feb 01 2016 09:58
@4mohit can’t you use filter()?
Nikolay
@luisciphere
Feb 01 2016 09:58
@kirbyedy that's does not work. Instructions say: Call the process function with an argument of 7 and assign its return value to the variable processed.
maybe i need to create new function?
Mohit Garg
@mohitgarg
Feb 01 2016 10:00
@andremsantos no the condition is to use the sort function
Nikolay
@luisciphere
Feb 01 2016 10:01
@kirbyedy
var processed = process(7);
i forgot about "var" that was the problem
kirbyedy
@kirbyedy
Feb 01 2016 10:06
:)
Rafael Lin
@Rafael-Lin
Feb 01 2016 10:15
@4mohit check the code
objs = [ { age: 83, name: 'joel' },
{ age: 46, name: 'roger' },
{ age: 99, name: 'vinny' },
{ age: 26, name: 'don' },
{ age: 74, name: 'brendan' } ];

function compare(a,b) {
  if (a.age < b.age)
    return -1;
  else if (a.age > b.age)
    return 1;
  else
    return 0;
}

objs.sort(compare);
console.log( objs ) ;
it works well under my test
Nishank Yadav
@nishank04
Feb 01 2016 10:24
Hi
Can you please guide me the error in this
<script>
$(document).ready(function($("button").addClass("animated bounce") {

});
</script>
Shameer S N
@shameersn
Feb 01 2016 10:28

@nishank04 ```

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

Nishank Yadav
@nishank04
Feb 01 2016 10:30
Thanks a lot
It's fine now.
Shameer S N
@shameersn
Feb 01 2016 10:30
:)
André Santos
@andremsantos
Feb 01 2016 10:31
@4mohit sorry, back.
try this
objs.sort(function(a,b) {
  return a.age - b.age;
})
RiRiiser33
@RiRiiser33
Feb 01 2016 10:34
Hi guys, I was just wondering how you actually take screenshots of your code?
Mohit Garg
@mohitgarg
Feb 01 2016 10:34
@Rafael-Lin @andremsantos solved it already!!! thanks
CamperBot
@camperbot
Feb 01 2016 10:34
4mohit sends brownie points to @rafael-lin and @andremsantos :sparkles: :thumbsup: :sparkles:
:star: 48 | @andremsantos | http://www.freecodecamp.com/andremsantos
:star: 282 | @rafael-lin | http://www.freecodecamp.com/rafael-lin
Claudiu
@cladddd
Feb 01 2016 10:36
what is best screenshot tool?
I'm currently using shutter
33ndgr
@33ndgr
Feb 01 2016 10:50
<code>echo "Hello world"</code>
kirbyedy
@kirbyedy
Feb 01 2016 10:51
command+shift+4 if you are on mac
no need for special software
RiRiiser33
@RiRiiser33
Feb 01 2016 10:52
I figured it out. I honestly thought that the code block was a screenshot, my bad.
Nikita Voloboev
@nikitavoloboev
Feb 01 2016 11:00
2016-02-01 at 11.59.png
what do they mean here
I don’t understand
Roman Frołow
@rofrol
Feb 01 2016 11:00
you have to add css class to tag input
<input class="somename">
Nikita Voloboev
@nikitavoloboev
Feb 01 2016 11:01
all right
never mind got it :)
Tarun prakash singh
@tpstps
Feb 01 2016 11:09
<script>
$(document).ready(function() {

$(".well:nth-child(2)").addClass("bounce");


});
</script>
Make the second child in each of your well elements bounce. You must target the children of element with the target class.
why giving error?
Nikolay
@luisciphere
Feb 01 2016 11:13

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

return item; // Change this line
}

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

// Display Code
console.log("Before: " + JSON.stringify(testArr));
console.log(queue(testArr, 6)); // Modify this line to test
console.log("After: " + JSON.stringify(testArr));```
can anybody help me with this one?

message in console: function queue(arr, item) {
// Your code here

return item; // Change this line
}

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

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

sorry for this one, message in console: Range error: Maximum call stack size exceed
ARE SEE
@arethesee
Feb 01 2016 11:15
I'm having problems n<form action="/url-where-you-want-to-submit-form-data"></form>
Shameer S N
@shameersn
Feb 01 2016 11:16

@NikitaVoloboev <script>
$(document).ready(function() {

$(".target:nth-child(2)").addClass("bounce");

}); target is the class not well
</script>

ARE SEE
@arethesee
Feb 01 2016 11:16
Nest your text input element within a form element.
Make sure your form has an action attribute which is set to /submit-cat-photo
Make sure your form element has a closing tag.
I'm not sure how
Please help
Shameer S N
@shameersn
Feb 01 2016 11:17

@arethesee

<form action="/submit-cat-photo">
<input type="text" placeholder="cat photo URL">
</form>

Tarun prakash singh
@tpstps
Feb 01 2016 11:25
<script>
$(document).ready(function() {

$(".well:nth-child(2)").addClass("bounce");


});
</script>
he whats wrong with it
Make the second child in each of your well elements bounce. You must target the children of element with the target class.
Shameer S N
@shameersn
Feb 01 2016 11:27
@tpstps
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
$("#target1").parent().css("background-color", "red");
$("#right-well").children().css("color", "orange");
$('.target:nth-child(2)').addClass('animated bounce');
});
DIO
@dhrubesh
Feb 01 2016 11:31
what does "text-primary” do ?
Marcos Antônio de Souza Silva
@massilva
Feb 01 2016 11:32
@luisciphere Here, I don't see the error.
Shameer S N
@shameersn
Feb 01 2016 11:33
@dhrubesh add bootstrap style to the text ie add color to it
prira
@priyaccenture
Feb 01 2016 11:33

@shameersn <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;
}
.smaller-image {
width: 100px;
}
</style>

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

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

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

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

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

Nikolay
@luisciphere
Feb 01 2016 11:33

@massilva here is my code:

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

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

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

here is error in console: RangeError: Maximum call stack size exceeded

prira
@priyaccenture
Feb 01 2016 11:34
@shameersn tell me how to resize img
Eric Yohansa
@eyohansa
Feb 01 2016 11:34
@luisciphere Refreshing the page should fix that error.
prira
@priyaccenture
Feb 01 2016 11:34
@shameersn I ve alredy sent you the code
Shameer S N
@shameersn
Feb 01 2016 11:35
@priyaccenture
put this above style element
.smaller-image {
width: 100px;
}
Nikolay
@luisciphere
Feb 01 2016 11:35
@eyohansa i've already tried this :worried: maybe i need to close page and open again
Shameer S N
@shameersn
Feb 01 2016 11:36

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

return arr.shift(); // Change this line
}

Marcos Antônio de Souza Silva
@massilva
Feb 01 2016 11:37
This message was deleted
Nikolay
@luisciphere
Feb 01 2016 11:38
@shameersn thank you, i've restarted page and it worked
CamperBot
@camperbot
Feb 01 2016 11:38
luisciphere sends brownie points to @shameersn :sparkles: :thumbsup: :sparkles:
:star: 204 | @shameersn | http://www.freecodecamp.com/shameersn
Claudiu
@cladddd
Feb 01 2016 11:38
hello I'm having trouble with Browser Zoom Related Issue
Marcos Antônio de Souza Silva
@massilva
Feb 01 2016 11:39
@luisciphere try it:
function queue(arr, item) { // Your code here arr.push(item); return arr.shift(); }
Claudiu
@cladddd
Feb 01 2016 11:39
it does not allow me to proceed further altough zoom is set to 100%
does anybody has a workaround for this?
Marcos Antônio de Souza Silva
@massilva
Feb 01 2016 11:43
@luisciphere check if you code is calling 'queue' recursively. The error: ' stack size exceeded' is because the function is called many times.
Nikolay
@luisciphere
Feb 01 2016 11:44
@massilva i've restarted page, and now it works fine, your code above helped. Thank you!
CamperBot
@camperbot
Feb 01 2016 11:44
luisciphere sends brownie points to @massilva :sparkles: :thumbsup: :sparkles:
:star: 57 | @massilva | http://www.freecodecamp.com/massilva
SarmadBaloch
@SarmadBaloch
Feb 01 2016 11:46
Escaping Literal Quotes in Strings
how to escape literal quotes in strings? var myStr; // Change this linejs
Mona Rudao
@thwu33
Feb 01 2016 11:47
@cladddd me too, I have the same problem.
sumanrajan435
@sumanrajan435
Feb 01 2016 11:54
chnage the font size of an elementam stuck der
change the font size of an element am stuck there any help ?
Tati Ramos
@tatidesigner
Feb 01 2016 12:31
hey guys
I´ve got a problem
I´m doing de first challenge
but I stuck
Mirosław Guła
@Mmirol
Feb 01 2016 12:32
?
h1 challenge?
Tati Ramos
@tatidesigner
Feb 01 2016 12:32
I can´t complete de lasta step
ops
step
last step
Give elements with the p tag a font-size of 16px. Browser and Text zoom should be at 100%.
I´ve put
<style>
.red-text {
color: red;
font-size: 16px;
}
</style>
and the class red-text
but still not working
Mirosław Guła
@Mmirol
Feb 01 2016 12:33
<style>
.red-text {
color: red;
}
p { font-size: 16px; }
</style>
.red-text is a class not p :)
Christopher Kerr
@landofmiddlegirth
Feb 01 2016 12:34
Morning, everyone
Tati Ramos
@tatidesigner
Feb 01 2016 12:34
ok
thanks
:)
Morning
Mirosław Guła
@Mmirol
Feb 01 2016 12:35
np :)
Yuvraj Adagale
@Yuvraj1989
Feb 01 2016 12:40

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

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

h2 {
font-family: Lobster, Monospace;
}

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

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

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

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

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

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

<p>Things cats love:</p>

<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>

<p>Top 3 things cats hate:</p>

<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>

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

nest all of our HTML in a div element with the class container-fluid.
How to do it?
Christopher Kerr
@landofmiddlegirth
Feb 01 2016 12:42
I just did this. My question is why does it work. All your HTML has to be inside a <div> tag, so <div> at the beginning and </div> at the end. Then, you add the class to the first. So <div class="container-fluid">
What I don't understand is why does that work if you haven't defined "container-fluid". Unless it's already assumed. Still sorting this all out myself.
Sorry for the ramble. Long story short:
Manish Giri
@Manish-Giri
Feb 01 2016 12:43
@landofmiddlegirth the class container-fluid is one of bootstrap’s classes, which is why it works
Christopher Kerr
@landofmiddlegirth
Feb 01 2016 12:43
Gotcha. Thank you.
Yuvraj Adagale
@Yuvraj1989
Feb 01 2016 12:44
i also go it
Christopher Kerr
@landofmiddlegirth
Feb 01 2016 12:44
Sweet
Yuvraj Adagale
@Yuvraj1989
Feb 01 2016 12:44
thank you very much
anthonygallina1
@anthonygallina1
Feb 01 2016 12:46
@landofmiddlegirth bootstrap CSS frame work
nstrix17
@nstrix17
Feb 01 2016 12:46
Hello, world!
CamperBot
@camperbot
Feb 01 2016 12:46

welcome to FreeCodeCamp @nstrix17!

anthonygallina1
@anthonygallina1
Feb 01 2016 12:46
@landofmiddlegirth like a library of CSS code
@nstrix17 welcome to FreeCodeCamp
boleda
@boleda
Feb 01 2016 12:47
@thedancingslug your answer from Jan 04 was just what I needed to see on waypoint:Global vs local.... details, details. Thank you!
CamperBot
@camperbot
Feb 01 2016 12:47
boleda sends brownie points to @thedancingslug :sparkles: :thumbsup: :sparkles:
:star: 221 | @thedancingslug | http://www.freecodecamp.com/thedancingslug
Nikita Manahov
@Nikitaw99
Feb 01 2016 12:50
Hello! Could you please help?
In the challange "Import a Google Font" how do I change
<h2 class="red-text";>CatPhotoApp</h2> so that it both uses the Lobster font AND that the text remains red?
Mirosław Guła
@Mmirol
Feb 01 2016 12:52

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

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

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

here
Nikita Manahov
@Nikitaw99
Feb 01 2016 12:52
Oh.
Mirosław Guła
@Mmirol
Feb 01 2016 12:53
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css"> is for import fonts
h2 {font-family: Lobster;} is for insert that fonts into h2 tag
Nikita Manahov
@Nikitaw99
Feb 01 2016 12:53
@Mmirol do you have tanks?
CamperBot
@camperbot
Feb 01 2016 12:53
nikitaw99 sends brownie points to @mmirol :sparkles: :thumbsup: :sparkles:
:star: 38 | @mmirol | http://www.freecodecamp.com/mmirol
Christopher Kerr
@landofmiddlegirth
Feb 01 2016 13:00
I'm having some trouble with making images mobile responsive. If all of my HTML is wrapped in a div class, how do you apply a different class to an element in the middle of that code?
<div class="container-fluid">
<h2 class="red-text">CatPhotoApp</h2>

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

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


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

<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>
budimanfix
@budimanfix
Feb 01 2016 13:01
Need help for this challenge example : freecodecamp.com/challenges/convert-celsius-to-fahrenheit#?solution=function%20convert(celsius)
Christopher Kerr
@landofmiddlegirth
Feb 01 2016 13:01
I've tried <div class="img-responsive"> to the running cats pic, but it doesn't work.
budimanfix
@budimanfix
Feb 01 2016 13:04

Guys..!! why what wrong whit this my code : function convert(celsius) {
// Only change code below this
var fahrenheit = (celcius * 9) / 5 + 32;

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

Obioha Obinna Christian
@Obinnachris
Feb 01 2016 13:09
how can i practice since the site is down
help
CamperBot
@camperbot
Feb 01 2016 13:09

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

Basic Commands:

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

:speech_balloon: meet CamperBot in this room!

:pencil: read more about camperbot on the FCC Wiki

kirbyedy
@kirbyedy
Feb 01 2016 13:20
@Obinnachris which site is down ?
HARISH PANDAMANENI
@harish436
Feb 01 2016 13:36

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

// Your code above this line
return result;
}

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

wordBlanks("dog", "big", "ran", "quickly") should contain all of the passed words separated by non-word characters (and any additional words in your madlib).
wordBlanks("cat", "little", "hit", "slowly") should contain all of the passed words separated by non-word characters (and any additional words in your madlib).
can anyone help me
sukumarkutagulla
@sukumarkutagulla
Feb 01 2016 13:49
Hi @harish436 just concatenate the given parameters
Manoj Bisht
@mbmannubisht
Feb 01 2016 14:01
Hello Team Today I join this group
Marcos Antônio de Souza Silva
@massilva
Feb 01 2016 14:10
@landofmiddlegirth using .container-fluid img in the style. You can to modify the tag <img> in the tag with 'container-fluid' class.
Yohan Ninan
@obitouchiha44
Feb 01 2016 14:11
how do you add an id to a form tag in HTML ??
mrgrdsky
@mrgrdsky
Feb 01 2016 14:12
Hey guys. I have a problem. FCC does not count points for the passed challenge. and don't proceeds to the next challenge
Darla Sudheer
@sudheerdarla
Feb 01 2016 14:12
@sukumarkutagulla great move forward to complete the whole camp
Yohan Ninan
@obitouchiha44
Feb 01 2016 14:15
never mind
mrgrdsky
@mrgrdsky
Feb 01 2016 14:15
Screenshot.png
and it goes on forever
Darla Sudheer
@sudheerdarla
Feb 01 2016 14:16
ctrl + f5
@mrgrdsky
venkatesh prabhu
@venkateshprabhu2
Feb 01 2016 14:18
Hello
I need help with 'Record collection' challenge in JS
mrgrdsky
@mrgrdsky
Feb 01 2016 14:18
@sudheerdarla doesn't helps. even in another browser
maybe i should clear cookies
Darla Sudheer
@sudheerdarla
Feb 01 2016 14:19
try it might help
and also try ctrl + enter some more times
Peter Harriman
@PeteHarriman78
Feb 01 2016 14:21
@mrgrdsky I just completed the "Title case a sentence" Bonfire and it loaded the next one without any issue. Have you tried logging out then back in?
@venkateshprabhu2 where are you stuck?
venkatesh prabhu
@venkateshprabhu2
Feb 01 2016 14:23
I am unable to figure out how to access nested property value @PeteHarriman78

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

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

if((collection[id].prop[value])!=="")
return 0;

return collection;
}

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

i tried collection[id][prop][value]
I want to understand how it works with variables and accessing values with property variables
mrgrdsky
@mrgrdsky
Feb 01 2016 14:25
nothing helps :(
Peter Harriman
@PeteHarriman78
Feb 01 2016 14:25
try collection[id][prop] = value
venkatesh prabhu
@venkateshprabhu2
Feb 01 2016 14:26
'=value'??
Mohit Garg
@mohitgarg
Feb 01 2016 14:27
function factory(num) {

         var newarr =[];


    for (var i =0 ; i < 3 ; i++){


     function(param){
      newarr.push(param[i] *= num) ;          
          }
    }





    return newarr;

}


var fives = factory(5);       // returns a function - fives
var myArray = [1, 2, 3];
fives(myArray);
some one help me debugging this code?? i m getting SyntaxError: Unexpected token (
Peter Harriman
@PeteHarriman78
Feb 01 2016 14:29
value is just a variable in the function
function update(id, prop, value)
venkatesh prabhu
@venkateshprabhu2
Feb 01 2016 14:32
@PeteHarriman78 Oh yes. I am so dumb :-D got confused
thanks @PeteHarriman78
CamperBot
@camperbot
Feb 01 2016 14:32
venkateshprabhu2 sends brownie points to @peteharriman78 :sparkles: :thumbsup: :sparkles:
:star: 252 | @peteharriman78 | http://www.freecodecamp.com/peteharriman78
Peter Harriman
@PeteHarriman78
Feb 01 2016 14:33
Anytime, that's whatwe are here for :-)
venkatesh prabhu
@venkateshprabhu2
Feb 01 2016 14:36
This message was deleted
Cody Bouscaren
@codybousc
Feb 01 2016 14:46
is this portion of the answer on 'validate us telephone numbers' supposed to be given from the start?
function telephoneCheck(str) {
 var test=/^(1?(\s?|-?)((\D([2-9]\d{2}[\)]))|([2-9]\d{2}))\D?([2-9]\d{2})(\D*)(\d{4}))$/;

  return test.test(str);


}



telephoneCheck("1 555-555-5555");
i just clicked on the problem for the first time and all tests are passing except one
and this massive regex expression was provided
it also looks like the 'report a bug' button has been removed from the algorithms
Gauti
@gautamkumar94
Feb 01 2016 14:53
hey
Herman Fassett
@HermanFassett
Feb 01 2016 15:06
@codybousc can you reset code? I don't think that should be there
Sandra Lyle
@lovedata1
Feb 01 2016 15:22
Hello, I am on the Use responsive design with bootstrap. I have nested all my html. I have the div class="container-fluid". And it still will not accept my answer
I see this is a popular discussion here, what is the trick?
Mirosław Guła
@Mmirol
Feb 01 2016 15:23
@Nikitaw99 sorry i was afk, tanks?what do you mean?
CamperBot
@camperbot
Feb 01 2016 15:23
mmirol sends brownie points to @nikitaw99 :sparkles: :thumbsup: :sparkles:
:star: 72 | @nikitaw99 | http://www.freecodecamp.com/nikitaw99
Gagandeep Singh
@Guggu
Feb 01 2016 15:24

function palindrome(str) {
// Good luck!
var word = [];
str = str.toLowerCase();
for (var x = 0; x < str.length; x++) {
if (str[x].match(/[a-z]/)) {
word.push(str[x]);
}
}
return (word.join('') === word.reverse().join(''));
}

palindrome("eye");

Cody Bouscaren
@codybousc
Feb 01 2016 15:24
@HermanFassett by reset the code, do you mean refresh the page?
Herman Fassett
@HermanFassett
Feb 01 2016 15:24
@codybousc there should be a reset button somewhere
Gagandeep Singh
@Guggu
Feb 01 2016 15:24
that's my challenge and m gonna stuck in----- palindrome("1 eye for of 1 eye.") should return false.
guys pls me to resolve out
palindrome("1 eye for of 1 eye.") should return false.

function palindrome(str) {
// Good luck!
var word = [];
str = str.toLowerCase();
for (var x = 0; x < str.length; x++) {
if (str[x].match(/[a-z]/)) {
word.push(str[x]);
}
}
return (word.join('') === word.reverse().join(''));
}

palindrome("eye");

Cody Bouscaren
@codybousc
Feb 01 2016 15:26
@HermanFassett a yeah, didn't see that
that did it
i should probably report it, ehh?
not sure why that was happening
Sandra Lyle
@lovedata1
Feb 01 2016 15:28
Hello, I am on the Use responsive design with bootstrap. I have nested all my html. I have the div class="container-fluid". And it still will not accept my answer.
Sherlock Holmes
@SherlcokHolmes
Feb 01 2016 15:29
can i change the font size of an element by using font-size attribute with in the opening tag of a paragraph?
Herman Fassett
@HermanFassett
Feb 01 2016 15:29
@codybousc yeah that's odd, if you had maybe put some code in there some time ago it would have stayed
Nikita Manahov
@Nikitaw99
Feb 01 2016 15:34

mmirol sends brownie points to @nikitaw99 :sparkles: :thumbsup: :sparkles:

XD

Robert Pietrzykowski
@Rambosiek
Feb 01 2016 15:36
Hello, I have a problem with sending my answers. When I try to send one, pop-ups says that task had been done perfectly but when I try go to next task notthing happen.
Cody Bouscaren
@codybousc
Feb 01 2016 15:39
@HermanFassett i'd like to think that's what happened, but i'm still pretty weak with regex so i doubt it was me ;)
Pranav Doshi
@pranavdoshi
Feb 01 2016 15:39
wassup guys
:)
Cody Bouscaren
@codybousc
Feb 01 2016 15:39
maybe i'm a regex master in my sleep?
Marcos Antônio de Souza Silva
@massilva
Feb 01 2016 15:41
@Rambosiek restart the browser.
Robert Pietrzykowski
@Rambosiek
Feb 01 2016 15:42
@massilva I've tried that twice and I used to send my tasks on Chrome and Edge still not working.
Herman Fassett
@HermanFassett
Feb 01 2016 15:49
@codybousc hahah :P maybe
Nicholas
@DaRealElmo
Feb 01 2016 15:49
when you do a checkbox and you add a class does it go in the label tag or inside the input? please help
valkukatov
@valkukatov
Feb 01 2016 15:55
Anyone know why it says (unreachable 'break' after 'return') at a lesson such as Adding a default option in Switch statements , where working with switch and cases? Using console.log will resolve the break issue, but it won't count as assigning values to each case.
And the exercise will pass even with that warning, but why is the warning there?
Aleksander Gębicki
@Takumar
Feb 01 2016 16:01
@valkukatov because that's what for are warnings, to warn you that your break instruction will be never executed if you call return statement earlier! What's use of code that is never run?
Either change your code, to return value outside switch() statement or remove break which is not needed.
valkukatov
@valkukatov
Feb 01 2016 16:03
@Takumar it's asking for break in statements though to pass the code.
Sherlock Holmes
@SherlcokHolmes
Feb 01 2016 16:03
"Make Dead Links using the Hash Symbol
Sometimes you want to add a elements to your website before you know where they will link"
why the f* would i want to do that?
Fahad Tariq
@fahadsheikh32
Feb 01 2016 16:03
Guys! please tell me what front-end web development languages is best for choose in 2016?
Aleksander Gębicki
@Takumar
Feb 01 2016 16:04
@valkukatov show your code, maybe you use return not necessary in your switch() statement?
Anuj Thakur
@Anuj-786
Feb 01 2016 16:05
I think you have to start with react.js and react-native and angular.js
valkukatov
@valkukatov
Feb 01 2016 16:05

@Takumar This is the exercise right before the one I'm mentioning, same thing: ```
function myTest(val) {
var answer = "";
// Only change code below this line
switch (val){
case 1:
return "alpha";
break;

case 2:
  return "beta";
  break;

case 3:
  return "gamma";
  break;

case 4:
  return "delta";

}

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

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

```

crap
Aleksander Gębicki
@Takumar</