These are chat archives for FreeCodeCamp/Help

26th
Jan 2016
TheKingIsHere
@TheKingIsHere
Jan 26 2016 00:00
@agbales I just refreshed the page and it still states that I did not satisfy the H1 element with the class "pink-test"
jpg8127
@jpg8127
Jan 26 2016 00:01
@max77p [\W\d] maybe.................? I just did that without trying it so not sure if it would work
FearOfGod
@FearOfGod
Jan 26 2016 00:01
Having trouble with the uncomment section
William
@derpmanwilliam
Jan 26 2016 00:01
just delete the comments XD
Andrew Bales
@agbales
Jan 26 2016 00:02
@TheKingIsHere Hm. What's the name of the waypoint?
(question name)
TheKingIsHere
@TheKingIsHere
Jan 26 2016 00:02
@agbales Prioritize One Style Over Another
Andrew Bales
@agbales
Jan 26 2016 00:03
Let me go take a quick look.
TheKingIsHere
@TheKingIsHere
Jan 26 2016 00:03
Ok
FearOfGod
@FearOfGod
Jan 26 2016 00:03
<!--
<h1>Hello World</h1>

<h2>CatPhotoApp</h2>

<p>Hello Paragraph</p>
-->
myJavascript
@myJavascript
Jan 26 2016 00:03
Exactly how does one get assistance with a particular section ?
FearOfGod
@FearOfGod
Jan 26 2016 00:04
how to properly uncomment this?
Fred
@FredBMe
Jan 26 2016 00:04
@max77p oh sorry about that, you can do something like s.replace(/[^A-Za-z]/g, "");
Andrew Bales
@agbales
Jan 26 2016 00:04
@TheKingIsHere Your code should work fine. Perhaps we're missing a small typo? Here's mine for reference:
<style>
  body {
    background-color: black;
    font-family: Monospace;
    color: green;
  }

  .pink-text {
    color: pink;
  }
</style>
<h1 class="pink-text">Hello World!</h1>
Fred
@FredBMe
Jan 26 2016 00:04
it replaces everything that is not a letter with an empty string
jpg8127
@jpg8127
Jan 26 2016 00:05
@FearOfGod remove the <--- and stuff
FearOfGod
@FearOfGod
Jan 26 2016 00:05
@jpg8127 thank you
CamperBot
@camperbot
Jan 26 2016 00:05
fearofgod sends brownie points to @jpg8127 :sparkles: :thumbsup: :sparkles:
:star: 306 | @jpg8127 | http://www.freecodecamp.com/jpg8127
TheKingIsHere
@TheKingIsHere
Jan 26 2016 00:05
@FearOfGod take off the special character at the beginning and end
max77p
@max77p
Jan 26 2016 00:05
@FredBMe you are a savior lol
FearOfGod
@FearOfGod
Jan 26 2016 00:05
@TheKingIsHere appreciate it
TheKingIsHere
@TheKingIsHere
Jan 26 2016 00:05
@agbales I see it
@agbales thanks
CamperBot
@camperbot
Jan 26 2016 00:05
thekingishere sends brownie points to @agbales :sparkles: :thumbsup: :sparkles:
:star: 310 | @agbales | http://www.freecodecamp.com/agbales
max77p
@max77p
Jan 26 2016 00:05
@FredBMe i can't seem to understand when to put the escape sequence
do you know?
William
@derpmanwilliam
Jan 26 2016 00:06
max
escape?
how far down are you lol
max77p
@max77p
Jan 26 2016 00:06
/ this one
i am at ceasars ciper...i am actually done the first zipline..but caesars was added recently so going back to finish it
William
@derpmanwilliam
Jan 26 2016 00:06
ah
that
lol
not there yet ;-;
Fred
@FredBMe
Jan 26 2016 00:09
@max77p haha, I was working on Ceasar's Cipher the other day and I couldn't pass one test case. Maybe I'll try to go back to it today. Not sure what you're meaning on where to put the escape sequence.
max77p
@max77p
Jan 26 2016 00:10
@FredBMe /[^a-zA-z]/g in this code....do you always use / before and after?
when using regexp?
Haroon Ghawsi
@HaroonGhawsi
Jan 26 2016 00:11
Hi All, how to add multiple backgrounds one after another in CSS? Can anyone help me please?
William
@derpmanwilliam
Jan 26 2016 00:11
sure
what are you on intermediate or reg?
Brian
@sludge256
Jan 26 2016 00:12
@HaroonGhawsi you can add them to your divs
William
@derpmanwilliam
Jan 26 2016 00:12
@HaroonGhawsi
dangit slude
i just wanted to know ;-; lol
Brian
@sludge256
Jan 26 2016 00:15
He can still answer :P
Fred
@FredBMe
Jan 26 2016 00:16
@max77p yeah, that's to denote the pattern to look for
@max77p sorry, still at work, so I'm slow on the response
max77p
@max77p
Jan 26 2016 00:18
@FredBMe no worries, thanks for the help!
CamperBot
@camperbot
Jan 26 2016 00:18
max77p sends brownie points to @fredbme :sparkles: :thumbsup: :sparkles:
:warning: max77p already gave fredbme points
Fred
@FredBMe
Jan 26 2016 00:18
@max77p sure thing, anytime
Haroon Ghawsi
@HaroonGhawsi
Jan 26 2016 00:21

@sludge256 Thanks, this is my CSS code for the background.

body {
    background-image: url("4.jpg"), url("images/sm.jpg");
    -moz-background-size: cover;
    -webkit-background-size: cover;
    background-size: cover;
    background-position: top center !important, bottom center;
    background-repeat: no-repeat !important, repeat;
}

This is working fine but with only first background image. The other is not working.

I am not using div in html
Brian
@sludge256
Jan 26 2016 00:22
oh i see
I'm about to leave but it might be nice if you could post a CodePen of it or something to make it easier to help out
the top line looks correct though
aaronK
@aaronk73
Jan 26 2016 00:28
@rphares thank you
CamperBot
@camperbot
Jan 26 2016 00:28
aaronk73 sends brownie points to @rphares :sparkles: :thumbsup: :sparkles:
:star: 1993 | @rphares | http://www.freecodecamp.com/rphares
rphares
@rphares
Jan 26 2016 00:28
anytime! :)
MatiKid
@MatiKid
Jan 26 2016 00:36
Can I refer to Object1 method inside an Object2 method?
like this
function Object2() = {
    this.method = function(x) {
        Object1.otherMethod(x);
    }
}
Ramiro
@ramiroching
Jan 26 2016 01:09
HI
Daniel Cleveland
@dpcleveland
Jan 26 2016 01:21
help bootstrap
CamperBot
@camperbot
Jan 26 2016 01:21

:point_right: bootstrap [wiki]

A frontend CSS framework.

You can find out more here

related: css, frameworks

:pencil: read more about bootstrap on the FCC Wiki

Shahariar Touhid
@shahariar50
Jan 26 2016 01:37
hi everybody........
Amy Surrett
@CaptainShadow
Jan 26 2016 01:44
hello @shahariar50 :smile:
Shahariar Touhid
@shahariar50
Jan 26 2016 01:46
i need help....do u help me?
Eric Whittaker Jr
@ericwhittakerjr
Jan 26 2016 01:49
bonfire returning longest string in array
CamperBot
@camperbot
Jan 26 2016 01:49
Sorry, can't find a bonfire called returning longest string in array. [ Check the map? ]
Bill
@kirah1314
Jan 26 2016 01:49
@shahariar50 what do you need help with? Help us to help you by being more specific?
Rae
@cs-knight
Jan 26 2016 01:49
<div class="well">
        <div class="button"></div>
        <div class="button"></div>
        <div class="button"></div>
Eric Whittaker Jr
@ericwhittakerjr
Jan 26 2016 01:50
bonfire returning largest numbers in arrays
CamperBot
@camperbot
Jan 26 2016 01:50
Sorry, can't find a bonfire called returning largest numbers in arrays. [ Check the map? ]
Rae
@cs-knight
Jan 26 2016 01:50
trying to nest 3x button elements
Bill
@kirah1314
Jan 26 2016 01:50
@csrae what's the challenge title?
Rae
@cs-knight
Jan 26 2016 01:50
Add Elements within your Bootstrap Wells
Eric Whittaker Jr
@ericwhittakerjr
Jan 26 2016 01:50
bonfire Return Largest Numbers in Arrays
CamperBot
@camperbot
Jan 26 2016 01:50

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

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

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

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

more info:  bf details | bf links | hint

Eric Whittaker Jr
@ericwhittakerjr
Jan 26 2016 01:50
hint
CamperBot
@camperbot
Jan 26 2016 01:50
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
Shahariar Touhid
@shahariar50
Jan 26 2016 01:51
it is my prob....(Your p element should have the text "View more " (with a space after it). my code is http://www.freecodecamp.com/shahariar50
Bill
@kirah1314
Jan 26 2016 01:52
@csrae you're nesting div elements but you should be nesting button elements
@csrae button elements look like this <button>...</button>
Rae
@cs-knight
Jan 26 2016 01:52
@kirah1314 thanks
CamperBot
@camperbot
Jan 26 2016 01:52
csrae sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 860 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Bill
@kirah1314
Jan 26 2016 01:53
@shahariar50 can you copy and paste your code here?
Shahariar Touhid
@shahariar50
Jan 26 2016 01:53
nop
@kirah1314
Bill
@kirah1314
Jan 26 2016 01:57
@shahariar50 sorry I won't be of any help if you don't copy and paste your codes here
This is my code
Bill
@kirah1314
Jan 26 2016 01:58
that is your profile
Rae
@cs-knight
Jan 26 2016 01:59
<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <div class="well">
        <btn class="btn-default"></btn>
        <btn class="btn-default"></btn>
        <btn class="btn-default"></btn>
      </div>
    </div>
    <div class="col-xs-6">
      <div class="well">
        <btn class="btn-default"></btn>
        <btn class="btn-default"></btn>
        <btn class="btn-default"></btn>  </div>
    </div>
  </div>
</div>
Bill
@kirah1314
Jan 26 2016 01:59
@csrae btn isn't an element, you have to use button
Rae
@cs-knight
Jan 26 2016 02:00
@kirah1314 thanks
CamperBot
@camperbot
Jan 26 2016 02:00
csrae sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:warning: csrae already gave kirah1314 points
Shahariar Touhid
@shahariar50
Jan 26 2016 02:01
yes @kirah1314
Rae
@cs-knight
Jan 26 2016 02:01

like this ?```html

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<div class="well">
<button class="btn-default"></button>
<button class="btn-default"></button>
<button class="btn-default"></button>
</div>
</div>
<div class="col-xs-6">
<div class="well">
<button class="btn-default"></button>
<button class="btn-default"></button>
<button class="btn-default"></button> </div>
</div>
</div>
</div>
```

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <div class="well">
        <button class="btn-default"></button>
        <button class="btn-default"></button>
        <button class="btn-default"></button>
      </div>
    </div>
    <div class="col-xs-6">
      <div class="well">
        <button class="btn-default"></button>
        <button class="btn-default"></button>
        <button class="btn-default"></button>  </div>
    </div>
  </div>
</div>
Ctrprt253
@Ctrprt253
Jan 26 2016 02:02
how do I post a scree s
how do I post a screenshot of my code?
Bill
@kirah1314
Jan 26 2016 02:02
@csrae yes something like that, did it pass?
Rae
@cs-knight
Jan 26 2016 02:02
@kirah1314 no
Bill
@kirah1314
Jan 26 2016 02:03
help format
CamperBot
@camperbot
Jan 26 2016 02:03

: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

Bill
@kirah1314
Jan 26 2016 02:03
@Ctrprt253 :point_up_2:
@csrae try removing the class in the buttons
Ctrprt253
@Ctrprt253
Jan 26 2016 02:03
thx :)
Rae
@cs-knight
Jan 26 2016 02:04
@kirah1314 no i lost a checkpoint when I remove class
Bill
@kirah1314
Jan 26 2016 02:05
@csrae I would suggest to reset and redo it and add
<button></button>
<button></button>
<button></button>
Rae
@cs-knight
Jan 26 2016 02:06
do I just add btn-default there?
Bill
@kirah1314
Jan 26 2016 02:06
@csrae there's no need to add any class since the instructions didn't ask for it right?
Rae
@cs-knight
Jan 26 2016 02:06
yes
<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <div class="well">
        <button> btn-default</button>
        <button> btn-default</button>
        <button> btn-default</button>
      </div>
    </div>
    <div class="col-xs-6">
      <div class="well">
        <button> btn-default</button>
        <button> btn-default</button>
        <button> btn-default</button>
      </div>
    </div>
  </div>
</div>
Bill
@kirah1314
Jan 26 2016 02:09
@csrae it passed?
Rae
@cs-knight
Jan 26 2016 02:09
no
Shahariar Touhid
@shahariar50
Jan 26 2016 02:09
@kirah1314 are u see my fault?
Ctrprt253
@Ctrprt253
Jan 26 2016 02:10

`< .gray-background {
background-color: gray;
}
</style>

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

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

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

<div class=:"gray-background">>`

Bill
@kirah1314
Jan 26 2016 02:10
@csrae hhmm your codes look good and it passed for me, try to refresh your page and if it doesn't work then it's a good idea to skip it and move to the next one
Terrell Potts (aka Trizzen Stealthkin)
@Trizzen
Jan 26 2016 02:10
Hey friends...easy question here. Give a h1 element a css class?
Ctrprt253
@Ctrprt253
Jan 26 2016 02:10
well, do I need to use the code block or inline code formatting?
Terrell Potts (aka Trizzen Stealthkin)
@Trizzen
Jan 26 2016 02:11
How do I give an h1 element a css class?
Will G
@willgorham
Jan 26 2016 02:11
@Trizzen <h1 class="yourClassGoesHere">
Rae
@cs-knight
Jan 26 2016 02:11
@kirah1314 okay
Terrell Potts (aka Trizzen Stealthkin)
@Trizzen
Jan 26 2016 02:12
Thanks @willgorham +1!
CamperBot
@camperbot
Jan 26 2016 02:12
trizzen sends brownie points to @willgorham :sparkles: :thumbsup: :sparkles:
:star: 433 | @willgorham | http://www.freecodecamp.com/willgorham
Bill
@kirah1314
Jan 26 2016 02:12
@Ctrprt253 what did the challenge ask to do?
Will G
@willgorham
Jan 26 2016 02:13
@Ctrprt253 you have an extra colon (:) between class= and gray-background
Manish Giri
@Manish-Giri
Jan 26 2016 02:13

@Ctrprt253 the syntax is wrong here

<div class=:"gray-background">>`

it should be

<div class=“gray-background”></div>
Will G
@willgorham
Jan 26 2016 02:13
@Trizzen no problem :+1:
Ctrprt253
@Ctrprt253
Jan 26 2016 02:13
there my problem goes, thx +1
James Kemp
@JamesKemp296
Jan 26 2016 02:15

Using each of the above jQuery selectors and the addClass() function:

Add the animated class to all elements with type button.

Add the shake class to all the buttons with class .btn.

Add the btn-primary class to the button with id #target1.

is this not right?
$("button").addclass("anmated");
$(".btn").assclass("shake");
$("#target1").addclass("btn-primary");
Ctrprt253
@Ctrprt253
Jan 26 2016 02:16
thanks @Manish-Giri and thanks @willgorham
CamperBot
@camperbot
Jan 26 2016 02:16
ctrprt253 sends brownie points to @manish-giri and @willgorham :sparkles: :thumbsup: :sparkles:
:star: 434 | @willgorham | http://www.freecodecamp.com/willgorham
greg
@wearenotgroot
Jan 26 2016 02:16
@JamesKemp296 :+1:
CamperBot
@camperbot
Jan 26 2016 02:16
:star: 606 | @manish-giri | http://www.freecodecamp.com/manish-giri
Will G
@willgorham
Jan 26 2016 02:17
@JamesKemp296 you need to capitalize C in Class
so addClass not addclass
and addClass not assClass haha
and spell animated with an i
greg
@wearenotgroot
Jan 26 2016 02:17
@willgorham lol, just notice that------------> assclass then shake :):
Will G
@willgorham
Jan 26 2016 02:18
haha :laughing:
Rex Schrader
@SaintPeter
Jan 26 2016 02:19
.assClass {
   size:  yourMom;
}
:P
greg
@wearenotgroot
Jan 26 2016 02:19
:clap:
Will G
@willgorham
Jan 26 2016 02:19
oh damn :worried:
SaintPeter @SaintPeter : keepin' it classy
Jason
@Jauble
Jan 26 2016 02:20
hey @SaintPeter
Rex Schrader
@SaintPeter
Jan 26 2016 02:20
Hey Hey
James Kemp
@JamesKemp296
Jan 26 2016 02:20
@willgorham thats it, thanks!
CamperBot
@camperbot
Jan 26 2016 02:20
jameskemp296 sends brownie points to @willgorham :sparkles: :thumbsup: :sparkles:
:star: 435 | @willgorham | http://www.freecodecamp.com/willgorham
Terrell Potts (aka Trizzen Stealthkin)
@Trizzen
Jan 26 2016 02:21

I need my h1 element to turn pink here....but I can't figure out what I'm missing? <style>
body {
background-color: black;
font-family: Monospace;
color: green;
}

pink-text {

color:pink;

}

</style>

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

Will G
@willgorham
Jan 26 2016 02:21
@JamesKemp296 no worries! :+1: sorry you had to lose your assclass
@Trizzen to define a class style (between the <style> tags) you need to start the class name with a dot (.)
so .pink-text { stuff }
Terrell Potts (aka Trizzen Stealthkin)
@Trizzen
Jan 26 2016 02:23
Thanks again @willgorham +100
CamperBot
@camperbot
Jan 26 2016 02:23
trizzen sends brownie points to @willgorham :sparkles: :thumbsup: :sparkles:
:warning: trizzen already gave willgorham points
InspireHD
@InspireHD
Jan 26 2016 02:46
I don't know if this is answerable, but I'm just getting started....how does adding <div class="(class name)" create the class to the entire HTML?
Rae
@cs-knight
Jan 26 2016 02:46
<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <h4 class=#left-well></h4>
      <div class="well" id="left-well">
        <button class="btn btn-default target"></button>
        <button class="btn btn-default target"></button>
        <button class="btn btn-default target"></button>
      </div>
    </div>
    <div class="col-xs-6">
      <h4 class=#right-well></h4>

      <div class="well" id="right-well">
        <button class="btn btn-default target"></button>
        <button class="btn btn-default target"></button>
        <button class="btn btn-default target"></button>
      </div>
    </div>
  </div>
</div>
InspireHD
@InspireHD
Jan 26 2016 02:47
I thought I had to start a class like .red-text{}
Rex Schrader
@SaintPeter
Jan 26 2016 02:47
@InspireHD That does not. It just assigns the class to that specific element. What creates it for the whole doc is the stuff in between the <style> tags.
@InspireHD Yes, in between the stlye tags:
<style>
  .someClass {
    color: blue;
  }
</style>
InspireHD
@InspireHD
Jan 26 2016 02:49
I was just doing the container fluid lesson, but wasn't sure how to add the class to <div> just by typing <div class=".... I thought I would have had to do <div>.container-fluid{ }
I tried it with the <div class="container-fluid"> and it worked
Rex Schrader
@SaintPeter
Jan 26 2016 02:53
@InspireHD ooooohhh - Your're doing Bootstrap - it's a CSS framework that has a bunch of stuff pre-defined for you!
@InspireHD So you're just using classes that Bootstrap provides.
InspireHD
@InspireHD
Jan 26 2016 02:55
Hmm..ok. I guess I'm getting class/element and everything else confused
i had a little break today so I'm catching back up again
Jason
@Jauble
Jan 26 2016 02:56
Anyone know an easy place to upload and host a website for free? Apparently you cant do that with wordpress or wix?
Rex Schrader
@SaintPeter
Jan 26 2016 02:57
@Jauble GitHub can do static pages.
@Jauble Look up "GitHub Pages"
Jason
@Jauble
Jan 26 2016 02:58
I'll check that out. But i'd like to have audio and some js
Rex Schrader
@SaintPeter
Jan 26 2016 03:06
@Jauble You can do that, I think. You just couldn't do server-side stuff.
Jason
@Jauble
Jan 26 2016 03:08
Oh ok thanks @SaintPeter
CamperBot
@camperbot
Jan 26 2016 03:08
jauble sends brownie points to @saintpeter :sparkles: :thumbsup: :sparkles:
:star: 2389 | @saintpeter | http://www.freecodecamp.com/saintpeter
Utkarsh Bhimte
@Utkarshbhimte
Jan 26 2016 03:30
 var curName = cid[i][0];
    var curAmt = +cid[i][1].toFixed(2);
I am doing this inside a for loop and getting this error?
TypeError: Cannot read property '0' of undefined.
function drawer(price, cash, cid) {
var change= +(cash-price).toFixed(2);

  var a=[0.01,0.05,0.10,0.25,1.00,5.00,10.00,20.00,100.00]; 

  var totalCid=cid.map(function(money){
    return money[1];
  }).reduce(function(a,b){
    return a+b;
  }).toFixed(2);

  if(change>totalCid){
    return "Insufficient Funds";
  } else if(change===totalCid){
    return "Closed";
  }else{

  for(var i= 8;i>=0;i++){

    var curName = cid[i][0];
    var curAmt = +cid[i][1].toFixed(2);
    var count=0;

  }

  }

return totalCid;
}

// Example cash-in-drawer array:
// [["PENNY", 1.01],
// ["NICKEL", 2.05],
// ["DIME", 3.10],
// ["QUARTER", 4.25],
// ["ONE", 90.00],
// ["FIVE", 55.00],
// ["TEN", 20.00],
// ["TWENTY", 60.00],
// ["ONE HUNDRED", 100.00]]

drawer(19.50, 20.00, [["PENNY", 1.01], ["NICKEL", 2.05], ["DIME", 3.10], ["QUARTER", 4.25], ["ONE", 90.00], ["FIVE", 55.00], ["TEN", 20.00], ["TWENTY", 60.00], ["ONE HUNDRED", 100.00]]);
Elifaz Filho
@Elifaz
Jan 26 2016 03:35
wiki Sum All Odd Fibonacci Numbers
CamperBot
@camperbot
Jan 26 2016 03:35

:point_right: bonfire sum all odd fibonacci numbers [wiki]

Explanation:

You will need to gather all the Fibonacci numbers and then check for the odd ones. Once you get the odd ones then you will add them all. The last number should be the number given as a parameter if it actually happens to be an off Fibonacci number.

:pencil: read more about bonfire sum all odd fibonacci numbers on the FCC Wiki

Devi
@Devi999
Jan 26 2016 03:39
hi
Ryan
@ashket
Jan 26 2016 03:42
Hi @Devi999 Welcome!
Rae
@cs-knight
Jan 26 2016 03:43
<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <h4 class=#left-well></h4>
      <div class="well" id="left-well">
        <button class="btn btn-default target"></button>
        <button class="btn btn-default target"></button>
        <button class="btn btn-default target"></button>
      </div>
    </div>
    <div class="col-xs-6">
      <h4 class=#right-well></h4>

      <div class="well" id="right-well">
        <button class="btn btn-default target"></button>
        <button class="btn btn-default target"></button>
        <button class="btn btn-default target"></button>
      </div>
    </div>
  </div>
</div>
not sure how to add #left-well and #right-well
Shahid Foy
@shahidfoy
Jan 26 2016 03:43
@Jauble there is also https://www.000webhost.com/
Rae
@cs-knight
Jan 26 2016 03:44
under H4 class
Devi
@Devi999
Jan 26 2016 03:44
thanks @ashket
CamperBot
@camperbot
Jan 26 2016 03:44
devi999 sends brownie points to @ashket :sparkles: :thumbsup: :sparkles:
:star: 274 | @ashket | http://www.freecodecamp.com/ashket
cannelflow
@cannelflow
Jan 26 2016 03:44
@csrae which exercise ?
Rae
@cs-knight
Jan 26 2016 03:45
@cannelflow Label Bootstrap Wells
Ryan
@ashket
Jan 26 2016 03:46
find label bootstrap wells
CamperBot
@camperbot
Jan 26 2016 03:46

find label bootstrap wells

:zero: waypoint label bootstrap wells

Devi
@Devi999
Jan 26 2016 03:47
i have quick question regarding the target the same element with multiple jQuery Selectors. How to achieve this usecase- Only add one class with each of your three selectors.??
Rae
@cs-knight
Jan 26 2016 03:47

@ashket ```html

<h4 class=#left-well></h4>
```

<h4 class=#left-well></h4>
cannelflow
@cannelflow
Jan 26 2016 03:47
@csrae you did <h4 class=#left-well></h4> but is asked One h4 element should have the text #left-well.
similrly for right
@Devi999 which exercise ?
Rae
@cs-knight
Jan 26 2016 03:48
@cannelflow
<h4 class=#right-well></h4>
like this?
Jason
@Jauble
Jan 26 2016 03:49
thanks @shahidfoy
CamperBot
@camperbot
Jan 26 2016 03:49
jauble sends brownie points to @shahidfoy :sparkles: :thumbsup: :sparkles:
:star: 350 | @shahidfoy | http://www.freecodecamp.com/shahidfoy
cannelflow
@cannelflow
Jan 26 2016 03:49

@csrae ```html

<h4 >#right-well</h4>
```

like this for other @csrae
read carefullt One h4 element should have the text #left-well.
it didn't asked for class
Rae
@cs-knight
Jan 26 2016 03:50
@cannelflow thanks
CamperBot
@camperbot
Jan 26 2016 03:50
csrae sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:star: 553 | @cannelflow | http://www.freecodecamp.com/cannelflow
cannelflow
@cannelflow
Jan 26 2016 03:50
@csrae :+1:
TheKingIsHere
@TheKingIsHere
Jan 26 2016 03:54
could i get help, I am not sure where I went wrong?
<style>
  body {
    background-color: black;
    font-family: Monospace;
    color: green;
  }
  .pink-text {
    color: pink;
  }

  .blue-text {
    color: blue;
  }
</style>
<h1 class="blue-text" "pink-text">Hello World!</h1>
cannelflow
@cannelflow
Jan 26 2016 03:55
@TheKingIsHere which exercise ?
TheKingIsHere
@TheKingIsHere
Jan 26 2016 03:56
Override styles in subsequent css
Bill
@kirah1314
Jan 26 2016 03:56
@TheKingIsHere "blue-text" "pink-text" when you want 2 classes, you just need a space between them like this "blue-text pink-text"
cannelflow
@cannelflow
Jan 26 2016 03:56
@TheKingIsHere for adding two class do like class="a b"
TheKingIsHere
@TheKingIsHere
Jan 26 2016 03:56
@kirah1314 thanks
CamperBot
@camperbot
Jan 26 2016 03:56
thekingishere sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 864 | @kirah1314 | http://www.freecodecamp.com/kirah1314
TheKingIsHere
@TheKingIsHere
Jan 26 2016 03:57
@cannelflow thanks
CamperBot
@camperbot
Jan 26 2016 03:57
thekingishere sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:star: 555 | @cannelflow | http://www.freecodecamp.com/cannelflow
Haroon Ghawsi
@HaroonGhawsi
Jan 26 2016 03:59
Hi, how to add more html and css pages in codepen?
cannelflow
@cannelflow
Jan 26 2016 04:00
@HaroonGhawsi their is +new pen at the top
go to your profile or home page
Haroon Ghawsi
@HaroonGhawsi
Jan 26 2016 04:05
@cannelflow alright. thanks
CamperBot
@camperbot
Jan 26 2016 04:05
haroonghawsi sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:star: 556 | @cannelflow | http://www.freecodecamp.com/cannelflow
Haroon Ghawsi
@HaroonGhawsi
Jan 26 2016 04:09
@cannelflow The new pen will be linked in the same project or it will a completely new pen?
I have multiple html pages to link with index
cannelflow
@cannelflow
Jan 26 2016 04:09
@HaroonGhawsi it is new one
multiple html page to link with index.html?
Haroon Ghawsi
@HaroonGhawsi
Jan 26 2016 04:12
@cannelflow yes
Haroon Ghawsi
@HaroonGhawsi
Jan 26 2016 04:13
working on my portfolio project and I have multiple pages such as about us, portfolio and contact
thanks
@cannelflow kool
@cannelflow Do you know how include all the pages in one HTML file? http://codepen.io/FreeCodeCamp/full/VemmoX/.
cannelflow
@cannelflow
Jan 26 2016 04:14
@HaroonGhawsi so you are not making single sroll 1 page then
@HaroonGhawsi this is single page website
Haroon Ghawsi
@HaroonGhawsi
Jan 26 2016 04:15
I am trying to do that actually but initially I have made seperate pages
@cannelflow yes, but I am trying to search how to make that
cannelflow
@cannelflow
Jan 26 2016 04:16
above pen is single page
@HaroonGhawsi i guess make each make for everything like service portfolio give them some url like index2.html or anything and link them to nav bar
but you can't make it in codepen i guess
you can try using https://c9.io/
Haroon Ghawsi
@HaroonGhawsi
Jan 26 2016 04:19
@cannelflow I have made in webstorm and I think to update it in codepen when it is completely finished

This is my code for linking the pages
'''

<nav class="nav navbar-inverse">
<div class="container-fluid">
<form class="nav form-inline">
<ul class="nav navbar-nav navbar-left">
<li>
<a href="#">Haroon Ghawsi</a>
</li>
</ul>
<div class="nav1">
<div class="nav navbar-nav navbar-right">
<li><a href="#">Home</a></li>
<li><a href="About.html">About</a></li>
<li><a href="Profiles.html">Portfolio</a></li>
<li><a href="Contact.html">Contact</a></li>
</div>
</div>
</form>
</div>
</nav>
'''

CamperBot
@camperbot
Jan 26 2016 04:19
:bulb: to format code use backticks! ``` more info
Haroon Ghawsi
@HaroonGhawsi
Jan 26 2016 04:20
'''
CamperBot
@camperbot
Jan 26 2016 04:20
:bulb: to format code use backticks! ``` more info
Haroon Ghawsi
@HaroonGhawsi
Jan 26 2016 04:20
<nav class="nav navbar-inverse">
    <div class="container-fluid">
        <form class="nav form-inline">
            <ul class="nav navbar-nav navbar-left">
                <li>
                    <a href="#">Haroon Ghawsi</a>
                </li>
            </ul>
            <div class="nav1">
        <div class="nav navbar-nav navbar-right">
            <li><a  href="#">Home</a></li>
            <li><a  href="About.html">About</a></li>
            <li><a  href="Profiles.html">Portfolio</a></li>
            <li><a  href="Contact.html">Contact</a></li>
        </div>
            </div>
        </form>
    </div>
</nav>
@cannelflow
cannelflow
@cannelflow
Jan 26 2016 04:21
@HaroonGhawsi got you
i also don't know how to add other html file in same pen @HaroonGhawsi
Haroon Ghawsi
@HaroonGhawsi
Jan 26 2016 04:23
@cannelflow No probs. Thanks
CamperBot
@camperbot
Jan 26 2016 04:23
haroonghawsi sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:warning: haroonghawsi already gave cannelflow points
cannelflow
@cannelflow
Jan 26 2016 04:23
@HaroonGhawsi perhaps can ask some one else
Haroon Ghawsi
@HaroonGhawsi
Jan 26 2016 04:24
sure
<link rel="stylesheet" type="text/css" href="/Styles/index.css" media="all" />
@cannelflow I have shifted my css files in Styles folder of same directory but some how its not working. could you please check below the code if I am wrong let me know. ```
cannelflow
@cannelflow
Jan 26 2016 04:28
looks f9 to me @HaroonGhawsi
Haroon Ghawsi
@HaroonGhawsi
Jan 26 2016 04:30
@cannelflow I dnt know why not working
Haroon Ghawsi
@HaroonGhawsi
Jan 26 2016 04:33
@cannelflow Thank you
CamperBot
@camperbot
Jan 26 2016 04:33
haroonghawsi sends brownie points to @cannelflow :sparkles: :thumbsup: :sparkles:
:warning: haroonghawsi already gave cannelflow points
cannelflow
@cannelflow
Jan 26 2016 04:34
@HaroonGhawsi :+1:
Ying
@Webpolice
Jan 26 2016 04:37

```int snow={0,10,20,30,21,11,2,5,9};
int temp={11,20,30,40,50,22,33,12};

int temp
If (snow>20)&&(temp<20);{ System.out.println("Oh terrible!"); else if (snow<20);{ System.out.println("still cold"); else if(temp>20);{
system.out.println("oh that's nice~");
}
}
}

```

what's wrong with that java code please?
Will G
@willgorham
Jan 26 2016 04:55
@Webpolice should be if (snow > 20 && temp < 20)
and no semicolons between the closing parentheses ) and opening curly braces { in your conditionals
Ying
@Webpolice
Jan 26 2016 04:57

@willgorham int snow=25;

While (snow>20){
snow=snow--;
System.out.println("Oh terrible!");}
}

System.out.println("oh that's nice~");
hi i now changed the code....

and still don't work....
Will G
@willgorham
Jan 26 2016 04:58
snow-- is the same as snow = snow -1 (or snow -= 1), so you don't need the extra snow= at the start of the line
sorry if that's confusing
the line should just be snow--;
lavieb33
@lavieb33
Jan 26 2016 04:58
further explanation for this please, what does exactly the problem asks?Use the playerNumber variable to lookup player 16 in testObj using bracket notation
Will G
@willgorham
Jan 26 2016 04:59
you also have an extra curly brace after 'Oh terrible!');
@lavieb33 What is the title of the problem you're on?
lavieb33
@lavieb33
Jan 26 2016 04:59

@lavieb33 ```// Setup
var testObj = {
12: "Namath",
16: "Montana",
19: "Unitas"
};

// Only change code below this line;

var testObj = [playerNumber]; // Change this Line
var player = testObj; // Change this Line
```

Dora
@DoraEx
Jan 26 2016 05:00
Hi, I'm stuck on the Mutations challenge. For some reason it's not checking the last letter of the string
 function mutation(arr) {

   arr[0]=arr[0].toLowerCase();
   arr[1]=arr[1].toLowerCase();

   for (var i = 0; i < arr[1].length; i++)
     if( arr[0].indexOf(arr[1][i]) == -1){
       return false;
   } else return true;
}

mutation(["mary", "armys"]);
lavieb33
@lavieb33
Jan 26 2016 05:00
@willgorham Accessing Objects Properties with Variables
@DoraEx hey tell me how do you get to post this screen in here?
B Manoj Kumar
@bmkmanoj
Jan 26 2016 05:02
Hi @/all. We have created a repository to learn and understand JavaScript through Q&A and explanation. Let me know your thoughts on the content and if you like it - do star it. :smile:
Link: https://github.com/bmkmanoj/js-by-examples
Will G
@willgorham
Jan 26 2016 05:02
@lavieb33 wiki format
help format ?
CamperBot
@camperbot
Jan 26 2016 05:03
no wiki entry for: format
Dora
@DoraEx
Jan 26 2016 05:03
@lavieb33 three ``` on the line before and the line after the code
Will G
@willgorham
Jan 26 2016 05:03
how does this work, haha
help format
CamperBot
@camperbot
Jan 26 2016 05:03

: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

Will G
@willgorham
Jan 26 2016 05:04
there we go @lavieb33 ^
Dora
@DoraEx
Jan 26 2016 05:04
anyone have any ideas on my mutation problem?
Will G
@willgorham
Jan 26 2016 05:05
@lavieb33 The instructions for that are confusing. It's asking you to set playerNumber to the number you want to look up. And then use that variable to loop up the value of playerNumber in myObj.
did that make sense?
@DoraEx one sec- I'll look
Dora
@DoraEx
Jan 26 2016 05:06
i feel like im missing something simple...
Chris Dziewa
@chrisdziewa
Jan 26 2016 05:06
@DoraEx give me a moment
Bill
@kirah1314
Jan 26 2016 05:07
@DoraEx return true outside of your loop
Michael Lorimer
@mclorimer
Jan 26 2016 05:07
Hey guys. I'm working on a capostone project. I'm having a problem with the animation on my social media sharing buttons. When the user hovers over them, there's a black little dot to the right of the icon. What is that and how do I get rid of it? Thanks in advance. Here's the link to the project: http://codepen.io/mclorimer/pen/pgpwjE
Will G
@willgorham
Jan 26 2016 05:09
@DoraEx you're missing some curly braces
Dora
@DoraEx
Jan 26 2016 05:10
@willgorham ahh
lavieb33
@lavieb33
Jan 26 2016 05:11
code
Will G
@willgorham
Jan 26 2016 05:11
And you don't need an else before your return - like @kirah1314 said, return true outside the for loop, so you check everything first
Bill
@kirah1314
Jan 26 2016 05:11
This message was deleted
lavieb33
@lavieb33
Jan 26 2016 05:11

```// Setup
var testObj = {
12: "Namath",
16: "Montana",
19: "Unitas"
};

// Only change code below this line;

var testObj = [playerNumber]; // Change this Line
var player = testObj; ```

Dora
@DoraEx
Jan 26 2016 05:12
@willgorham Thanks :) and with that imma go to sleep
@kirah1314 I just wanted to change the original i didn't care about storing them in another variable
CamperBot
@camperbot
Jan 26 2016 05:12
doraex sends brownie points to @willgorham and @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 441 | @willgorham | http://www.freecodecamp.com/willgorham
:star: 866 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Bill
@kirah1314
Jan 26 2016 05:13
@lavieb33 set playerNumber to a number then use playerNumber as a variable to find the value of that number
Will G
@willgorham
Jan 26 2016 05:13
@lavieb33 you're over thinking it a bit, I think. First set playerNumber to 16.
Bill
@kirah1314
Jan 26 2016 05:13
@DoraEx ah ok, cool beans!
Michael Lorimer
@mclorimer
Jan 26 2016 05:14
@willgorham or @kirah1314 can y'all help me out a bit? :)
Will G
@willgorham
Jan 26 2016 05:14
@mclorimer sure thing - what's up?
Michael Lorimer
@mclorimer
Jan 26 2016 05:15
I'm working on a capostone project. I'm having a problem with the animation on my social media sharing buttons. When the user hovers over them, there's a black little dot to the right of the icon. What is that and how do I get rid of it? Thanks in advance. Here's the link to the project: http://codepen.io/mclorimer/pen/pgpwjE
lavieb33
@lavieb33
Jan 26 2016 05:15
@willgorham let me try and see
Will G
@willgorham
Jan 26 2016 05:17
@mclorimer hmm, it looks like that's a link being underlined on hover.
Michael Lorimer
@mclorimer
Jan 26 2016 05:17
So how do I get rid of it?
Will G
@willgorham
Jan 26 2016 05:18
bootstrap CSS underlines all <a> elements on hover, so you'll need to override.
If you don't want any links to underline you can just do this:
a:hover {
 text-decoration: none;
}
in your CSS
or you could target it a little more specifically
like #share-buttons a:hover
Michael Lorimer
@mclorimer
Jan 26 2016 05:19
thank you so much!
thanks @willgorham
CamperBot
@camperbot
Jan 26 2016 05:19
mclorimer sends brownie points to @willgorham :sparkles: :thumbsup: :sparkles:
Will G
@willgorham
Jan 26 2016 05:19
no worries!
CamperBot
@camperbot
Jan 26 2016 05:19
:star: 442 | @willgorham | http://www.freecodecamp.com/willgorham
Michael Lorimer
@mclorimer
Jan 26 2016 05:19
:))))
Will G
@willgorham
Jan 26 2016 05:19
happy to help :)
Franco Zapata
@Francozt01
Jan 26 2016 05:19
lavieb33
@lavieb33
Jan 26 2016 05:20
@willgorham it makes sens now , thanks
CamperBot
@camperbot
Jan 26 2016 05:20
lavieb33 sends brownie points to @willgorham :sparkles: :thumbsup: :sparkles:
:star: 443 | @willgorham | http://www.freecodecamp.com/willgorham
Zozo
@zozoaco
Jan 26 2016 05:21
Screen Shot 2016-01-25 at 9.20.28 PM.png
Explanation of this is confusing me?
Chris Dziewa
@chrisdziewa
Jan 26 2016 05:22
@zozoaco you want a to be equal to 7. Then set b equal to a
Zozo
@zozoaco
Jan 26 2016 05:22
Wow, I was making that really overcomplicated.
Thank-you @chrisdziewa
CamperBot
@camperbot
Jan 26 2016 05:23
zozoaco sends brownie points to @chrisdziewa :sparkles: :thumbsup: :sparkles:
:star: 484 | @chrisdziewa | http://www.freecodecamp.com/chrisdziewa
Chris Dziewa
@chrisdziewa
Jan 26 2016 05:23
@zozoaco wording can be harder than the problem :P
Jason Lee
@JsonLitz
Jan 26 2016 05:38
Hey guys, I need some help with "Convert Celcius to Fahrenheit (#148)
function convert(celsius) {
  // Only change code below this line
  var fahrenheit;
 var a = 30;
var b = 9/5;
var c = 32;

farenheit = a * b + c 


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

// Change the inputs below to test your code
convert(30);
"
second "fahrenheit" fixed
Still not working
Chris Dziewa
@chrisdziewa
Jan 26 2016 05:40
@JsonLitz do you have the link to that challenge?
Jason Lee
@JsonLitz
Jan 26 2016 05:40
Is there a way to provide a short link? When I copy and paste the address it inundates the room with a wall of text @chrisdziewa
Chris Dziewa
@chrisdziewa
Jan 26 2016 05:40
it shouldn't
anthonygallina1
@anthonygallina1
Jan 26 2016 05:41
@JsonLitz bitly.com
Chris Dziewa
@chrisdziewa
Jan 26 2016 05:41
@JsonLitz nvm I found it
Michael Poutre
@M1kep
Jan 26 2016 05:41
PERSISTENCE
Whoops
Chris Dziewa
@chrisdziewa
Jan 26 2016 05:41
Jason Lee
@JsonLitz
Jan 26 2016 05:41
@anthonygallina1 You're the man!
Michael Poutre
@M1kep
Jan 26 2016 05:41
Was gonna say, https://goo.gl/
anthonygallina1
@anthonygallina1
Jan 26 2016 05:41
:)
Michael Poutre
@M1kep
Jan 26 2016 05:42
But is it giving you an error?
Raghuram
@Raghuram42
Jan 26 2016 05:42
@JsonLitz u remove a
Chris Dziewa
@chrisdziewa
Jan 26 2016 05:42
all the extra stuff is unimportant. Normally free code camp has regex on their links
Raghuram
@Raghuram42
Jan 26 2016 05:42
because celsius must be at a
Chris Dziewa
@chrisdziewa
Jan 26 2016 05:43
@JsonLitz spelled fahrenheit wrong
Jason Lee
@JsonLitz
Jan 26 2016 05:44
@Raghuram42 can you expand please?
Will G
@willgorham
Jan 26 2016 05:44
@JsonLitz you're not using the function input (the variable 'celsius') at all.
Jason Lee
@JsonLitz
Jan 26 2016 05:44
@chrisdziewa I fixed that and added the semi
Will G
@willgorham
Jan 26 2016 05:44
you need to take the input, and then manipulate it however you want
in this case, use the example formula
Chris Dziewa
@chrisdziewa
Jan 26 2016 05:45
@JsonLitz fahrenheit = celsius * b + c;
Will G
@willgorham
Jan 26 2016 05:45
otherwise your function is converting 30deg C to F over and over, instead of applying it to the input
Jason Lee
@JsonLitz
Jan 26 2016 05:48
@willgorham Sorry, I'm not quite grasping what you're saying, but it seems very important that I do. Why would it continue to convert C to F? Shouldn't the code run once and end?
@chrisdziewa Thanks!
CamperBot
@camperbot
Jan 26 2016 05:48
jsonlitz sends brownie points to @chrisdziewa :sparkles: :thumbsup: :sparkles:
:star: 486 | @chrisdziewa | http://www.freecodecamp.com/chrisdziewa
Michael Poutre
@M1kep
Jan 26 2016 05:49
Is there a help thing about the whole brownie points system,?
Chris Dziewa
@chrisdziewa
Jan 26 2016 05:49
@JsonLitz he was saying that you hardcoded the value for 30
and that no matter what the tests pass in to run your function, you will always get the same response
so the tests wouldn't pass
Jason Lee
@JsonLitz
Jan 26 2016 05:49
ohhhhhhh @chrisdziewa @willgorham
Thank you @chrisdziewa @willgorham
CamperBot
@camperbot
Jan 26 2016 05:49
jsonlitz sends brownie points to @chrisdziewa and @willgorham :sparkles: :thumbsup: :sparkles:
:warning: jsonlitz already gave chrisdziewa points
:star: 448 | @willgorham | http://www.freecodecamp.com/willgorham
Chris Dziewa
@chrisdziewa
Jan 26 2016 05:51
@JsonLitz you bet!
Jason Lee
@JsonLitz
Jan 26 2016 05:51
Wooooooooooord! Wow I was stuck on that for so long. Thanks guys! :smile:
Will G
@willgorham
Jan 26 2016 06:02
@JsonLitz glad to help!
@chrisdziewa thanks for the clarification :+1:
CamperBot
@camperbot
Jan 26 2016 06:02
willgorham sends brownie points to @chrisdziewa :sparkles: :thumbsup: :sparkles:
:star: 487 | @chrisdziewa | http://www.freecodecamp.com/chrisdziewa
Michael Poutre
@M1kep
Jan 26 2016 06:06
```
```
<style>
  .red-text {
    color: red;
    p {
      font-size: 16px;
    }
  }
</style>
Why doesnt this work?
srinjay
@srinjay
Jan 26 2016 06:07
what is not workng?
the color or the size?
Michael Poutre
@M1kep
Jan 26 2016 06:07
That should make all paragraph elements with the class of red-text have font size 16 right?
Will G
@willgorham
Jan 26 2016 06:07
@M1kep you need to close your .red-text braces before starting the p style
srinjay
@srinjay
Jan 26 2016 06:07
yup
because it is adifferent class
Michael Poutre
@M1kep
Jan 26 2016 06:08
Hrm, so you cant set different elements in classes?
Will G
@willgorham
Jan 26 2016 06:08
and then add class='red-text' to you <p> tags
srinjay
@srinjay
Jan 26 2016 06:08
yes
Jason Lee
@JsonLitz
Jan 26 2016 06:09
@M1kep as stated above, your "red-text { " doesn't have a "}"
Will G
@willgorham
Jan 26 2016 06:09
you can do that if you write p.red-text{styles} but it's not asking you to do that
Jason Lee
@JsonLitz
Jan 26 2016 06:09
gotta close that on before you add another style
Will G
@willgorham
Jan 26 2016 06:10
@M1kep
<style>
  .red-text {
    color: red;
}  <---------this guy
    p {
      font-size: 16px;
    }
  } <--------- minus this guy
</style>
Eric Yohansa
@eyohansa
Jan 26 2016 06:11
Also remove the last closing brace.
Will G
@willgorham
Jan 26 2016 06:11
true, good catch
Michael Poutre
@M1kep
Jan 26 2016 06:17
Thanks @willgorham @JsonLitz @srinjay
Ultimately what I was looking for was the p.red-text
CamperBot
@camperbot
Jan 26 2016 06:17
m1kep sends brownie points to @willgorham and @jsonlitz and @srinjay :sparkles: :thumbsup: :sparkles:
:star: 450 | @willgorham | http://www.freecodecamp.com/willgorham
:star: 151 | @jsonlitz | http://www.freecodecamp.com/jsonlitz
:star: 18 | @srinjay | http://www.freecodecamp.com/srinjay
Michael Poutre
@M1kep
Jan 26 2016 06:17
Oh and thank you @eyohansa for catching that brace :)
CamperBot
@camperbot
Jan 26 2016 06:17
m1kep sends brownie points to @eyohansa :sparkles: :thumbsup: :sparkles:
:star: 184 | @eyohansa | http://www.freecodecamp.com/eyohansa
Eric Yohansa
@eyohansa
Jan 26 2016 06:17
Yw :smile:
Jason Lee
@JsonLitz
Jan 26 2016 06:18
Oh ok NP!
Will G
@willgorham
Jan 26 2016 06:20
@M1kep :+1: ultimately that works, but it's not how they wanted you to solve the problem. make sure you know how to have two separate styles in your CSS going forward because your life will be way easier (though the next challenge will show you how the last one should look :smile: )
Michael Poutre
@M1kep
Jan 26 2016 06:24
:O You can import fonts from links O.o oh my. Coming from a background of java/python web programmin has always been odd to me
Michael Poutre
@M1kep
Jan 26 2016 06:34
I think I broke it
  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 10;
  }
I know that should say px
Nvm.. im dumb it was the px
cannelflow
@cannelflow
Jan 26 2016 06:39
@M1kep ?
Michael Poutre
@M1kep
Jan 26 2016 06:40
I thouhg I'd broke it by entering 500px cause it stopped working after that, but when i pasted it here i realized id been forgetting the px after the 10
Almazbeck Dzhuma
@almazzi
Jan 26 2016 06:44
hello world
CamperBot
@camperbot
Jan 26 2016 06:44

welcome to FreeCodeCamp @almazzi!

sharnold83
@sharnold83
Jan 26 2016 06:46
Hello world!
CamperBot
@camperbot
Jan 26 2016 06:46

welcome to FreeCodeCamp @sharnold83!

Jason Lee
@JsonLitz
Jan 26 2016 06:50
Why don't I need quotations around "myName" when I'm concatenating this string?
var myName = "jasonLee";
var myStr = "My name is " + myName + " and I am swell!";
Darla Sudheer
@sudheerdarla
Jan 26 2016 06:51
because it is variable not a string. @JsonLitz
Will G
@willgorham
Jan 26 2016 06:51
@JsonLitz myName is the name of a variable
Jason Lee
@JsonLitz
Jan 26 2016 06:51
Because I already previously defined it as a variable?
Darla Sudheer
@sudheerdarla
Jan 26 2016 06:51
exactly!!
Jason Lee
@JsonLitz
Jan 26 2016 06:51
Thanks @willgorham @sudheerdarla
CamperBot
@camperbot
Jan 26 2016 06:51
jsonlitz sends brownie points to @willgorham and @sudheerdarla :sparkles: :thumbsup: :sparkles:
Will G
@willgorham
Jan 26 2016 06:51
if it had quotes around it myStr would just equal "My name is myName and I am swell!"
CamperBot
@camperbot
Jan 26 2016 06:51
:star: 452 | @willgorham | http://www.freecodecamp.com/willgorham
:star: 157 | @sudheerdarla | http://www.freecodecamp.com/sudheerdarla
park23
@park23
Jan 26 2016 06:57
how skip if i already know html
Darla Sudheer
@sudheerdarla
Jan 26 2016 06:59
I think we have to complete all the problems..
and i think their community need to know that you know html..
Jason
@Jauble
Jan 26 2016 06:59
Anyone know how I can get my "toggle snow" button and audio player to line up? http://codepen.io/auble220/pen/WrMmEb/
Christopher Loyd
@bluefalconloyd
Jan 26 2016 06:59
@park23 You can just click on the Map menu option at the top and select what course/subject you'd like to start with.
park23
@park23
Jan 26 2016 07:00
@bluefalconloyd ty dude
Michael Poutre
@M1kep
Jan 26 2016 07:01
G'night
Darla Sudheer
@sudheerdarla
Jan 26 2016 07:01
@bluefalconloyd what about the certification ..I think we need to complete all the tasks for getting certificate..
Christopher Loyd
@bluefalconloyd
Jan 26 2016 07:03
@sudheerdarla For the cert, I believe you'd need to complete all of the exercises. The HTML portion of the certification isn't long - if you already know it - you should be able to breeze through the challenges.
Darla Sudheer
@sudheerdarla
Jan 26 2016 07:04
@bluefalconloyd I know that..that's why I suggested to @park23 to complete them too..
park23
@park23
Jan 26 2016 07:05
@sudheerdarla kk, i'm complete them later)
Kouty
@koouty
Jan 26 2016 07:13
I want to make the calculator in zipline.
We see that it is possible to fork and that's all.
What is the guideline?
The request is to build an algorithm?
I don't know the "spirit of Zipline".
Jason
@Jauble
Jan 26 2016 07:44
thanks @dhruvdutt
CamperBot
@camperbot
Jan 26 2016 07:44
jauble sends brownie points to @dhruvdutt :sparkles: :thumbsup: :sparkles:
:star: 12 | @dhruvdutt | http://www.freecodecamp.com/dhruvdutt
Igor Šumonja
@igor-sumonja
Jan 26 2016 07:46
@koouty you need to build everything from scratch
so no forking... write everything from beginning to end
CJ
@oastjc
Jan 26 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;
  }

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

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

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

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

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

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

<form action="/submit-cat-photo">
  <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> Outdoor</label>
  <label><input type="checkbox" name="personality" checked> Loving</label>
  <label><input type="checkbox" name="personality"> Lazy</label>
  <label><input type="checkbox" name="personality"> Energetic</label>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>
im stuck with Create a class called gray-background with the background-color of gray. Assign this class to your div element.
Shahariar Touhid
@shahariar50
Jan 26 2016 07:50
hlw everyone......
CJ
@oastjc
Jan 26 2016 07:51
where do i add?
Shahariar Touhid
@shahariar50
Jan 26 2016 07:53
i need some help
Greg Klein
@gregkleintv
Jan 26 2016 08:02
what do you need help with?
@shahariar50 ?
Shahariar Touhid
@shahariar50
Jan 26 2016 08:10
i need this help(Make Dead Links using the Hash Symbol) my code is http://www.freecodecamp.com/shahariar50
anthonygallina1
@anthonygallina1
Jan 26 2016 08:14
< a href ="http://#></a>
thats a dead link
Eric Yohansa
@eyohansa
Jan 26 2016 08:15
@oastjc Create the class in style and add it to your div.
<style>
.classname {
}
</style>
<div class="classname"></div>
Praveen
@prawin20
Jan 26 2016 08:16
@anthonygallina1 is <a href ="#"></a> ?
Jason
@Jauble
Jan 26 2016 08:16
Anyone know if there is somewhere I can set up a site, like wix, yola, weebly, and have it direct to one of my codepens without showing the codepen link?
Shahariar Touhid
@shahariar50
Jan 26 2016 08:19
@anthonygallina1 @prawin20 sorry it did not work........
Praveen
@prawin20
Jan 26 2016 08:22
@shahariar50 please paste your code... Not the link...
anthonygallina1
@anthonygallina1
Jan 26 2016 08:23
@shahariar50 yes bot format
format
camperbot
Shahariar Touhid
@shahariar50
Jan 26 2016 08:23
how can i find my code?
Greg Klein
@gregkleintv
Jan 26 2016 08:25
is the stuff in the black box
anthonygallina1
@anthonygallina1
Jan 26 2016 08:25
copy paste formated
over here please @shahariar50
Shahariar Touhid
@shahariar50
Jan 26 2016 08:26
what?
anthonygallina1
@anthonygallina1
Jan 26 2016 08:27
the stuff in the black box
Greg Klein
@gregkleintv
Jan 26 2016 08:28
Select it with your mouse, CONTROL C, click where yo u wanna paste it, CONTROL V
or right click instead of using the control shortcuts
or screencap it and juts send an image
anthonygallina1
@anthonygallina1
Jan 26 2016 08:30
@gregkleintv whats the command to have bot show format again?
Eran Finkle
@finklez
Jan 26 2016 08:37
wiki format
CamperBot
@camperbot
Jan 26 2016 08:37

: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

Eran Finkle
@finklez
Jan 26 2016 08:37
help camperbot
grr, what was it..
Greg Klein
@gregkleintv
Jan 26 2016 08:38
!help
CamperBot
@camperbot
Jan 26 2016 08:38

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

Eran Finkle
@finklez
Jan 26 2016 08:38
camperbot help
@gregkleintv thanks :D
CamperBot
@camperbot
Jan 26 2016 08:38
finklez sends brownie points to @gregkleintv :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for gregkleintv
Greg Klein
@gregkleintv
Jan 26 2016 08:38
i guessed lol :P
Eran Finkle
@finklez
Jan 26 2016 08:38
you're invisible
Greg Klein
@gregkleintv
Jan 26 2016 08:38
same as Discord's
hmm i just made account
Eran Finkle
@finklez
Jan 26 2016 08:39
did you link it to github?
Greg Klein
@gregkleintv
Jan 26 2016 08:39
yeah
Eran Finkle
@finklez
Jan 26 2016 08:39
weird
did you log in to FCC using github?
Greg Klein
@gregkleintv
Jan 26 2016 08:39
yeah think so
ill try the windows app
what do u mean invisible
Eran Finkle
@finklez
Jan 26 2016 08:40
@camperbot
> finklez sends brownie points to @gregkleintv :sparkles: :thumbsup: :sparkles: 
> :warning: could not find receiver for gregkleintv
Greg Klein
@gregkleintv
Jan 26 2016 08:40
oh hmm
maybe need to verify email or something
Eran Finkle
@finklez
Jan 26 2016 08:40
no cookies for you
anthonygallina1
@anthonygallina1
Jan 26 2016 08:45
@shahariar50 < a href ="http://#"></a>
Brian Durbin
@mrdurbin85
Jan 26 2016 08:50
I really need some help if anyone is available...
I'm suppose to be creating a class called "smaller-image" and resizing it to 100 pixels and I just don't know where I'm off...
Eran Finkle
@finklez
Jan 26 2016 08:52
@mrdurbin85 paste what you've done so far inside ```
wiki format
wiki format
CamperBot
@camperbot
Jan 26 2016 08:53

: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

lavieb33
@lavieb33
Jan 26 2016 08:54
Modify the function checkObj to test myObj for checkProp. If the property is found, return that property's value. If not, return "Not Found"

what is wrong with my code here: // Setup
var myObj = {
gift: "pony",
pet: "kitten",
bed: "sleigh"
};

function checkObj(checkProp) {
// Your Code Here
checkProp.hasOwnProperty(" gift");
checkProp.hasOwnProperty(" pet");
checkProp.hasOwnProperty(" bed");
return "Change Me!";
}

// Test your code by modifying these values
checkObj("gift");

Eran Finkle
@finklez
Jan 26 2016 08:56
@lavieb33 look inside the function, the return code is just a string, you need to check the prop and return its value
think maybe to assign your hasproperty checks to a var and return it
sanwalatta
@sanwalatta
Jan 26 2016 09:00
how can we give the id to h1 element
Greg Klein
@gregkleintv
Jan 26 2016 09:00
read the code
Umer Ihthisham
@ihthisham
Jan 26 2016 09:07
anybody know how to solve the stand in line question?
anthonygallina1
@anthonygallina1
Jan 26 2016 09:11
@ihthisham yes
Umer Ihthisham
@ihthisham
Jan 26 2016 09:11
Can you pleas explain? @anthonygallina1
anthonygallina1
@anthonygallina1
Jan 26 2016 09:12
?
Ulan
@NextgenerationKG
Jan 26 2016 09:13
how do you post pictures of coding here?
just copy and pasting?
anthonygallina1
@anthonygallina1
Jan 26 2016 09:14
@NextgenerationKG yes you can copy past a screen capture
@ihthisham Lets see your code.
Aleksander Gębicki
@Takumar
Jan 26 2016 09:15
@NextgenerationKG most people don't post pictures but they paste text formatted using ``` backticks
Code as text, you can read, run, which you cannot do with picture :-)
lavieb33
@lavieb33
Jan 26 2016 09:15
@finklez further explanation if you could .. you mean the problem is with the return statement?
Aleksander Gębicki
@Takumar
Jan 26 2016 09:16
Hello @anthonygallina1
anthonygallina1
@anthonygallina1
Jan 26 2016 09:16
@Takumar hi yup most people do.
Ulan
@NextgenerationKG
Jan 26 2016 09:16

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

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

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

Eran Finkle
@finklez
Jan 26 2016 09:16
@lavieb33 look at the return, your checks are correct but you don't return the value
function checkObj(checkProp) {
// Your Code Here
checkProp.hasOwnProperty(" gift");
checkProp.hasOwnProperty(" pet");
checkProp.hasOwnProperty(" bed");
return "Change Me!";
}
Ulan
@NextgenerationKG
Jan 26 2016 09:16
when cpoy and paste happens this)))
Eran Finkle
@finklez
Jan 26 2016 09:17
@lavieb33 there's a clue there..'change me'..
Aleksander Gębicki
@Takumar
Jan 26 2016 09:17

@NextgenerationKG write three backticks before and after your code:
```
your code
```

Then your code will look like this:

<style>
.red-text {
color: red;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
Eran Finkle
@finklez
Jan 26 2016 09:17
wiki format
CamperBot
@camperbot
Jan 26 2016 09:17

:point_right: code formatting [wiki]

Inline code

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

Code Block

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

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

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

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

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

Kristjan
@developing-coder
Jan 26 2016 09:19
Does anyone know why FCCs editor doesn't accept let as a function?
let myFunction = (a, b) => {
    console.log(a + b);
};
CamperBot
@camperbot
Jan 26 2016 09:19
:bulb: to format code use backticks! ``` more info
anthonygallina1
@anthonygallina1
Jan 26 2016 09:19
@NextgenerationKG yes back ticks the key under the escape key is the back tick key. Then press Ctrl enter. Then paste your code. Then 3 back ticks and then finally Ctrl enter key
ah wiki format
Eran Finkle
@finklez
Jan 26 2016 09:22
@anthonygallina1 shift + enter
anthonygallina1
@anthonygallina1
Jan 26 2016 09:23
yup thats correct @finklez
Eran Finkle
@finklez
Jan 26 2016 09:24
@developing-coder strict mode?
Kristjan
@developing-coder
Jan 26 2016 09:24
I haven't specified it... should I?
Eran Finkle
@finklez
Jan 26 2016 09:25
think so
this is what i get in console
Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode(…)
Greg Klein
@gregkleintv
Jan 26 2016 09:26

Not sure what im doing wrong: <link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

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

h2 {
font-family: Lobster, Monospace;
}

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

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

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

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

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

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

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

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

reqs left are "Your a element should be nested within your new p element." and "Your p element should have the text "View more " (with a space after it)."
Kristjan
@developing-coder
Jan 26 2016 09:27
@finklez that's interesting, will look into it, thanks
CamperBot
@camperbot
Jan 26 2016 09:27
developing-coder sends brownie points to @finklez :sparkles: :thumbsup: :sparkles:
:star: 313 | @finklez | http://www.freecodecamp.com/finklez
Aleksander Gębicki
@Takumar
Jan 26 2016 09:27

@gregkleintv you should modify existing link:

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

This below heading <h2>
not add another one at the end!

Eran Finkle
@finklez
Jan 26 2016 09:29
@developing-coder ES6 is still not fully supported, even on modern browsers
http://caniuse.com/#search=let
IE11, Edge, FF >= 44 have support
Chrome all versions atm and Opera require strict mode
Safari no support at all
Ulan
@NextgenerationKG
Jan 26 2016 09:31
''' @anthonygallina1 @Takumar thanks a lot, i have different keyboard but anyway i will learn from wiki))
CamperBot
@camperbot
Jan 26 2016 09:31
nextgenerationkg sends brownie points to @anthonygallina1 and @takumar :sparkles: :thumbsup: :sparkles:
:star: 675 | @anthonygallina1 | http://www.freecodecamp.com/anthonygallina1
:star: 1905 | @takumar | http://www.freecodecamp.com/takumar
anthonygallina1
@anthonygallina1
Jan 26 2016 09:32
@NextgenerationKG thank you
CamperBot
@camperbot
Jan 26 2016 09:32
anthonygallina1 sends brownie points to @nextgenerationkg :sparkles: :thumbsup: :sparkles:
Kristjan
@developing-coder
Jan 26 2016 09:32
@finklez thanks for pointing that out. I guess it's more relevant on the server side with Node.js
CamperBot
@camperbot
Jan 26 2016 09:32
:star: 18 | @nextgenerationkg | http://www.freecodecamp.com/nextgenerationkg
Eran Finkle
@finklez
Jan 26 2016 09:33
@developing-coder i don't know nodeJS..yet, this stuff exists there?
Kristjan
@developing-coder
Jan 26 2016 09:35
Node is just a JS interpreter installed on the server
so there are no compat issues as long as it's up to date
Ahmed Elsersy
@sersy
Jan 26 2016 09:37
Change Text Inside an Element Using jQuery
Change Text Inside an Element Using jQuery
Ulan
@NextgenerationKG
Jan 26 2016 09:42
can i sign out and continue where i stoped? i have other things to do now...
Ayorinde
@Ayorinde
Jan 26 2016 09:42
@sersy what's your question about that challenge?
Ahmed Elsersy
@sersy
Jan 26 2016 09:43
Italicize the text in your target4 button by adding HTML tags
idk
Ayorinde
@Ayorinde
Jan 26 2016 09:43
@sersy let's see what you've done
Ahmed Elsersy
@sersy
Jan 26 2016 09:44
$("#target4").text("target4");
Ayorinde
@Ayorinde
Jan 26 2016 09:45
@sersy use .html("...") instead
@sersy you are to italize the text
@sersy check how it was done in the example given in the challenge
Ahmed Elsersy
@sersy
Jan 26 2016 09:46
ok
aabdylda
@aabdylda
Jan 26 2016 09:50
hello guys "Create a Bootstrap Button" is this the right code?
<a class="btn"> Like</a>
Aleksander Gębicki
@Takumar
Jan 26 2016 09:53
@sersy also the text on your button is #target4 not "target4".
@aabdylda no, buttons are created using <button> tag, not "a"
You have used correct class, but change tags to <button></button>
aabdylda
@aabdylda
Jan 26 2016 09:54
@Takumar thanks a lot! just realized it
CamperBot
@camperbot
Jan 26 2016 09:54
aabdylda sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 1906 | @takumar | http://www.freecodecamp.com/takumar
lavieb33
@lavieb33
Jan 26 2016 09:56

@finklez // Setup
var myObj = {
gift: "pony",
pet: "kitten",
bed: "sleigh"
};

function checkObj(checkProp) {
// Your Code Here
var checkPro;
checkProp.hasOwnProperty(" gift");
checkProp.hasOwnProperty(" pet");
checkProp.hasOwnProperty(" bed");
return checkProp;
}

// Test your code by modifying these values
checkObj("gift"); not working still

Aleksander Gębicki
@Takumar
Jan 26 2016 09:57
@lavieb33 you shouldn't hard code strings in your function. That's why your function have parameter checkProp - you should use it inside your function instead of "gift", "pet", "bed".
You also should check if property exists in myObj object
Use if() {} condition to check if property exists, property of myObj.hasOwnProperty(checkProp);
Eran Finkle
@finklez
Jan 26 2016 09:59

@lavieb33 see what @Takumar said, but also think of what is missing here:

var checkPro;
checkProp.hasOwnProperty(" gift");
checkProp.hasOwnProperty(" pet");
checkProp.hasOwnProperty(" bed");
return checkProp;

what is the value in checkPro?

Nuttyto
@nuttyto
Jan 26 2016 10:00
Okgdxvhe
Eran Finkle
@finklez
Jan 26 2016 10:00
@lavieb33 and note you have empty space in your strings " gift", it will break your code
park23
@park23
Jan 26 2016 10:06
help npm test section, i'm called test with not standart name and this write me can find 'myname'
CamperBot
@camperbot
Jan 26 2016 10:06
no wiki entry for: npm test section im called test with not standart name and this write me can find myname
Shahariar Touhid
@shahariar50
Jan 26 2016 10:06
find java
Shahariar Touhid
@shahariar50
Jan 26 2016 10:07
find html
Greg Klein
@gregkleintv
Jan 26 2016 10:07
i dont even
Nuttyto
@nuttyto
Jan 26 2016 10:07
L matgdv
park23
@park23
Jan 26 2016 10:08
help npm test section
CamperBot
@camperbot
Jan 26 2016 10:08
no wiki entry for: npm test section
Shahariar Touhid
@shahariar50
Jan 26 2016 10:08
find css
Shahariar Touhid
@shahariar50
Jan 26 2016 10:10
I need some help.....
cannelflow
@cannelflow
Jan 26 2016 10:11
@shahariar50
anthonygallina1
@anthonygallina1
Jan 26 2016 10:11
@shahariar50 with your code
cannelflow
@cannelflow
Jan 26 2016 10:11
?
Shahariar Touhid
@shahariar50
Jan 26 2016 10:12
2
CamperBot
@camperbot
Jan 26 2016 10:12

:point_right: waypoint ditch custom css for bootstrap [wiki]

Ditch Custom CSS for Bootstrap

We can clean up our code and make our Cat Photo App look more conventional by using Bootstrap's built-in styles instead of the custom styles we created earlier.

All you need to know is the built in classes.

:pencil: read more about waypoint ditch custom css for bootstrap on the FCC Wiki

You need help with code @cannelflow ?
Shahariar Touhid
@shahariar50
Jan 26 2016 10:12
29
lavieb33
@lavieb33
Jan 26 2016 10:12
@Takumar my fault . here is the problem instruction: Modify the function checkObj to test myObj for checkProp. If the property is found, return that property's value. If not, return "Not Found"
cannelflow
@cannelflow
Jan 26 2016 10:13
@ltr7 sry i was writing for @shahariar50
@shahariar50 name
@lavieb33 which exercis e?
Shahariar Touhid
@shahariar50
Jan 26 2016 10:14
what? @cannelflow
anthonygallina1
@anthonygallina1
Jan 26 2016 10:14
29
cannelflow
@cannelflow
Jan 26 2016 10:15
@shahariar50 instead of writing 29 you can write exercise name
anthonygallina1
@anthonygallina1
Jan 26 2016 10:15
2
cannelflow
@cannelflow
Jan 26 2016 10:15
and that like walk you through new design
Shahariar Touhid
@shahariar50
Jan 26 2016 10:15
Nest the existing img element within an a element.
anthonygallina1
@anthonygallina1
Jan 26 2016 10:15
...
Shahariar Touhid
@shahariar50
Jan 26 2016 10:16
about @cannelflow
CamperBot
@camperbot
Jan 26 2016 10:16
:star: 567 | @cannelflow | http://www.freecodecamp.com/cannelflow
cannelflow
@cannelflow
Jan 26 2016 10:17
@shahariar50 show your code
Shahariar Touhid
@shahariar50
Jan 26 2016 10:17
@cannelflow 29
cannelflow
@cannelflow
Jan 26 2016 10:19
@shahariar50 can you tell name of exercise
anthonygallina1
@anthonygallina1
Jan 26 2016 10:20
squats
Shahariar Touhid
@shahariar50
Jan 26 2016 10:21
@cannelflow (Turn an Image into a Link)
@cannelflow
cannelflow
@cannelflow
Jan 26 2016 10:27
@shahariar50 <a href="#"><img src="http://bit.ly/fcc-running-cats"></a>
sry net disconnection problem
park23
@park23
Jan 26 2016 10:30
sh: 1: testlalka: not found
npm ERR! Test failed. See above for more details.
help pls
CamperBot
@camperbot
Jan 26 2016 10:30
no wiki entry for: pls
Shahariar Touhid
@shahariar50
Jan 26 2016 10:32
@cannelflow sorry it not work...
sanwalatta
@sanwalatta
Jan 26 2016 10:49
anyone help me Bootstrap buttons should be nested within its own div element with the class col-xs-4.
Aleksander Gębicki
@Takumar
Jan 26 2016 10:54
@sanwalatta you have to create such structure:
<div><button></button></div>
@shahariar50 @cannelflow showed you good solution, are you sure, you modified existing link, not added new one?
sanwalatta
@sanwalatta
Jan 26 2016 10:55
Thks
Aleksander Gębicki
@Takumar
Jan 26 2016 10:57
@lavieb33 :point_up: 26 stycznia 2016 10:57 I described you solution. As you said you have to create: if () {} else {} structure in your function, in first case you return value of property and in second you return string "Not Found".
chaitanya ashtekar
@chaitanyaashtekar
Jan 26 2016 11:17
when to use array.prototype.shift instead of array.shift ?
sanwalatta
@sanwalatta
Jan 26 2016 11:26
anyone help to create thumbs icon within the button
Ashley
@atan77
Jan 26 2016 11:30
@sanwalatta you could try font awesome
Blank
@vuhuy1101
Jan 26 2016 11:34
@sanwalatta you can try bootstrap glyphicons http://getbootstrap.com/components/
Satyarth Shivam
@SatyaShivam
Jan 26 2016 11:36
<h2 style="color: blue">CatPhotoApp</h2> h2 element should be red. but it cant change color
give me the soltuion
Aleksander Gębicki
@Takumar
Jan 26 2016 11:37
@SatyaShivam what this part of your code: color: blue says to you? Is it red?
onursarikaya
@onursarikaya
Jan 26 2016 11:38
@SatyaShivam <h2 style="color: red">CatPhotoApp</h2>
Aleksander Gębicki
@Takumar
Jan 26 2016 11:39
@SatyaShivam I guess you know English names of colours.
sanwalatta
@sanwalatta
Jan 26 2016 11:39
Thanks
Satyarth Shivam
@SatyaShivam
Jan 26 2016 11:39
@onursarikaya thnx..
CamperBot
@camperbot
Jan 26 2016 11:39
satyashivam sends brownie points to @onursarikaya :sparkles: :thumbsup: :sparkles:
:star: 36 | @onursarikaya | http://www.freecodecamp.com/onursarikaya
anthonygallina1
@anthonygallina1
Jan 26 2016 11:41
@onursarikaya looks like a inline style
red
onursarikaya
@onursarikaya
Jan 26 2016 11:42
@anthonygallina1 yep :)
Satyarth Shivam
@SatyaShivam
Jan 26 2016 11:42
i get my answer
Ulya Penguin
@Ulya07Penguin
Jan 26 2016 11:43
$("button").addClass(function(animated){
  $(".btn").addClass(function(shake){
  $("#target1").addClass(function( btn_primary));

  });
  });
help me please
"Your #target1 element should have the classes animated‚ shake and btn-primary." - here is the mistake
anthonygallina1
@anthonygallina1
Jan 26 2016 11:43
@SatyaShivam If you have this <h2 style="color: blue">CatPhotoApp</h2> h2 element should be red. but it cant change color
I believe it would over ride any thing in a style sheet
Or your page head
onursarikaya
@onursarikaya
Jan 26 2016 11:45
complete read left side of page
Aleksander Gębicki
@Takumar
Jan 26 2016 11:47

@Ulya07Penguin why you use function keyword in your jQuery part?
Try: $("button").addClass("animated");
I guess this part:

 $(document).ready(function() {
    // here put your jQuery
  });

confuses you.
Once again, try to follow such template:

$(document).ready(function() {
    $("button").addClass("animated");

  });
Ulya Penguin
@Ulya07Penguin
Jan 26 2016 11:51
yeeeeah
that's it
i got it
Thank you a l0t :) @Takumar
CamperBot
@camperbot
Jan 26 2016 11:51
ulya07penguin sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 1909 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Jan 26 2016 11:51
@Ulya07Penguin you are welcome :-)
kallzftw
@kallzftw
Jan 26 2016 12:17
on the
oops
On level 88 on freecodecamp, you are gonna nest a <div class="row" (here is your buttons > but i can't get the ">" to command, it's just white.. help
Arjun Mayilvaganan
@arjunmayilvaganan
Jan 26 2016 12:20
function telephoneCheck(str) {
  str = str.replace(/\s+/g,"");
  var format = /^\d{3}-\d{3}-\d{4}$|^\(\d{3}\)\d{3}-\d{4}$|^\d{10}$|^1\d{10}$/;
  var valid = str.match(format)[0];
  return format.test(str);
}

telephoneCheck("555-555-5555");
US telephone number validation. I'm stuck.
ronald
@ronstarcool
Jan 26 2016 12:23
yup
its a tuff one
what about the optional )?
Arjun Mayilvaganan
@arjunmayilvaganan
Jan 26 2016 12:26
@ronstarcool , covered.
ronald
@ronstarcool
Jan 26 2016 12:26
ok..
videet
@videetssinghai
Jan 26 2016 12:33
\
hey i want to work on the portfolio project
but dont know how to start
can any1 help please....
Arjun Mayilvaganan
@arjunmayilvaganan
Jan 26 2016 12:34
@videetssinghai just sketch the layout in your mind or better, a paper, and start.
SergeyWebDeveloper
@SergeyWebDeveloper
Jan 26 2016 12:36
@videetssinghai see examples of what other sites like it, write it down like that, do fit your needs and begin to move forward)
Edvard21
@Edvard21
Jan 26 2016 12:45
<style>
.thick-green-border {"

border-color: green;
border-width: 10px;
border-style: solid;
border-around: green;

"}

</style>
ronald
@ronstarcool
Jan 26 2016 12:47
why is this true? /\d/ == "5---"
@arjunmayilvaganan , waht does this do?
var valid = str.match(format)[0];
Aleksander Gębicki
@Takumar
Jan 26 2016 12:53
@Edvard21 you don't need double quotation marks in your code. You use quotes, when you do inline styling:
<p style="color: green;">This is green text</p>
Ray Culbertson
@RaymondCulbertson
Jan 26 2016 12:54
Hey guys, I'm on level 22 and I'm having trouble assigning a class to the image. How would I go about doing this? Thanks for your help!
Eran Finkle
@finklez
Jan 26 2016 12:55
@RaymondCulbertson <img class="xx"
Aleksander Gębicki
@Takumar
Jan 26 2016 12:55
@RaymondCulbertson when you define your class, for example ".thick-green-border" :point_up: 26 stycznia 2016 13:45 you use it by typing: <p class="thick-green-border">
Ray Culbertson
@RaymondCulbertson
Jan 26 2016 12:58
Awesome! Thank you @finklez and @Takumar
CamperBot
@camperbot
Jan 26 2016 12:58
raymondculbertson sends brownie points to @finklez and @takumar :sparkles: :thumbsup: :sparkles:
:star: 1913 | @takumar | http://www.freecodecamp.com/takumar
:star: 316 | @finklez | http://www.freecodecamp.com/finklez
Aleksander Gębicki
@Takumar
Jan 26 2016 12:59
@RaymondCulbertson you're welcome :-)
Eran Finkle
@finklez
Jan 26 2016 13:01
@RaymondCulbertson same goes for id, the diff is that id starts with # instead of a . in css
ronald
@ronstarcool
Jan 26 2016 13:14
@arjunmayilvaganan you got it fixed yet??
ronald
@ronstarcool
Jan 26 2016 13:24
omg, finally
come back if needed
Ray Culbertson
@RaymondCulbertson
Jan 26 2016 13:27
I can't quite figure out what's wrong with this code. I'm still being told that "Your p element should have the text "View more " (with a space after it) although this is the code... <p>View more <a href="http://www.freecatphotoapp.com">cat photos</a></p>
Alexander Køpke
@alexanderkopke
Jan 26 2016 13:33
@RaymondCulbertson post the whole code please
Ray Culbertson
@RaymondCulbertson
Jan 26 2016 13:33

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

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

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

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

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

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

Richard Andrews
@Whiplash5057
Jan 26 2016 13:34

In Computer Science a queue is an abstract Data Structure where items are kept in order. New items can be added at the back of the queue and old items are taken off from the front of the queue.

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

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

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

Hey guys why do I not have to create an array arr[] for this exercise ??
Alexander Køpke
@alexanderkopke
Jan 26 2016 13:35
@RaymondCulbertson you have two links to freecatphotoapp.com
greg
@wearenotgroot
Jan 26 2016 13:36
@Whiplash5057 because you already have an array
@Whiplash5057 you passed the array you operated on in the function parameter
Richard Andrews
@Whiplash5057
Jan 26 2016 13:37
@wearenotgroot where is it ?
Alexander Køpke
@alexanderkopke
Jan 26 2016 13:37
under //Test Setup
greg
@wearenotgroot
Jan 26 2016 13:37
@Whiplash5057 arr = testArr -----------------------> queue(testArr,6)------------------->queue(arr,item)
Ray Culbertson
@RaymondCulbertson
Jan 26 2016 13:37
@alexanderkopke AH! Thank you. That must have been left over from the previous lesson.
CamperBot
@camperbot
Jan 26 2016 13:37
raymondculbertson sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:star: 451 | @alexanderkopke | http://www.freecodecamp.com/alexanderkopke
Alexander Køpke
@alexanderkopke
Jan 26 2016 13:37
@RaymondCulbertson :)
SeraWillow
@SeraWillow
Jan 26 2016 13:38
I need some help with jQuery.

here's my code: <script>
$(document).ready($("button).addClass("animated bounce"); {

});
</script>

i added the missing " on button.
I'm trying to make my buttons bounce or something
Aleksander Gębicki
@Takumar
Jan 26 2016 13:39
@SeraWillow you placed your button in wrong place.
SeraWillow
@SeraWillow
Jan 26 2016 13:39

Ok, where does it go? here's the beginning code: <script>
$(document).ready(function() {

});

Richard Andrews
@Whiplash5057
Jan 26 2016 13:39
OOOOKKK!! yes !! got it @wearenotgroot ??how do I give brownie points ?? I'm new to freecampcode
And thanks @wearenotgroot
CamperBot
@camperbot
Jan 26 2016 13:39
whiplash5057 sends brownie points to @wearenotgroot :sparkles: :thumbsup: :sparkles:
:star: 546 | @wearenotgroot | http://www.freecodecamp.com/wearenotgroot
greg
@wearenotgroot
Jan 26 2016 13:40
@Whiplash5057 :+1:
Aleksander Gębicki
@Takumar
Jan 26 2016 13:40
@SeraWillow put your code in empty line :-)
$(document).ready(function() {
  // here add yours
  $("button")....
});
SeraWillow
@SeraWillow
Jan 26 2016 13:40
after the {?
Mohamed Fahadh
@fahadh14
Jan 26 2016 13:40
hey can someone help me with the exercise Record Collection?
SeraWillow
@SeraWillow
Jan 26 2016 13:40
Oh my gosh. Lol
Thanks :)
Richard Andrews
@Whiplash5057
Jan 26 2016 13:41
How did you give brownie points @camperbot ??
ronald
@ronstarcool
Jan 26 2016 13:41
type @ name thanks
Mohamed Fahadh
@fahadh14
Jan 26 2016 13:41
@Whiplash5057 say Thanks! @(username)
CamperBot
@camperbot
Jan 26 2016 13:41
fahadh14 sends brownie points to @whiplash5057 :sparkles: :thumbsup: :sparkles:
:star: 181 | @whiplash5057 | http://www.freecodecamp.com/whiplash5057
Aleksander Gębicki
@Takumar
Jan 26 2016 13:41
@SeraWillow this block you start with, is meant to run code inside your function when your page is ready.
Alexander Køpke
@alexanderkopke
Jan 26 2016 13:41
@Whiplash5057 you send points by clicking a name and then saying thanks
CamperBot
@camperbot
Jan 26 2016 13:41
alexanderkopke sends brownie points to @whiplash5057 :sparkles: :thumbsup: :sparkles:
Mohamed Fahadh
@fahadh14
Jan 26 2016 13:41
like that lol
CamperBot
@camperbot
Jan 26 2016 13:41
:star: 182 | @whiplash5057 | http://www.freecodecamp.com/whiplash5057
ronald
@ronstarcool
Jan 26 2016 13:41
@fahadh14 thanks! :P
CamperBot
@camperbot
Jan 26 2016 13:41
ronstarcool sends brownie points to @fahadh14 :sparkles: :thumbsup: :sparkles:
:star: 239 | @fahadh14 | http://www.freecodecamp.com/fahadh14
ronald
@ronstarcool
Jan 26 2016 13:41
@Takumar thanks
chaitanya ashtekar
@chaitanyaashtekar
Jan 26 2016 13:41

where art though.

function where(collection, source) {
  var arr = [];
  var sourceProp=Object.keys(source);
  for(var obj in collection){console.log(sourceProp);
      if(collection[obj].hasOwnProperty(sourceProp)&& collection[obj][sourceProp]===source[sourceProp]){
          arr.push(collection[obj]);
      }
  }                        

   return arr;
}
   /// partially working

i cant get it to work for multiple properties.

Richard Andrews
@Whiplash5057
Jan 26 2016 13:42
@alexanderkopke Thanks !!!
CamperBot
@camperbot
Jan 26 2016 13:42
whiplash5057 sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:star: 452 | @alexanderkopke | http://www.freecodecamp.com/alexanderkopke
SeraWillow
@SeraWillow
Jan 26 2016 13:42
@Takumar Thanks!
CamperBot
@camperbot
Jan 26 2016 13:42
serawillow sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 1917 | @takumar | http://www.freecodecamp.com/takumar
greg
@wearenotgroot
Jan 26 2016 13:43
@chaitanyaashtekar you need to iterate through the sourceProp. sourceProp is an array
Aleksander Gębicki
@Takumar
Jan 26 2016 13:44
@SeraWillow you're welcome :-)
chaitanya ashtekar
@chaitanyaashtekar
Jan 26 2016 13:44
@wearenotgroot yes i tried that. but i cant get it to push only when it it has all the properties
ronald
@ronstarcool
Jan 26 2016 13:45
@chaitanyaashtekar a tuff one :)
Mohamed Fahadh
@fahadh14
Jan 26 2016 13:45
// 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) {


  return collection;
}

// Alter values below to test your code
update(5439, "artist", "ABBA");
how do i get started with this
:/
chaitanya ashtekar
@chaitanyaashtekar
Jan 26 2016 13:46
@ronstarcool yes ,maybe maybe not .sometimes it becomes so simple with just a single hint from someone :-p
ronald
@ronstarcool
Jan 26 2016 13:46
i did it months ago... cant remember
but i will try
chaitanya ashtekar
@chaitanyaashtekar
Jan 26 2016 13:46
ok
Shahariar Touhid
@shahariar50
Jan 26 2016 13:46
i need help
Greg Klein
@gregkleintv
Jan 26 2016 13:47
with what
ronald
@ronstarcool
Jan 26 2016 13:48
@shahariar50 nice one :P
Aleksander Gębicki
@Takumar
Jan 26 2016 13:48
@chaitanyaashtekar sourceProp is array of properties, you cannot check if object has many properties, check one by one, this is wrong :-( : hasOwnProperty(sourceProp)
maybe try some loop?
ronald
@ronstarcool
Jan 26 2016 13:49
@Takumar maybe collection.forEach() ?
then check for each one if it has the prop?
Aleksander Gębicki
@Takumar
Jan 26 2016 13:51
@ronstarcool maybe, but he already iterates over objects in collection, so he should iterate also over properties of source
chaitanya ashtekar
@chaitanyaashtekar
Jan 26 2016 13:51
@Takumar yup. i just wanted to see if its correct for just one prop. and it is. but when i wrote a loop considering sourceProp as a array. i couldn't get it to work. i.e it pushed values in arr even if just one prop was matching
greg
@wearenotgroot
Jan 26 2016 13:57
@chaitanyaashtekar well if you want to test it then do sourceProp[0]
Aleksander Gębicki
@Takumar
Jan 26 2016 13:57
@chaitanyaashtekar you can always reverse condition, use not ! operator in conditions, when not found you can use break to stop the loop. Try, search :-)
I remind myself that I have used filter() in this bonfire.
chaitanya ashtekar
@chaitanyaashtekar
Jan 26 2016 13:58
ok.will try.thanks @Takumar @wearenotgroot
CamperBot
@camperbot
Jan 26 2016 13:58
chaitanyaashtekar sends brownie points to @takumar and @wearenotgroot :sparkles: :thumbsup: :sparkles:
:star: 1918 | @takumar | http://www.freecodecamp.com/takumar
:star: 547 | @wearenotgroot | http://www.freecodecamp.com/wearenotgroot
Mohamed Fahadh
@fahadh14
Jan 26 2016 14:00
// 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) {
  for (var i =0; i < collection.length;i++){
    var obj = collection[i];
    for (id in collection){
}
  }

  return collection;
}

// Alter values below to test your code
update(5439, "artist", "ABBA");
i need help with this :/ someone
greg
@wearenotgroot
Jan 26 2016 14:01

@fahadh14 re-read instructions

If value is non-blank (value !== "") and prop is not "tracks" then update or set the value for the prop.

If the prop is "tracks" and value is non-blank, push the value onto the end of the tracks array.

If value is blank, delete that prop.

those are you if statements

SeraWillow
@SeraWillow
Jan 26 2016 14:02
Sorry to interrupt, but does Free Code Camp have any type of printable notes? I'd like something to study while I'm not doing lessons.
Mohamed Fahadh
@fahadh14
Jan 26 2016 14:06
@wearenotgroot the thing is how i find that the prop is tracks?
Almazbeck Dzhuma
@almazzi
Jan 26 2016 14:06

function palindrome(str) {
if(str.split().reverse().join('').toLowerCase() == str.toLowerCase())
{return true;}
else {return false;}

} here I cant imagine how does it return palindrome("not a palindrome") true

subnetcannon
@subnetcannon
Jan 26 2016 14:06
thanks @CaroleAnneHannon for your help with Checkpoint: Stand in Line
CamperBot
@camperbot
Jan 26 2016 14:06
subnetcannon sends brownie points to @caroleannehannon :sparkles: :thumbsup: :sparkles:
:star: 713 | @caroleannehannon | http://www.freecodecamp.com/caroleannehannon
greg
@wearenotgroot
Jan 26 2016 14:06
@fahadh14 umm, use the parameters. you have a prop parameter test it if it is equal "tracks"
ronald
@ronstarcool
Jan 26 2016 14:11
am i on the right track with this one?
bf where are thou
CamperBot
@camperbot
Jan 26 2016 14:11
Sorry, can't find a bonfire called where are thou. [ Check the map? ]
ronald
@ronstarcool
Jan 26 2016 14:11
This message was deleted
Mohamed Fahadh
@fahadh14
Jan 26 2016 14:11
@wearenotgroot let me try and figure out, i'll come back to you
ronald
@ronstarcool
Jan 26 2016 14:12
nvm....
Almazbeck Dzhuma
@almazzi
Jan 26 2016 14:13
function palindrome(str) {
  if(str.split().reverse().join('').toLowerCase() == str.toLowerCase()) 
  {return true;}
  else {return false;}

}
greg
@wearenotgroot
Jan 26 2016 14:14
@fahadh14 :+1:
Almazbeck Dzhuma
@almazzi
Jan 26 2016 14:14
how this can return true when it called palindrom("nope");
Eran Finkle
@finklez
Jan 26 2016 14:16
@almazzi look at your split()..
ronald
@ronstarcool
Jan 26 2016 14:16
return true......
Eran Finkle
@finklez
Jan 26 2016 14:16
something is missing?
ronald
@ronstarcool
Jan 26 2016 14:16
:)
mokheem
@mokheem
Jan 26 2016 14:16
hello iam new to freecodecamp
ronald
@ronstarcool
Jan 26 2016 14:16
ow nvm
mokheem
@mokheem
Jan 26 2016 14:17
hello ronstarcool
Eran Finkle
@finklez
Jan 26 2016 14:17
@almazzi and since you confused @ronstarcool
you can just do return (whole test)
no need for true/false or else
greg
@wearenotgroot
Jan 26 2016 14:17
@finklez :smile:
ronald
@ronstarcool
Jan 26 2016 14:17
@finklez thanks
CamperBot
@camperbot
Jan 26 2016 14:17
ronstarcool sends brownie points to @finklez :sparkles: :thumbsup: :sparkles:
:star: 318 | @finklez | http://www.freecodecamp.com/finklez
Eran Finkle
@finklez
Jan 26 2016 14:17
:D
mokheem
@mokheem
Jan 26 2016 14:17
hello finklez
Eran Finkle
@finklez
Jan 26 2016 14:17
hi @mokheem
mokheem
@mokheem
Jan 26 2016 14:18
iam to freecodecamp
is it good site learn coding
Eran Finkle
@finklez
Jan 26 2016 14:18
yes very much
mokheem
@mokheem
Jan 26 2016 14:19
in how many i can learn coding
only webdevelopment
no java
in site
ronald
@ronstarcool
Jan 26 2016 14:22
@finklez i still didnt fix it.. :(
function where(collection, source) {
  var arr = [];
  var arrSource = Object.keys(source);
  collection.forEach(function(object){
    arrSource.forEach(function(key){
      if(object.hasOwnProperty(key)){
        if(object.key == source.key){
          arr.push(source);
        }
      }
    });
  });

  return arr;
}
where([{ first: "Romeo", last: "Montague" }, { first: "Mercutio", last: null }, { first: "Tybalt", last: "Capulet" }], { last: "Capulet" });
and i left the return there... :(
omg
im a bad person
Nhat Khanh
@lednhatkhanh
Jan 26 2016 14:23
please help me, i dont know what's wrong with my code: Counting Cards
var count = 0;

function cc(card) {
  // Only change code below this line
  switch(card){
    case 2:
    case 3:
    case 4:
    case 5:
    case 6: ++count;
      break;
    case 7:
    case 8:
    case 9: count = 0;
      break;
    case 10:
    case 'J':
    case 'Q':
    case 'K':
    case 'A': --count;
      break;
  }
  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);
Mohamed Fahadh
@fahadh14
Jan 26 2016 14:23
@wearenotgroot uhhh, manage to fix it. read the whole thing wrongly
@wearenotgroot thought i was supposed to , check every property of the json object and put in the missing fields. sucks man. Thanks anyway.
CamperBot
@camperbot
Jan 26 2016 14:24
fahadh14 sends brownie points to @wearenotgroot :sparkles: :thumbsup: :sparkles:
:star: 548 | @wearenotgroot | http://www.freecodecamp.com/wearenotgroot
Nhat Khanh
@lednhatkhanh
Jan 26 2016 14:25
please help me, i dont know what's wrong with my code: Counting Cards
var count = 0;

function cc(card) {
  // Only change code below this line
  switch(card){
    case 2:
    case 3:
    case 4:
    case 5:
    case 6: ++count;
      break;
    case 7:
    case 8:
    case 9: count = 0;
      break;
    case 10:
    case 'J':
    case 'Q':
    case 'K':
    case 'A': --count;
      break;
  }
  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);
Mohamed Fahadh
@fahadh14
Jan 26 2016 14:25
@lednhatkhanh try using count +=1;
count += 0;
and count -=1;
Nhat Khanh
@lednhatkhanh
Jan 26 2016 14:26
@fahadh14 Still cant fix it.
Mohamed Fahadh
@fahadh14
Jan 26 2016 14:27
@lednhatkhanh tell me the exercise name
i'll read the instructions again
Nhat Khanh
@lednhatkhanh
Jan 26 2016 14:28
@fahadh14 Counting Cards
Mohamed Fahadh
@fahadh14
Jan 26 2016 14:30
@lednhatkhanh you need to have this for each case
if (count > 0){
return count + " Bet";
}
else {
return count + " Hold";
}
Cybrioniss
@Cybrioniss
Jan 26 2016 14:30
Please, can someone help me with Target the Parent of an Element Using jQuery html $("#left-well").parent().css("background-color", "red"); it's not working :(
$("#left-well").parent().css("background-color", "red");
John Long
@jlongdesign
Jan 26 2016 14:31
I’m a little lost on how to begin on this one:

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

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

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

You are given a variable celsius representing a temperature in Celsius. Create a variable fahrenheit and apply the algorithm to assign it the corresponding temperature in Fahrenheit.
Nhat Khanh
@lednhatkhanh
Jan 26 2016 14:32
@fahadh14 That saved the day! Thank you!
CamperBot
@camperbot
Jan 26 2016 14:32
lednhatkhanh sends brownie points to @fahadh14 :sparkles: :thumbsup: :sparkles:
:star: 241 | @fahadh14 | http://www.freecodecamp.com/fahadh14
Eran Finkle
@finklez
Jan 26 2016 14:33
@ronstarcool lol
ronald
@ronstarcool
Jan 26 2016 14:33
:)
Mohamed Fahadh
@fahadh14
Jan 26 2016 14:33
@JohnnieRebel71 you must take note of the formula of converting celsius to farenheit which should be stated in the left side (in the instructions) then use the celsius variable and change it to farenheit variable
@lednhatkhanh no problem :)
ronald
@ronstarcool
Jan 26 2016 14:37
@finklez i cant fix it...
Almazbeck Dzhuma
@almazzi
Jan 26 2016 14:37
@finklez thank you
ronald
@ronstarcool
Jan 26 2016 14:37
where([{ "a": 1, "b": 2 }, { "a": 1 }, { "a": 1, "b": 2, "c": 2 }], { "a": 1, "b": 2 }) should return [{ "a": 1, "b": 2 }, { "a": 1, "b": 2, "c": 2 }].
c2 is not even in the source
how can it be returned??
John Long
@jlongdesign
Jan 26 2016 14:38

@fahadh14 I’m trying this:
function convert(celsius) {
// Only change code below this line
var fahrenheit = fahrenheit*9/5 + 32;

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

// Change the inputs below to test your code
convert(-30);
convert(-10);
convert(0);
convert(20);
convert(30);

ronald
@ronstarcool
Jan 26 2016 14:38
owwww, source should be in collection. not the other way around
thats it right?
omg
Aleksander Gębicki
@Takumar
Jan 26 2016 14:39
@JohnnieRebel71 this line is wrong: var fahrenheit = fahrenheit*9/5 + 32; check it and think about it again :thumbsup:
John Long
@jlongdesign
Jan 26 2016 14:40
@fahadh14 AHHA! Figured it out. Thanks for the assist! changed fahrenheit = celsius *9/5..etc
CamperBot
@camperbot
Jan 26 2016 14:40
johnnierebel71 sends brownie points to @fahadh14 :sparkles: :thumbsup: :sparkles:
:star: 242 | @fahadh14 | http://www.freecodecamp.com/fahadh14
John Long
@jlongdesign
Jan 26 2016 14:40
@Takumar Yep! Thanks! You guys got me thinking in the right frame of mind.
CamperBot
@camperbot
Jan 26 2016 14:40
johnnierebel71 sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 1919 | @takumar | http://www.freecodecamp.com/takumar
Mohamed Fahadh
@fahadh14
Jan 26 2016 14:41
@JohnnieRebel71 no problem :)
@Takumar i just wanted to ask , lets say i get to bonfire/zipline challenges what if i forget to do bootstrap stuff, do i really have to redo it or i can just refer to documentation?
Aleksander Gębicki
@Takumar
Jan 26 2016 14:42
@fahadh14 if you will be able to do bonfires/ziplines, and you know Bootstrap you don't have to read about it and make waypoints about that.
@JohnnieRebel71 you are welcome :-)
Sorry I have to leave the room for an hour.
Andres Baltodano
@Andy-colocho
Jan 26 2016 14:54
good morning guys, I am trying to create a dead link. check out the code below, what am I doing wrong
<p>Click here for <# href="http://www.freecatphotoapp.com">cat photos</#>.</p>
marzelin
@marzelin
Jan 26 2016 14:55
@Andy-colocho that's funny :)
Andres Baltodano
@Andy-colocho
Jan 26 2016 14:55
lol
why
marzelin
@marzelin
Jan 26 2016 14:55
very creative, never seen something like that before
David Randell
@abracadave
Jan 26 2016 14:55
Yeah, that’s a first for me!
Andres Baltodano
@Andy-colocho
Jan 26 2016 14:56
lol
greg
@wearenotgroot
Jan 26 2016 14:56
@Andy-colocho you forgot a
Andres Baltodano
@Andy-colocho
Jan 26 2016 14:56
this are the instructions
Replace the value of your a element's href attribute with a #, also known as a hash symbol, to turn it into a dead link.
greg
@wearenotgroot
Jan 26 2016 14:56
@Andy-colocho :smile:
marzelin
@marzelin
Jan 26 2016 14:56
dead link is created by assigning attribute href invalid value like #
Andres Baltodano
@Andy-colocho
Jan 26 2016 14:57
oh ok
hold ion
David Randell
@abracadave
Jan 26 2016 14:57
They mean replace the contents of the attribute.
What he said!
Andres Baltodano
@Andy-colocho
Jan 26 2016 14:57
got it!!!!!!!!
thanks
LOL
I can see why you guys are laughing
David Randell
@abracadave
Jan 26 2016 14:58
You’ll get there. :)
He laughed… I observed the laughter…
Andres Baltodano
@Andy-colocho
Jan 26 2016 14:58
this is cool! I like the instant help
Toye
@danielbber
Jan 26 2016 15:10
Hi, i get the following error when i run “npm install dl”, who can help me, thanks

‘''npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/Users/Daniel/.node/bin/npm" "install" "ld"
npm ERR! node v5.4.1
npm ERR! npm v3.5.3
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! syscall connect

npm ERR! Error: connect ECONNREFUSED 127.0.0.1:15443
npm ERR! at Object.exports._errnoException (util.js:856:11)
npm ERR! at exports._exceptionWithHostPort (util.js:879:20)
npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1062:14)
npm ERR! { [Error: connect ECONNREFUSED 127.0.0.1:15443]
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! address: '127.0.0.1',
npm ERR! port: 15443 }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR! /Users/Daniel/freecodecamp/npm-debug.log’''

npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/Users/Daniel/.node/bin/npm" "install" "ld"
npm ERR! node v5.4.1
npm ERR! npm  v3.5.3
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! syscall connect

npm ERR! Error: connect ECONNREFUSED 127.0.0.1:15443
npm ERR!     at Object.exports._errnoException (util.js:856:11)
npm ERR!     at exports._exceptionWithHostPort (util.js:879:20)
npm ERR!     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1062:14)
npm ERR!  { [Error: connect ECONNREFUSED 127.0.0.1:15443]
npm ERR!   code: 'ECONNREFUSED',
npm ERR!   errno: 'ECONNREFUSED',
npm ERR!   syscall: 'connect',
npm ERR!   address: '127.0.0.1',
npm ERR!   port: 15443 }
npm ERR! 
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly.  See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Daniel/freecodecamp/npm-debug.log
Herman Fassett
@HermanFassett
Jan 26 2016 15:14
@danielbber type npm config get proxy what does it say?
Herman Fassett
@HermanFassett
Jan 26 2016 15:19
If the output isn't null, you should npm config set proxy null
Mohamed Fahadh
@fahadh14
Jan 26 2016 15:20
//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 === contacts[i]["firstName"] && prop === contacts.hasOwnProperty(prop) )
      {

      }
  }
// Only change code above this line
}

// Change these values to test your function
lookUp("Akira", "likes");
how do i go about doing this
exercise : profile lookup
mc_jacky
@our880tom
Jan 26 2016 15:21

<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
</p>
<p>chase the red dot, hairball run catnip eat the grass sniff.</p>

Change the Font Size of an Element
how pass?
GM-Connor
@GM-Connor
Jan 26 2016 15:22
@our880tom link the challenge
Mohamed Fahadh
@fahadh14
Jan 26 2016 15:23
@our880tom missing semi-colon at font-size :16px;
mc_jacky
@our880tom
Jan 26 2016 15:25
i add,but not well
GM-Connor
@GM-Connor
Jan 26 2016 15:25
@fahadh14 if there are no styles that follow, the ; isn't needed. But it might be for the challenge
mc_jacky
@our880tom
Jan 26 2016 15:26
yes
Your p element should contain the first few words of the provided additional kitty ipsum text.
this is wrong
Dinesh Reddy
@dineshreddy-freecamp
Jan 26 2016 15:28
Give the text input in your form the class form-control.
can anyone help me plz
Fredrik E
@freddjah
Jan 26 2016 15:29
@fahadh14 What exactly are you aiming to do with the exercise? It's been a long time since I did that one. Is it that you want to look up a certain name and return element value x? And if there isn't a element with for an example "likes" you return "no such thing" etc.
David Randell
@abracadave
Jan 26 2016 15:30
@dineshreddy-freecamp add class=“form-control” to your text input element
Mohamed Fahadh
@fahadh14
Jan 26 2016 15:31
@freddjah yes it is. My current progress is this
//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 === contacts[i]["firstName"] && prop === contacts[i][prop] )
      {
        return contacts[i][prop];
      }
    else if (firstName !== contacts[i]["firstName"])
    {
      return "No such contact";
    }
    else
      {
         return "No such property";
      }
  }
// Only change code above this line
}

// Change these values to test your function
lookUp("Akira", "likes");
Andres Baltodano
@Andy-colocho
Jan 26 2016 15:32
hey guys
Mohamed Fahadh
@fahadh14
Jan 26 2016 15:32
@freddjah i know the prop part is wrong, trying to fix it :/
Eran Finkle
@finklez
Jan 26 2016 15:32
@ronstarcool hey sorry got busy with something , are you still stuck?
David Randell
@abracadave
Jan 26 2016 15:32
Hello
ronald
@ronstarcool
Jan 26 2016 15:32
hey @finklez
no, im unstuck :)
Andres Baltodano
@Andy-colocho
Jan 26 2016 15:33
how do I nest text input elements within a form element

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

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

ronald
@ronstarcool
Jan 26 2016 15:33
but it was real hard! srs
David Randell
@abracadave
Jan 26 2016 15:33
The <form> element is a parent container for all form control elements.
Place it inside
ronald
@ronstarcool
Jan 26 2016 15:33
my wife was already calling an ambulance
gaurav kumar
@gauravkumar2301
Jan 26 2016 15:33

First, create a h1 element with the text Hello World

Then, let's give all elements on your page the color of green by adding color: green; to your body element's style declaration.

Finally, give your body element the font-family of Monospace by adding font-family: Monospace; to your body element's style declaration.

GM-Connor
@GM-Connor
Jan 26 2016 15:33
@Andy-colocho like so
<form action="/submit-cat-photo">
    <input type="text" placeholder="cat photo URL">
</form>
David Randell
@abracadave
Jan 26 2016 15:34
Right
Andres Baltodano
@Andy-colocho
Jan 26 2016 15:34
ohhhhhhhh okk
THANKS!!!!!!!!!!!!!!!!!!!
man you guys are good!
gaurav kumar
@gauravkumar2301
Jan 26 2016 15:34
can someone help me out
i m beginner to this
GM-Connor
@GM-Connor
Jan 26 2016 15:35
@Andy-colocho When talking about nesting an element inside of another, it means to put that element between the opening and closing tags of what you are nesting in
Fredrik E
@freddjah
Jan 26 2016 15:35
@fahadh14 I would suggest you nest your if's a bit more.
Eran Finkle
@finklez
Jan 26 2016 15:35
@ronstarcool kk cool
GM-Connor
@GM-Connor
Jan 26 2016 15:35
@Andy-colocho Nesting just means put inside
Andres Baltodano
@Andy-colocho
Jan 26 2016 15:35
ok got it
makes sense!
GM-Connor
@GM-Connor
Jan 26 2016 15:36
@Andy-colocho Yeah, not sure if FCC explained it, but nesting is a programming/markup term
Mohamed Fahadh
@fahadh14
Jan 26 2016 15:37
@freddjah something like that?

//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++)
{
for (var u=0; u < contacts[i].length;u++)
{
if (firstName === contacts[i]["firstName"] && prop === contacts[i][u] )
{
return contacts[i][prop];
}
else if (firstName !== contacts[i]["firstName"])
{
return "No such contact";
}
else
{
return "No such property";
}
}
}
// Only change code above this line
}

// Change these values to test your function
lookUp("Akira", "likes");

//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++)
  {
  for (var u=0; u < contacts[i].length;u++)
  {
    if (firstName === contacts[i]["firstName"] && prop === contacts[i][u] )
      {
        return contacts[i][prop];
      }
    else if (firstName !== contacts[i]["firstName"])
    {
      return "No such contact";
    }
    else
      {
         return "No such property";
      }
  }
  }
// Only change code above this line
}

// Change these values to test your function
lookUp("Akira", "likes");
David Randell
@abracadave
Jan 26 2016 15:37
I think it’s always better to Nudge new coders, not give the answer straight away. Just sayin’ :)
aglet kym
@agletkym
Jan 26 2016 15:38
I am confuse with question on Change Text Inside an element Using jQuery.... Can some one clarify what instruction: Italicize the text in your target4 button by adding HTML tags.
Fredrik E
@freddjah
Jan 26 2016 15:39
@fahadh14 What I would do, and seemingly have done when looking back at this exercise, I chose first to look if I can find a contacts[i].firstName that is equal to the firstName in the lookUp-function. And if that's true, then the code proceeds to look up a new if statement that checks if the contacts has a property. If it has, it returns that property. Otherwise it returns "No such property". Worth mentioning is that I also put the return "No such contact" outside the for loop. :)
Mohamed Fahadh
@fahadh14
Jan 26 2016 15:39
@freddjah oh got it
thanks! @freddjah
CamperBot
@camperbot
Jan 26 2016 15:40
fahadh14 sends brownie points to @freddjah :sparkles: :thumbsup: :sparkles:
:star: 276 | @freddjah | http://www.freecodecamp.com/freddjah
Fredrik E
@freddjah
Jan 26 2016 15:40
@fahadh14 Nice! Don't want to give you the right answer in plain code, but if you have any more problems with the exercise, let me know and I can have a look. :)
aglet kym
@agletkym
Jan 26 2016 15:42
Thanks.
Ariel
@ArielLeslie
Jan 26 2016 15:42
@agletkym There are HTML tags that make the text inside of them italicized. You want to use jQuery to add those tags to the text in your target4 button
aglet kym
@agletkym
Jan 26 2016 15:43
I got it, many thanks.
mokheem
@mokheem
Jan 26 2016 15:47
how anchor element is used
Toye
@danielbber
Jan 26 2016 15:47
@HermanFassett thanks, my proxy is null, but the problem is still
CamperBot
@camperbot
Jan 26 2016 15:47
danielbber sends brownie points to @hermanfassett :sparkles: :thumbsup: :sparkles:
Nguyễn Hải Chau
@chaunh
Jan 26 2016 15:47
It 's used to link to the position that we make an anchor
CamperBot
@camperbot
Jan 26 2016 15:47
:star: 1457 | @hermanfassett | http://www.freecodecamp.com/hermanfassett
mokheem
@mokheem
Jan 26 2016 15:49
syntax of anchor element
Minhazul Islam
@Minhazul-islam
Jan 26 2016 15:49
@mokheem <a href="file_path_name" title="some title for ur file">Text here will show in webpage</a>
mokheem
@mokheem
Jan 26 2016 15:50
<p><a href="http://freecatphotoapp.com"></a></p>
correct this
<p><a href="http://freecatphotoapp.com"></a></p>
Your a element should have the anchor text of "cat photos".
You need an a element that links to http://freecatphotoapp.com
Make sure your a element has a closing tag.
@Minhazul-islam
Nguyễn Hải Chau
@chaunh
Jan 26 2016 15:52
<a name="raptors">Anchor title</a>
<a href="#raptors"><img src="http://example.typepad.com/raptors.gif" /></a> - See more at: http://help.typepad.com/anchor-tags.html#sthash.1ZPdlZp7.dpuf
Hope you get that
@mokheem
heatherwerner15
@heatherwerner15
Jan 26 2016 15:53
agh im stuck and cant figure out what i did wrong.... "using an id attribute to style an element" and i have it all checked off but "Make sure your form element has an id attribute."
Minhazul Islam
@Minhazul-islam
Jan 26 2016 15:53
@mokheem <p><a href="http://freecatphotoapp.com">cat photos</a></p>
GM-Connor
@GM-Connor
Jan 26 2016 15:53
@heatherwerner15 Post what you have so far!
mokheem
@mokheem
Jan 26 2016 15:53
@chaunh solve above code
@ArielLeslie
@danielbber
heatherwerner15
@heatherwerner15
Jan 26 2016 15:55
I have this under style : #cat-photo-form {
background-color: green;} and under form i have <form action="/submit-cat-photo" id="cat-photo-form"> </form>
Minhazul Islam
@Minhazul-islam
Jan 26 2016 15:56
@heatherwerner15 paste your code here
mokheem
@mokheem
Jan 26 2016 15:56
Your a element should have the anchor text of "cat photos".
You need an a element that links to http://freecatphotoapp.com
Make sure your a element has a closing tag.
Minhazul Islam
@Minhazul-islam
Jan 26 2016 15:57
@mokheem <p><a href="http://freecatphotoapp.com">cat photos</a></p>
mokheem
@mokheem
Jan 26 2016 15:59
@Minhazul-islam thanks i got it
CamperBot
@camperbot
Jan 26 2016 15:59
mokheem sends brownie points to @minhazul-islam :sparkles: :thumbsup: :sparkles:
:star: 198 | @minhazul-islam | http://www.freecodecamp.com/minhazul-islam
Aleksander Gębicki
@Takumar
Jan 26 2016 16:00
@heatherwerner15 if your waypoint is: "Use an ID Attribute to Style an Element" your code looks good. Maybe try to use "Reset" button and write these two lines of your code again.
Minhazul Islam
@Minhazul-islam
Jan 26 2016 16:03
@mokheem Happy Coding
heatherwerner15
@heatherwerner15
Jan 26 2016 16:03
@Takumar I just did that and it worked. thank you !
CamperBot
@camperbot
Jan 26 2016 16:03
heatherwerner15 sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 1921 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Jan 26 2016 16:04
@heatherwerner15 sometimes you might change some code by accident, we cannot tell what was wrong because we haven't seen whole code. Good that you completed this :thumbsup:
Raghuram
@Raghuram42
Jan 26 2016 16:19
hello ppl
Ulya Penguin
@Ulya07Penguin
Jan 26 2016 16:24
@Raghuram42 hey
Pranav Doshi
@pranavdoshi
Jan 26 2016 16:25
Wassup guys
Raghuram
@Raghuram42
Jan 26 2016 16:27
anyone dne the Bonfire: Chunk monkey??
@Ulya07Penguin hello
Ian
@IMLaing
Jan 26 2016 16:34
Does anyone here not use brackets in their CSS or JS?
Nguyễn Hải Chau
@chaunh
Jan 26 2016 16:34
that's awesome
:D
are you kidding
@IMLaing
Ian
@IMLaing
Jan 26 2016 16:34
Yes
My friend just told me he doesn't use brackets in CSS or for loops in JS
Herman Fassett
@HermanFassett
Jan 26 2016 16:35
@danielbber well maybe you don't have the right node version, beyond that I've got nothing
Ian
@IMLaing
Jan 26 2016 16:35
But I was curious if people in the world actually do that? It would seem that it would be fairly non-uniform
@chaunh so that isn't a real thing right?
Herman Fassett
@HermanFassett
Jan 26 2016 16:36
@IMLaing that's syntax error for most stuff unless you use pre processors
Nguyễn Hải Chau
@chaunh
Jan 26 2016 16:36
actually we can do that for very short code
but we should not do that
Herman Fassett
@HermanFassett
Jan 26 2016 16:36
For instance sass, but for small for loops you can get away with it
Nguyễn Hải Chau
@chaunh
Jan 26 2016 16:36
then our code will be easier to read
Basch
@sebastianjonas
Jan 26 2016 16:37

Hi guys,
i have kind of stupid question.
I want to create objects with nested arrays.
The objects should all look like this:

var product= {
    name: "string",
    picture: "url",
    manufacturer: "string",
    price: [{
        price: "number",
        validFrom: "dateTime",
        validTo: "dateTime",
        added: "dateTime",
        current: "boolean",
        store: {
            name: "string",
            geoLocation: "dontnowyet"
        }
        ,priceSource: [{
            source: "String"
        }]
    }],
    productGroup: [{
        name: "string",
        productGroupTag: [{
            name: "string"
        }]
    }]}

What's the best way to do this?

Ian
@IMLaing
Jan 26 2016 16:38
@chaunh @HermanFassett Thanks for explaining. It would seem best practice is to always use them
CamperBot
@camperbot
Jan 26 2016 16:38
imlaing sends brownie points to @chaunh and @hermanfassett :sparkles: :thumbsup: :sparkles:
:star: 1458 | @hermanfassett | http://www.freecodecamp.com/hermanfassett
:star: 14 | @chaunh | http://www.freecodecamp.com/chaunh
Nguyễn Hải Chau
@chaunh
Jan 26 2016 16:39
you can create the array at server side
then use json_encode
i think so