These are chat archives for FreeCodeCamp/Help

2nd
Jan 2016
Brian
@sludge256
Jan 02 2016 00:00
:wave:
Xavier Artot
@xavierartot
Jan 02 2016 00:00
I have trouble to understand the waypoint:
waypoint-finding-a-remainder-in-javascript
Al-ameen Ak
@Alameen007
Jan 02 2016 00:00
@KickAssBrockSamson still didn't work
Pawan
@pawan92
Jan 02 2016 00:01
@hollyhascode ohhhh thats what it is @sludge256
Holly Williford
@hollyhascode
Jan 02 2016 00:01
yeah I did that. Just submitted it on github. Hopefully an answer will come about.
Xavier Artot
@xavierartot
Jan 02 2016 00:01
var remainder=11;
remainder=2;
remainder%1;
Holly Williford
@hollyhascode
Jan 02 2016 00:01
oh
Xavier Artot
@xavierartot
Jan 02 2016 00:01
they wnat to be a result of 2 and I have this
Aleksander Gębicki
@Takumar
Jan 02 2016 00:02
@xavierartot you hard coded 2 in your code.
You have to assign result of operation to remainder variable.
i.e. var remainder = 4 * 5; but use remainder operator instead of multiplication.
Brian
@sludge256
Jan 02 2016 00:02
@hollyhascode If you're quick no one will notice your github issue :P
Holly Williford
@hollyhascode
Jan 02 2016 00:02
no that didn't seem to do the trick either. I'll try to refresh then do it again. Need to edit my github.
Josiah Anderson
@Josiahdanderson
Jan 02 2016 00:02
If i were to create a variable in javascript and leave it empty after the "=" sign like this var myVar = " "; is this just a way of declaring a variable? or do the empty double quotes mean something?
Brian
@sludge256
Jan 02 2016 00:02
which waypoint is it? @hollyhascode
oh i guess i can cehck the issue myself
Xavier Artot
@xavierartot
Jan 02 2016 00:03
5%3=2
?
Brian H
@rckymtndev
Jan 02 2016 00:03
<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 style="background-color: gray" 

 <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>
Xavier Artot
@xavierartot
Jan 02 2016 00:03
the reminder is 2?
Aleksander Gębicki
@Takumar
Jan 02 2016 00:03
@Josiahdanderson you have created string. Write only var myVar; to declare variable with 'undefined' content.
Brian H
@rckymtndev
Jan 02 2016 00:04
I am at the waypoint where you put a background color in the div element
Aleksander Gębicki
@Takumar
Jan 02 2016 00:04
@xavierartot yes, 5%3 === 2 but your arguments are 11 and 3, result should be 2.
Bill
@kirah1314
Jan 02 2016 00:04
@sammyb123 use bracket notation here return myObj.gift; with checkProp instead of gift
Brian
@sludge256
Jan 02 2016 00:04
@hollyhascode So you have an extra }
Safaa Alkhatib
@safaaAlkhatib
Jan 02 2016 00:04
@xavierartot right
Brian
@sludge256
Jan 02 2016 00:04
and some of your code is below the only change code above this line
Xavier Artot
@xavierartot
Jan 02 2016 00:05
the instruction they part of the exercice?
Brian H
@rckymtndev
Jan 02 2016 00:05
I assigned it to the element and the background turned gray, but the p element below is now having issues
Aleksander Gębicki
@Takumar
Jan 02 2016 00:05
@xavierartot and result should be stored in remainder variable.
Xavier Artot
@xavierartot
Jan 02 2016 00:05
ok
Brian
@sludge256
Jan 02 2016 00:05
@hollyhascode disregard my last few messages I see some of it was already provded on initial load
Xavier Artot
@xavierartot
Jan 02 2016 00:05
rmainder=11%3;
Josiah Anderson
@Josiahdanderson
Jan 02 2016 00:05
@Takumar ok. I just see that in some of the waypoints such as "Use Bracket Notation to Find the First Character in a String", they put variables in there with empty double quotes. I was just wondering what the purpose of this was.
Xavier Artot
@xavierartot
Jan 02 2016 00:06
ha or he wasn't clear
at all
Aleksander Gębicki
@Takumar
Jan 02 2016 00:06
@xavierartot almost. var remainder = ...
Holly Williford
@hollyhascode
Jan 02 2016 00:06
@sludge256 I don't believe there is an extra bracket
also my code is not only change code above this line
Xavier Artot
@xavierartot
Jan 02 2016 00:06
or I'm just no logical at all?
Holly Williford
@hollyhascode
Jan 02 2016 00:06
that was there when I started it. I did a reset to double check
Xavier Artot
@xavierartot
Jan 02 2016 00:07
thanks for the help
Brian
@sludge256
Jan 02 2016 00:07
@hollyhascode You have two } before the return No
Xavier Artot
@xavierartot
Jan 02 2016 00:07
I will follow the instruction next time
Brian
@sludge256
Jan 02 2016 00:07
it passes once you get rid of one of them
Aleksander Gębicki
@Takumar
Jan 02 2016 00:07
@Josiahdanderson when you put empty quotes you are sure, that this variable stores empty string, without that it may be number, string, boolean but without any value (undefined) !
Roshan Ghadamian
@RGhadamian
Jan 02 2016 00:08
has anyone here done the bonfire seek and destroy using filters?
I’m stuck and a bit lost
Josiah Anderson
@Josiahdanderson
Jan 02 2016 00:08
ok. that makes a lot of sense. thanks @Takumar
CamperBot
@camperbot
Jan 02 2016 00:08
josiahdanderson sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:warning: josiahdanderson already gave takumar points
Aleksander Gębicki
@Takumar
Jan 02 2016 00:08
@Josiahdanderson if you want to make it a number, you can initialize it with i.e. 0 :
var age = 0;
var shouldFinish = false;
Kevin Amado
@AMadToon
Jan 02 2016 00:09
hello everyone
Josiah Anderson
@Josiahdanderson
Jan 02 2016 00:10
@Takumar alright. and i assume then for a boolean it is initialized as true or false.
@Takumar haha i just saw your example.
Al-ameen Ak
@Alameen007
Jan 02 2016 00:11
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":
      count--;
  }
  if (count > 0 ) {
return count + " Bet";
}
else if (count <= 0) {
return count + " Hold";
}
  else if (count < -1) {
    return count + " Hold";
  }





  // Only change code above this line
}

// Add/remove calls to test your function. 
// Note: Only the last will display
cc(2); cc(3); cc(7); cc('K'); cc('A');
Nic Miller
@nicopotomus
Jan 02 2016 00:12

I'm lost on this - i understand the concept but not how I should apply it
Instructions
Set remainder equal to the remainder of 11 divided by 3 using the remainder (%) operator.

var remainder=2;
11 % 3;

xEpicDanielx
@xEpicDanielx
Jan 02 2016 00:12
Hey can anyone help with the Node JS Waypoint?
Brian
@sludge256
Jan 02 2016 00:12
11 % 3 = 2 so assign remainder to 11% 3
Brian H
@rckymtndev
Jan 02 2016 00:13
got it
Xavier Artot
@xavierartot
Jan 02 2016 00:13
11/3=9.2
so the result is 2
Brian H
@rckymtndev
Jan 02 2016 00:13
Sometimes the devil is in the details
Nic Miller
@nicopotomus
Jan 02 2016 00:13
... i get the math lol
just not what i'm supposed to code
Brian H
@rckymtndev
Jan 02 2016 00:14
Didn't get it. dang
Nic Miller
@nicopotomus
Jan 02 2016 00:14
lol
Xavier Artot
@xavierartot
Jan 02 2016 00:14
??
Brian
@sludge256
Jan 02 2016 00:14
assign the equation to the variable
instead of directly assigning two
Xavier Artot
@xavierartot
Jan 02 2016 00:14
we use that to find the odd in a loop
for example
Nic Miller
@nicopotomus
Jan 02 2016 00:15
got it!
Xavier Artot
@xavierartot
Jan 02 2016 00:15
if(5%i)....
xEpicDanielx
@xEpicDanielx
Jan 02 2016 00:15
Hey, anyone do the Manage Packages with NPM challenge?
Nic Miller
@nicopotomus
Jan 02 2016 00:15
whoa - i was looking at that from all the wrong angles - thank you @sludge256
CamperBot
@camperbot
Jan 02 2016 00:15
nicopotomus sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 467 | @sludge256 | http://www.freecodecamp.com/sludge256
Xavier Artot
@xavierartot
Jan 02 2016 00:15
is odd or even
Brian
@sludge256
Jan 02 2016 00:16
even numbers will be divisible by 2 with a remainder of 0 so odd numbers will be the opposite @xavierartot
That's how I do it at least
Brian H
@rckymtndev
Jan 02 2016 00:16
<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 style="background-color:  gray;"> 

 <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>
What am I missing with background color in div element?
Xavier Artot
@xavierartot
Jan 02 2016 00:17
5%i I get the odd
I agrre
Kandianne
@Kandianne
Jan 02 2016 00:17
Hi All...I'm on the Escape sequences in String section and am asked to... Encode the following sequence, separated by spaces:
backslash tab tab carriage-return new-line and assign it to myStr
Aleksander Gębicki
@Takumar
Jan 02 2016 00:17
@Kandianne congratulations that you are so far :-)
Brian
@sludge256
Jan 02 2016 00:17
@rckymtndev which waypoint?
Kandianne
@Kandianne
Jan 02 2016 00:18
here's my answer but it's telling me there's a syntax error
Bill
@kirah1314
Jan 02 2016 00:18
@Alameen007 you have to move the if statements to after each of the 3 count scenarios
Brian H
@rckymtndev
Jan 02 2016 00:18
Waypoint: Give a Background Color to a Div Element
Kandianne
@Kandianne
Jan 02 2016 00:18
var myStr = \ \t \t \r \n;
Kevin Amado
@AMadToon
Jan 02 2016 00:18
@rckymtndev you need to make a class called .gray background
Kandianne
@Kandianne
Jan 02 2016 00:18
thanks @Takumar !
CamperBot
@camperbot
Jan 02 2016 00:18
kandianne sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 1422 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Jan 02 2016 00:18
@Kandianne but your codes inside quotation marks.
var myStr = "\\ ....
Brian H
@rckymtndev
Jan 02 2016 00:18
In the style element?
Kevin Amado
@AMadToon
Jan 02 2016 00:18
@rckymtndev yeah
Brian H
@rckymtndev
Jan 02 2016 00:19
Ok I will try it
Kevin Amado
@AMadToon
Jan 02 2016 00:19
then have it 'used in the div.... i just got past that part not to long ago
Kandianne
@Kandianne
Jan 02 2016 00:19
oh duh! :o
Kevin Amado
@AMadToon
Jan 02 2016 00:19
.gray-background {
background-color: gray;
}
Kandianne
@Kandianne
Jan 02 2016 00:19
thanks again Takumar
Aleksander Gębicki
@Takumar
Jan 02 2016 00:19
@Kandianne don't worry it happens to the best :-)
Happy New Year! :-)
Suyash
@sid7
Jan 02 2016 00:19

in Waypoint: Updating Object Properties
Instructions
Update the myDog object's name property. Let's change her name from "Coder" to "Happy Coder". You can use either dot or bracket notation.

but when i tried to it with bracket notation it shows error

Bill
@kirah1314
Jan 02 2016 00:20
@sid7 paste what you tried here?
Kevin Amado
@AMadToon
Jan 02 2016 00:20
@rckymtndev like this
.gray-background {
background-color: gray;
}
Kandianne
@Kandianne
Jan 02 2016 00:20
@Takumar happy new year to you too :)
Aleksander Gębicki
@Takumar
Jan 02 2016 00:20
Thank you @Kandianne
CamperBot
@camperbot
Jan 02 2016 00:20
takumar sends brownie points to @kandianne :sparkles: :thumbsup: :sparkles:
Pedro Diaz
@diazp
Jan 02 2016 00:20
Thanks @Takumar - I've managed to get rid of the undefined with Math.abs and .length to prevent negative numbers in an array
CamperBot
@camperbot
Jan 02 2016 00:20
diazp sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 205 | @kandianne | http://www.freecodecamp.com/kandianne
:star: 1423 | @takumar | http://www.freecodecamp.com/takumar
Suyash
@sid7
Jan 02 2016 00:20
myDog["name"]="happy Coder";
Pedro Diaz
@diazp
Jan 02 2016 00:21
I still seem to be getting an incorrect decoded string
Aleksander Gębicki
@Takumar
Jan 02 2016 00:21
@diazp good job! :-) So Happy New Year to you too! :-)
Bill
@kirah1314
Jan 02 2016 00:21
@diazp paste your updated codes? I just finished that waypoint
Kevin Amado
@AMadToon
Jan 02 2016 00:21
@rckymtndev did it work?
Pedro Diaz
@diazp
Jan 02 2016 00:21
Here's my latest code http://pastebin.com/daKkzn2s
Suyash
@sid7
Jan 02 2016 00:21
when i change bracket notation to dot it worked
but according to instruction it should work with brackets
Brian
@sludge256
Jan 02 2016 00:22
@sid7 Try resetting
it passed for me
Al-ameen Ak
@Alameen007
Jan 02 2016 00:22

@kirah1314 still didn't get the 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":
count--;
}
if (count > 0 ) {
return count + " Bet";
}
else if (count <= 0) {
return count + " Hold";
}
else if (count < -1) {
return count + " Hold";
}

// Only change code above this line
}

// Add/remove calls to test your function.
// Note: Only the last will display
cc(2); cc(3); cc(7); cc('K'); cc('A');

Suyash
@sid7
Jan 02 2016 00:22
ok
Kevin Amado
@AMadToon
Jan 02 2016 00:23
@rckymtndev make the class, then do <div class="gray-background">.... did it work?
Suyash
@sid7
Jan 02 2016 00:24
@sludge256 after rest it worked
but with error indication
xEpicDanielx
@xEpicDanielx
Jan 02 2016 00:24
Hey, can anyone help me with the MANAGING PACKAGES WITH NPM waypoint?
Brian H
@rckymtndev
Jan 02 2016 00:24
@AMadToon I am trying to do that in the style class
does not seem to be working
Bill
@kirah1314
Jan 02 2016 00:26
@Alameen007 for the 3rd time, you have to copy/move your if statements to each of the 3 count scenarios. Let me give you the codes to compare
KickAssBrockSamson
@KickAssBrockSamson
Jan 02 2016 00:26
Waypoint: Accessing Objects Properties with the Dot Operator
Bill
@kirah1314
Jan 02 2016 00:27
hmm didn't work so well
KickAssBrockSamson
@KickAssBrockSamson
Jan 02 2016 00:27

// Setup
var testObj = {
"hat": "ballcap",
"shirt": "jersey",
"shoes": "cleats"
};

// Only change code below this line

testObj.hat; // Change this line
testObj.shirt; // Change this line

Can I get a hint as to what I am doing wrong
Brian H
@rckymtndev
Jan 02 2016 00:28
@AMadToon hang on
Kevin Amado
@AMadToon
Jan 02 2016 00:28
@rckymtndev if made the .gray-background class, then the div should look like <div class="gray-background"> also dont forget to close your bracket for everything I looked at you '.smaller-image' bit and you dont have it closed with ' } '
Bill
@kirah1314
Jan 02 2016 00:29
@Alameen007
  switch(card) {
    case 2:
    case 3:
    case 4:
    case 5:
    case 6:
      count += 1;
      if (count > 0) {
              return count + " Bet";
      } else {
        return count + " Hold";
      }
      break;

    case 7:
    case 8:
    case 9:
      count += 0;
      if (count > 0) {
              return count + " Bet";
      } else {
        return count + " Hold";
      }
      break;

    case 10:
    case "J":
    case "Q":
    case "K":
    case "A":
      count -= 1;
         if (count > 0) {
              return count + " Bet";
      } else {

        return count + " Hold";
      }
  }
Brian H
@rckymtndev
Jan 02 2016 00:29
@AMadToon It worked. Thank you
CamperBot
@camperbot
Jan 02 2016 00:29
rckymtndev sends brownie points to @amadtoon :sparkles: :thumbsup: :sparkles:
:star: 54 | @amadtoon | http://www.freecodecamp.com/amadtoon
Kevin Amado
@AMadToon
Jan 02 2016 00:29
you're welcome
xEpicDanielx
@xEpicDanielx
Jan 02 2016 00:30
hey, anyone good with the Manage Packages with NPM waypoint?
Bill
@kirah1314
Jan 02 2016 00:30
@diazp your codes only goes 13 - a but you also need to go 13 + a
KickAssBrockSamson
@KickAssBrockSamson
Jan 02 2016 00:31
Waypoint: Accessing Objects Properties with the Dot Operator
// Setup
var testObj = {
  "hat": "ballcap",
  "shirt": "jersey",
  "shoes": "cleats"
};
// Only change code below this line
testObj.hat;      // Change this line
testObj.shirt;   // Change this line
Herman Fassett
@HermanFassett
Jan 02 2016 00:31
@xEpicDanielx post any problems you have and chances are someone can help
Bill
@kirah1314
Jan 02 2016 00:32
@diazp should look into String.fromCharCode http://devdocs.io/javascript/global_objects/string/fromcharcode
xEpicDanielx
@xEpicDanielx
Jan 02 2016 00:32

Indeed, not all is well here in dep-land.

Your dependencies should be listed in the package.json file in an
object called 'dependencies'. However, when we installed '@linclark/pkg',
we didn't update the package.json file to list out this dependency.

So, it shows up as 'extraneous', warning us that we have something
there that we haven't listed as a dependency.

The easiest way to avoid this situation is to use the --save flag
when installing dependencies. You might not want to do this with
things that you're just trying out, but when you decide on something,
you can use this flag to update your package.json file easily.

Try running npm install @linclark/pkg --save to install the module, and also
update your package.json file at the same time.

(Another option is to just edit package.json yourself in a text editor)

Then run how-to-npm verify OK once you've fixed the problem.

//
I ran the --save call and it still gives this error, I also updated the json file and it still doesnt work :/

Herman Fassett
@HermanFassett
Jan 02 2016 00:33
@xEpicDanielx what's the json look like?
xEpicDanielx
@xEpicDanielx
Jan 02 2016 00:33
{
"name": "daniel",
"version": "1.0.0",
"description": "Just A Test To Learn This",
"main": "server.js",
"dependencies": {
"async": "^0.2.10",
"express": "^3.2.6",
"socket.io": "^0.9.17"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js",
"linclark": "1.0.2"
},
"repository": {
"type": "git",
"url": "Test Repo"
},
"author": "Daniel Marifjeren",
"license": "ISC"
}
Jason Watkins
@jasonwatkins
Jan 02 2016 00:34
record collection
Herman Fassett
@HermanFassett
Jan 02 2016 00:35
@xEpicDanielx I don't see it in your dependencies
Bill
@kirah1314
Jan 02 2016 00:35
This message was deleted
xEpicDanielx
@xEpicDanielx
Jan 02 2016 00:35
should it be in devDependencies?
Bill
@kirah1314
Jan 02 2016 00:36
@jasonwatkins what's your question?
xEpicDanielx
@xEpicDanielx
Jan 02 2016 00:37
@HermanFassett even when I put it like this
  "dependencies": {
    "async": "^0.2.10",
    "express": "^3.2.6",
    "socket.io": "^0.9.17",
    "linclark": "1.0.2"
  },
it does not work :/
KickAssBrockSamson
@KickAssBrockSamson
Jan 02 2016 00:37
Thanks!
Al-ameen Ak
@Alameen007
Jan 02 2016 00:38
@kirah1314 i compare and correct it, thanks man
CamperBot
@camperbot
Jan 02 2016 00:38
alameen007 sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 711 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Herman Fassett
@HermanFassett
Jan 02 2016 00:38
@xEpicDanielx been awhile since I did this, do you need the direct package (i.e. not just linclark)?
xEpicDanielx
@xEpicDanielx
Jan 02 2016 00:39
I am not sure.
Bill
@kirah1314
Jan 02 2016 00:39
@Alameen007 :thumbsup: it may have been less complicated to do that using only ifand if else statements
xEpicDanielx
@xEpicDanielx
Jan 02 2016 00:39

Your dependencies should be listed in the package.json file in an
object called 'dependencies'. However, when we installed '@linclark/pkg',
we didn't update the package.json file to list out this dependency.

So, it shows up as 'extraneous', warning us that we have something
there that we haven't listed as a dependency.

thtas what it says
Jason Watkins
@jasonwatkins
Jan 02 2016 00:39
@kirah1314 i was trying to look at the wiki for http://www.freecodecamp.com/challenges/waypoint-record-collection. not sure what method exactly to use to update/delete records
Herman Fassett
@HermanFassett
Jan 02 2016 00:40
@xEpicDanielx did you try adding literal @linclark/pkg as dependency? I'm not sure
xEpicDanielx
@xEpicDanielx
Jan 02 2016 00:41
@HermanFassett I love you! That worked
@HermanFassett thank you!
CamperBot
@camperbot
Jan 02 2016 00:41
xepicdanielx sends brownie points to @hermanfassett :sparkles: :thumbsup: :sparkles:
:star: 1241 | @hermanfassett | http://www.freecodecamp.com/hermanfassett
Bill
@kirah1314
Jan 02 2016 00:41
@jasonwatkins you just need to use if statements but note to use bracket notations for id, prop, value
Herman Fassett
@HermanFassett
Jan 02 2016 00:41
Yep
Al-ameen Ak
@Alameen007
Jan 02 2016 00:42
@kirah1314 yeah i see now
Jason Watkins
@jasonwatkins
Jan 02 2016 00:43
@kirah1314 ah ok, i keep using dot notation, i'l give bracket a try
hey everyone just fyi the editor in the waypoints supports quite a few emmet shortcuts
so instead of typing <div class="container></div> you can just type .container (it defaults to div)
tarek elgohry
@tarek2020
Jan 02 2016 00:48
hello
can anyone tell me what's the error with this code ?
<P> Hello paragraph</p>
Bill
@kirah1314
Jan 02 2016 00:49
@tarek2020 probably the caps P
tarek elgohry
@tarek2020
Jan 02 2016 00:50
@kirah1314 yes thanks
CamperBot
@camperbot
Jan 02 2016 00:50
tarek2020 sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 712 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Justinshort2015@icloud.com
@justinshort2015
Jan 02 2016 00:51
does anybody know how to do this one?
Bill
@kirah1314
Jan 02 2016 00:52
@justinshort2015 yes, have you tried it? Post what you tried?
Justinshort2015@icloud.com
@justinshort2015
Jan 02 2016 00:53
I dont know exaclty how to start it? do you turn 7,8,&9 all into myVar's?
Ash
@Phoenixquest
Jan 02 2016 00:53
Hello, I was wondering if someone could help me out with Waypoint: change font size of an element?
Bill
@kirah1314
Jan 02 2016 00:54
@justinshort2015 you have to change a = a + 12; into a += 12;
Justinshort2015@icloud.com
@justinshort2015
Jan 02 2016 00:55
ok i'm going to try that! thank you! @kirah1314
CamperBot
@camperbot
Jan 02 2016 00:55
justinshort2015 sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 713 | @kirah1314 | http://www.freecodecamp.com/kirah1314
xEpicDanielx
@xEpicDanielx
Jan 02 2016 00:56
Hey, does anyone know how to add a 'dist-tag' to your package?
Justinshort2015@icloud.com
@justinshort2015
Jan 02 2016 00:57
it worked! thank you! @kirah1314
CamperBot
@camperbot
Jan 02 2016 00:57
justinshort2015 sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:warning: justinshort2015 already gave kirah1314 points
Brett
@Brettb2k8
Jan 02 2016 00:57
still need help @Phoenixquest ?
Bill
@kirah1314
Jan 02 2016 00:57
@justinshort2015 :thumbsup: glad to help!
Brett
@Brettb2k8
Jan 02 2016 00:59
can anyone help me out with Waypoint: Access MultiDimensional Arrays With Indexes
Brett
@Brettb2k8
Jan 02 2016 00:59
i got it to calculate 8
Xavier Artot
@xavierartot
Jan 02 2016 00:59
my solution is: var myStr= "This is the start." + " This is the end";
Bill
@kirah1314
Jan 02 2016 00:59
@Brettb2k8 post your codes?
Brett
@Brettb2k8
Jan 02 2016 00:59
but get en error for You should be using bracket notation to read the value from myArray.
var myData = myArray 2;
Xavier Artot
@xavierartot
Jan 02 2016 00:59
I didn't see the problem?
Brett
@Brettb2k8
Jan 02 2016 01:00
var myData = myArray 2;

// Setup
var myArray = [[1,2,3], [4,5,6], [7,8,9], [[10,11,12], 13, 14]];

// Only change code below this line.
var myData = myArray 2;

and mines are 2
Bill
@kirah1314
Jan 02 2016 01:00
@xavierartot try adding a space after start. and removing the space before "this"
Brett
@Brettb2k8
Jan 02 2016 01:01
\2
Xavier Artot
@xavierartot
Jan 02 2016 01:01
I did
first
i think is a bug?
Bill
@kirah1314
Jan 02 2016 01:01
@xavierartot hmm try reset and redo it?
Brett
@Brettb2k8
Jan 02 2016 01:01
make space after the period in start?
Robert Dixon
@vmRobert
Jan 02 2016 01:02
Well i'm dropping off for now. Thanks everyone. I will more then likely visit this chat often as it seems very useful. I just commited myself to a non-profit pledge to keep myself on track.
Jill
@ghjal
Jan 02 2016 01:02
Waypoint: Return Early Pattern for Functions doesn't seem to be working
Xavier Artot
@xavierartot
Jan 02 2016 01:02
i did too
Jill
@ghjal
Jan 02 2016 01:02
oops - here is the code if (a < 0 || b < 0) {
return "undefined";
}
Xavier Artot
@xavierartot
Jan 02 2016 01:03
weird?
Brett
@Brettb2k8
Jan 02 2016 01:03
@xavierartot it worked for me just now
Bill
@kirah1314
Jan 02 2016 01:03
@Brettb2k8 have you had a chance to look at the example on the left?
var arr = [
    [1,2,3], [4,5,6], [7,8,9], [[10,11,12], 13, 14]
];
arr[0]; // equals [1,2,3]
arr[1][2]; // equals 6
arr[3][0][1]; // equals 11
Brett
@Brettb2k8
Jan 02 2016 01:03
so i got it to calculate correctly
Jill
@ghjal
Jan 02 2016 01:04
how do you get the code to print out so nicely in this help area?
Bill
@kirah1314
Jan 02 2016 01:04
help format
CamperBot
@camperbot
Jan 02 2016 01:04

: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 02 2016 01:04
@ghjal remove the quotes around undefined
Brett
@Brettb2k8
Jan 02 2016 01:05
still stuck on formating the brackets
Jill
@ghjal
Jan 02 2016 01:05
@kirah1314 that worked, but why. Is it because undefined is a special word?
Brett
@Brettb2k8
Jan 02 2016 01:06
lol so strange...i did a reset and re did the code same way and it worked....
Bill
@kirah1314
Jan 02 2016 01:06
@ghjal undefined is a property of the global object and not a string that's why. Read here for more details http://devdocs.io/javascript/global_objects/undefined
Xavier Artot
@xavierartot
Jan 02 2016 01:06
I just forgot the point at the end of the sentence :(
Bill
@kirah1314
Jan 02 2016 01:07
@xavierartot that waypoint is very picky, can't add a space before the semi-colon either
Jill
@ghjal
Jan 02 2016 01:10
@kirah1314 Thank you!
CamperBot
@camperbot
Jan 02 2016 01:10
ghjal sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 714 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Jill
@ghjal
Jan 02 2016 01:10

just testing `var count = 0;

function cc(card) {
// Only change code below this line

return "Change Me";`

testing again ```var count = 0;

function cc(card) {
// Only change code below this line

return "Change Me";

Brian
@sludge256
Jan 02 2016 01:12
@ghjal Trying to do this?
Hello
Jill
@ghjal
Jan 02 2016 01:13
Arrggg - Not getting it.
Gabriel Cardoso Mendes
@gabrielcmendes
Jan 02 2016 01:13
hello ppl
Jill
@ghjal
Jan 02 2016 01:14

@sludge256 How do you do it, again?
Brian
@sludge256
Jan 02 2016 01:15
@gabrielcmendes :wave:
so you do
three ` (shift enter)
paste code (shift enter)
three ` (ctrl enter)
oh hold on
Justinshort2015@icloud.com
@justinshort2015
Jan 02 2016 01:16
Does anybody know how to do this? I'm a little stuck!
Brian
@sludge256
Jan 02 2016 01:16
but obviously not the the word three
tarek elgohry
@tarek2020
Jan 02 2016 01:16
sorry anyone can help me what's error in this code!

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

Gabriel Cardoso Mendes
@gabrielcmendes
Jan 02 2016 01:16
well.. i cant do the celsius to fahrenheit algorithm .. i will paste here my code
Justinshort2015@icloud.com
@justinshort2015
Jan 02 2016 01:16
ok
Jill
@ghjal
Jan 02 2016 01:17
Hello
Brian
@sludge256
Jan 02 2016 01:17
@tarek2020 That's not how you declare a css class
Gabriel Cardoso Mendes
@gabrielcmendes
Jan 02 2016 01:18
heeey! i got it XD
Jill
@ghjal
Jan 02 2016 01:18
I think I have it! Thanks!
Brian
@sludge256
Jan 02 2016 01:18
@gabrielcmendes :+1:
Bill
@kirah1314
Jan 02 2016 01:18
@justinshort2015 you didn't finish that waypoint?
tarek elgohry
@tarek2020
Jan 02 2016 01:18
@sludge256 sorry ca you write a correct declare
Justinshort2015@icloud.com
@justinshort2015
Jan 02 2016 01:19
I got through what you got me started on and got stuck on;http://www.freecodecamp.com/challenges/waypoint-assignment-with-plus-equals
Brian
@sludge256
Jan 02 2016 01:19
@tarek2020 here's the example in the instructions
.blue-text {

 color: blue;

 }
Justinshort2015@icloud.com
@justinshort2015
Jan 02 2016 01:19
I'm not sure how to begin!
Pedro Diaz
@diazp
Jan 02 2016 01:19
After much hair pulling and coffee I finally passed the Caesars Cipher Waypoint. Shoutout and thanks to @kirah1314 and @Takumar for the help! Simplicity really is the ultimate sophistication.
CamperBot
@camperbot
Jan 02 2016 01:19
diazp sends brownie points to @kirah1314 and @takumar :sparkles: :thumbsup: :sparkles:
:warning: diazp already gave takumar points
:star: 715 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Bill
@kirah1314
Jan 02 2016 01:19
@justinshort2015 but you pasted same waypoint link
@diazp glad to help! :thumbsup:
tarek elgohry
@tarek2020
Jan 02 2016 01:20
@sludge256 give me error
Justinshort2015@icloud.com
@justinshort2015
Jan 02 2016 01:21
@kirah1314 Well, thats where I'm stuck, converting celsius to fahernheit
Pawan
@pawan92
Jan 02 2016 01:21
var total=0;
for(var i = 0; i < myArr.length; i++){
  total +=myArray[i];
}
can anyone see a mistake in this
it says myArr undefined
and its defined
Gabriel Cardoso Mendes
@gabrielcmendes
Jan 02 2016 01:22
where ?
Brian
@sludge256
Jan 02 2016 01:22
there's no var MyArr = [] in the code you gave us
Gabriel Cardoso Mendes
@gabrielcmendes
Jan 02 2016 01:22
where are u defining myArr
Alice
@AliceReid
Jan 02 2016 01:22
I don't understand instructions: "Assign the contents of a to variable b." How do I write that?
Pawan
@pawan92
Jan 02 2016 01:22
there is in the code they provide us:
var myArr = [ 2, 3, 4, 5, 6];

// Only change code below this line
var total=0;
for(var i = 0; i < myArr.length; i++){
  total +=myArray[i];
}
Brian
@sludge256
Jan 02 2016 01:23
@AliceReid var b = a;
whatever is in a is now assigned to b
Bill
@kirah1314
Jan 02 2016 01:23
@justinshort2015 oh ok for that waypoint, you need to declare a new variable to equal to a math equation that converts celsius to fahrenheit
Vik
@vvang044
Jan 02 2016 01:24
how to give button element with id target1 the text # target1?......
Justinshort2015@icloud.com
@justinshort2015
Jan 02 2016 01:24
@kirah1314 would i start it like this? myVar
Bill
@kirah1314
Jan 02 2016 01:24

@justinshort2015 the instructions:

Create a variable fahrenheit and apply the algorithm to assign it the corresponding temperature in Fahrenheit.

Rita Alfonso
@alfonsotech
Jan 02 2016 01:24
Trying this in more general chat: In RegExp, does this ^(A-Z)(a-z)$ mean find a capital letter followed by a lowercase letter?
Gabriel Cardoso Mendes
@gabrielcmendes
Jan 02 2016 01:24
@vvang044 you can .append()
Brian
@sludge256
Jan 02 2016 01:24
@vvang044 <button>buttontexthere</button>
Gabriel Cardoso Mendes
@gabrielcmendes
Jan 02 2016 01:24
or .text();
Bill
@kirah1314
Jan 02 2016 01:24
@justinshort2015 so var fahrenheit = ?
Will Seymour
@wseymour
Jan 02 2016 01:25
'''
CamperBot
@camperbot
Jan 02 2016 01:25
:bulb: to format code use backticks! ``` more info
Justinshort2015@icloud.com
@justinshort2015
Jan 02 2016 01:25
@kirah1314 ok! I'll try that!
Vik
@vvang044
Jan 02 2016 01:25
oh....
i was trying to give it inside the button element
Pawan
@pawan92
Jan 02 2016 01:26
@sludge256 so see anything wrong?
Justinshort2015@icloud.com
@justinshort2015
Jan 02 2016 01:26
@kirah1314 THANK YOU!!!
CamperBot
@camperbot
Jan 02 2016 01:26
justinshort2015 sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:warning: justinshort2015 already gave kirah1314 points
Brian
@sludge256
Jan 02 2016 01:27
@pawan92 which wp is it?
Pawan
@pawan92
Jan 02 2016 01:27
@sludge256 Waypoint: Iterate Through an Array with a For Loop
one of the last ones in JS
Bill
@kirah1314
Jan 02 2016 01:27
@pawan92 shouldn't it be total +=myArr[i];?
Gabriel Cardoso Mendes
@gabrielcmendes
Jan 02 2016 01:27
yeah kirah i think its that
Bill
@kirah1314
Jan 02 2016 01:28
@pawan92 you didn't declare myArray anywhere
Will Seymour
@wseymour
Jan 02 2016 01:28
Does anyone know why this is not putting in the whitespaces and characters?
for (var i in codeArr) {
    if (codeArr[i] == '/^[A-Z]/') {
      decodedArr[i] = codeArr[i];
    } else {
    decodedArr[i] = mapped[codeArr[i]];
  }
  }
Brian
@sludge256
Jan 02 2016 01:28
yep
change myArray
Pawan
@pawan92
Jan 02 2016 01:28
@kirah1314 AHHH OMG syntax thanks
CamperBot
@camperbot
Jan 02 2016 01:28
pawan92 sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 716 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Bill
@kirah1314
Jan 02 2016 01:29
@pawan92 :)
Will Seymour
@wseymour
Jan 02 2016 01:29
mapped is just an array of {"A": "N", "B": "O" ... etc
Brian
@sludge256
Jan 02 2016 01:29
@alfonsotech Use [] instead of ()
Rita Alfonso
@alfonsotech
Jan 02 2016 01:30
@sludge256 you mean ^[A-Z][a-z]$?
Brian
@sludge256
Jan 02 2016 01:30
@alfonsotech I believe so
Will Seymour
@wseymour
Jan 02 2016 01:30
Let me clarify: That code translates, but only the alpha chars
Bill
@kirah1314
Jan 02 2016 01:31
@wseymour for that waypoint, you might want to take a look at String.fromCharCode, charCodeAtand match() method
Brian
@sludge256
Jan 02 2016 01:32
@wseymour maybe try adding a (space) after [A-Z]
inside the brackets
so it will also look for whitespaces
Elifaz Filho
@elifaz25
Jan 02 2016 01:33
@lunimini you’re correct, show me your code let me see..
Brian
@sludge256
Jan 02 2016 01:33
This message was deleted
Elifaz Filho
@elifaz25
Jan 02 2016 01:35
@lunimini from what I read on your post you only need to add the form-control class on your text field input
@codeknight007 you haven’t closed the function with the curly braces and called after it
@codeknight007
say
function test() {
   console.log(“Hello World”);
}
test();
Will Seymour
@wseymour
Jan 02 2016 01:37
Thanks @sludge256 and @kirah1314
CamperBot
@camperbot
Jan 02 2016 01:37
wseymour sends brownie points to @sludge256 and @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 717 | @kirah1314 | http://www.freecodecamp.com/kirah1314
:star: 470 | @sludge256 | http://www.freecodecamp.com/sludge256
Fabian Contrarias
@FabianContrarias
Jan 02 2016 01:43
hi everyone
Elifaz Filho
@elifaz25
Jan 02 2016 01:43
@FabianContrarias Welcome!
Fabian Contrarias
@FabianContrarias
Jan 02 2016 01:44
i
i'm stuck on ;
Waypoint: Increment a Number with Javascript
var myVar = 87;

// Only change code below this line
myVar = myVar + 1;
Bill
@kirah1314
Jan 02 2016 01:45
@FabianContrarias myVar+=1; actually
Joe1828
@Joe1828
Jan 02 2016 01:45
I am stuck on Waypoint: Split your Bootstrap Row
Elifaz Filho
@elifaz25
Jan 02 2016 01:46
@FabianContrarias alright, cool, this code woudl work the way it is but they are asking you to add through the ++ operator
Joe1828
@Joe1828
Jan 02 2016 01:46
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<div class="col-xs-6">

</div>
</div>
</div>
</div>
How do I paste the code better?
Elifaz Filho
@elifaz25
Jan 02 2016 01:46
This message was deleted
@Joe1828 use the ``` sign bellow your esc button
Nic Miller
@nicopotomus
Jan 02 2016 01:46
what's goin on here? I'm supposed to escape a sequence backslash tab tab carriage-return new-line and assign it to myStr var myStr= \ \t \t \r \n
Brian
@sludge256
Jan 02 2016 01:47
@nicopotomus it should be a string
Bill
@kirah1314
Jan 02 2016 01:47
@nicopotomus put quotes around them
Nic Miller
@nicopotomus
Jan 02 2016 01:47
still doesn't work
Brian
@sludge256
Jan 02 2016 01:48
@Joe1828 you col xs 6 is nested in the first one
Bill
@kirah1314
Jan 02 2016 01:48
@nicopotomus the first should be \\ and not \
Brian
@sludge256
Jan 02 2016 01:48
it should be outside of it
Elifaz Filho
@elifaz25
Jan 02 2016 01:48
@Joe1828 your divs are nested
Nic Miller
@nicopotomus
Jan 02 2016 01:48
i got it
thank you
Jason C.
@jayman3838
Jan 02 2016 01:49
var myStr \ \t \t \r \n
Encode the following sequence, separated by spaces:
backslash tab tab carriage-return new-line and assign it to myStr
Joe1828
@Joe1828
Jan 02 2016 01:49
How do I fix it?
Jason C.
@jayman3838
Jan 02 2016 01:49
help
CamperBot
@camperbot
Jan 02 2016 01:49

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

Joe1828
@Joe1828
Jan 02 2016 01:49
<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
    <div class="col-xs-6">

    </div>
    </div>
  </div>
</div>
How do I fix it?
Elifaz Filho
@elifaz25
Jan 02 2016 01:49
<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">

    </div>
    <div class="col-xs-6">
    </div>
  </div>
</div>
Joe1828
@Joe1828
Jan 02 2016 01:49
Create two div elements within your row, both with the class col-xs-6.
Brian
@sludge256
Jan 02 2016 01:50
move one of your </div> to after the first col xs 6 div
Joe1828
@Joe1828
Jan 02 2016 01:50
Ok I'll try thanks let me check :)
Jason C.
@jayman3838
Jan 02 2016 01:50
can someone help me
Joe1828
@Joe1828
Jan 02 2016 01:50
@sludge256 Thanks!
CamperBot
@camperbot
Jan 02 2016 01:50
joe1828 sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 471 | @sludge256 | http://www.freecodecamp.com/sludge256
Jason C.
@jayman3838
Jan 02 2016 01:51
helu is anyone there
Elifaz Filho
@elifaz25
Jan 02 2016 01:51
@jayman3838 hey what’s up
@jayman3838 what is the waypoint you’re in?
Cool Geek
@lovelikeme
Jan 02 2016 01:56
hey ya'll. I'm trying to add two classes to an element.Not working tho
<img class="smaller-image" "thick-green-border"
Kevin Amado
@AMadToon
Jan 02 2016 01:57
take out the inside quotes
Cool Geek
@lovelikeme
Jan 02 2016 01:57
ahh
Kevin Amado
@AMadToon
Jan 02 2016 01:58
it works i presume?
Cool Geek
@lovelikeme
Jan 02 2016 01:58
1/2 way
now when I try to execute, it erases the first class:
.smaller-image .thick-green-border {
width: 100px;
border-style: solid;
border-width: 10px;
border-color: green;
}
Leandro Lopes
@lelo81
Jan 02 2016 01:59
Hi
Kevin Amado
@AMadToon
Jan 02 2016 01:59
thick green border is a seperate class
Elifaz Filho
@elifaz25
Jan 02 2016 01:59
you missed a comma if you want to use the same properties for both classes @lovelikeme
Cool Geek
@lovelikeme
Jan 02 2016 01:59
yep
Leandro Lopes
@lelo81
Jan 02 2016 01:59
Trying to do Waypoint: Caesars Cipher
Elifaz Filho
@elifaz25
Jan 02 2016 02:00
@lelo81 What’s up let us know if you need assistance..
Cool Geek
@lovelikeme
Jan 02 2016 02:00
so .smaller-image, thick-green-border
Leandro Lopes
@lelo81
Jan 02 2016 02:00
Am I supposed to use fromCharCode and charCodeAt?
(considering it was not taught so far on previous exercises)
Cool Geek
@lovelikeme
Jan 02 2016 02:01
@AMadToon you rock!
thank you :)
Kevin Amado
@AMadToon
Jan 02 2016 02:01
.smaller-image should be just by itself with the width 100px and thick-green border is seperate with everything else
Cool Geek
@lovelikeme
Jan 02 2016 02:01
stuck for so long
Elifaz Filho
@elifaz25
Jan 02 2016 02:01
@lelo81 that’s part of the deal!! yeap, we haven’t been taught on that..I had to research on my own for Caesar
Kevin Amado
@AMadToon
Jan 02 2016 02:01
did that part earlier today
Cool Geek
@lovelikeme
Jan 02 2016 02:01
lol
Bill
@kirah1314
Jan 02 2016 02:01
@lelo81 it's possible to solve it without using those 2 methods for example listing all the alphabets and assign them with a number
Brian
@sludge256
Jan 02 2016 02:02
Yea people have done it with dictionaries
but it's very cumbersome
and takes a lot of typing
Leandro Lopes
@lelo81
Jan 02 2016 02:02
@kirah1314 indeed....
Elifaz Filho
@elifaz25
Jan 02 2016 02:02
@sludge256 exactly!
Leandro Lopes
@lelo81
Jan 02 2016 02:02
Any idea why for (var i = 0; i< codeArr.length ; i++) {
decodedArr[i] = String.fromCharCode(codeArr[i].charCodeAt() - 13);
} doesnt solve it?
rainingcatsanddogs
@rainingcatsanddogs
Jan 02 2016 02:02
what does it mean "nestled"
Leandro Lopes
@lelo81
Jan 02 2016 02:03
The E is getting into number 8
instead of R
Noelle Nicol
@nnicol
Jan 02 2016 02:03
how did i change he font size of elements with the p tag
Brian
@sludge256
Jan 02 2016 02:03
<div>
  <p> I am nested in a div</p>
</div>
Bill
@kirah1314
Jan 02 2016 02:03

@lelo81 the instructions FYI:

Thus 'A' ↔ 'N', 'B' ↔ 'O'

@lelo81 what happens if your letter is A to M?
rainingcatsanddogs
@rainingcatsanddogs
Jan 02 2016 02:04
p {
font-size: 16px}
Noelle Nicol
@nnicol
Jan 02 2016 02:04
thank you^
Kevin Amado
@AMadToon
Jan 02 2016 02:05
@rainingcatsanddogs put a semi colon after px
Pawan
@pawan92
Jan 02 2016 02:05
function multiplyAll(arr) {
  var product = 1;
  // Only change code below this line
  for(var i = 0; i < arr.length; i++){
    for(var j= 0; j< arr[i].length; j++){
      product*=product[[i][j]];
    }

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

// Modify values below to test your code
multiplyAll([[1],[2],[3]]);
i keep getting NaN what am i doing wrong?
Drew
@clarkdh
Jan 02 2016 02:05
is there a way to do a vertical align for images in a well? I tried using vertical-align: middle in CSS but no success
the projects section
Leandro Lopes
@lelo81
Jan 02 2016 02:06
@kirah1314 OK, fixed to +13. A goes to N.
but still SERR PBQR PNZC makes something else than FREE CODE CAMP :)
Kevin Amado
@AMadToon
Jan 02 2016 02:07
@clarkdh did you try putting them in a <div class="container-fluid">
Drew
@clarkdh
Jan 02 2016 02:08
@AMadToon Yup
Bill
@kirah1314
Jan 02 2016 02:08
@lelo81 you need both +13 and -13
Kevin Amado
@AMadToon
Jan 02 2016 02:08
@Clarkelb do you have the link to use container-fluid???
Drew
@clarkdh
Jan 02 2016 02:08
not sure what you mean
Kevin Amado
@AMadToon
Jan 02 2016 02:08
you know the bit you need at the top of the code
rainingcatsanddogs
@rainingcatsanddogs
Jan 02 2016 02:09
<p> view more <a href="http://freecatphotoapp.com">cat photos</a> view more </p>
Drew
@clarkdh
Jan 02 2016 02:09
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" /> ??
Brian
@sludge256
Jan 02 2016 02:09
@rainingcatsanddogs get rid of the ending view more
Leandro Lopes
@lelo81
Jan 02 2016 02:09
@kirah1314 anything closer to Z should go backwards instead of restarting from A?
rainingcatsanddogs
@rainingcatsanddogs
Jan 02 2016 02:09
thank you @sludge256
CamperBot
@camperbot
Jan 02 2016 02:09
rainingcatsanddogs sends brownie points to @sludge256 :sparkles: :thumbsup: :sparkles:
:star: 472 | @sludge256 | http://www.freecodecamp.com/sludge256
Kevin Amado
@AMadToon
Jan 02 2016 02:10
i think thats it, i didnt memorize it
Drew
@clarkdh
Jan 02 2016 02:10
hmm, so i guess i'm still at a loss
Elifaz Filho
@elifaz25
Jan 02 2016 02:10
@pawan92
how about product *= arr[[i] [j]];
Kevin Amado
@AMadToon
Jan 02 2016 02:10
me to sorry i couldnt help... your site looks cool though
Drew
@clarkdh
Jan 02 2016 02:10
thanks!
Bill
@kirah1314
Jan 02 2016 02:11

@lelo81 yup, that's why the arrows from the instructions go both directions:

Thus 'A' ↔ 'N', 'B' ↔ 'O'

@lelo81 besides if you go from Z to A, you'll have to subtract 25
Elifaz Filho
@elifaz25
Jan 02 2016 02:12
@clarkdh have you looked into grid align? set col-12 and reduce the width, perhaps that coud work.
1 image per row
Leandro Lopes
@lelo81
Jan 02 2016 02:12
@kirah1314 Ahh, didn't pay attention to the bidirectional arrow. Thanks.
CamperBot
@camperbot
Jan 02 2016 02:12
lelo81 sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 719 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Bill
@kirah1314
Jan 02 2016 02:13
@lelo81 glad to help and gl, you're pretty close :thumbsup:
Pawan
@pawan92
Jan 02 2016 02:14
@elifaz25 ok that works for first condition but doesnt work for all conditions
Drew
@clarkdh
Jan 02 2016 02:14
@elifaz25 worked like a beaut
Elifaz Filho
@elifaz25
Jan 02 2016 02:14
haha
@clarkdh great!
Drew
@clarkdh
Jan 02 2016 02:14
@elifaz25 thanks
CamperBot
@camperbot
Jan 02 2016 02:14
clarkdh sends brownie points to @elifaz25 :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for elifaz25
Annabelle
@yayannabelle
Jan 02 2016 02:16
I'm trying to do the Using Objects for Lookups waypoint and I feel like I am missing/overlooking something really obvious because I am struggling
Elifaz Filho
@elifaz25
Jan 02 2016 02:16
@pawan92 which waypoint is that?
Bill
@kirah1314
Jan 02 2016 02:16
@lovelyaveline paste your codes?
Pawan
@pawan92
Jan 02 2016 02:16
@elifaz25 Waypoint: Nesting For Loops
rainingcatsanddogs
@rainingcatsanddogs
Jan 02 2016 02:17
<p>Click here for <a href="#"><img src="http://bit.ly/fcc-running-cats"></a>.</p>
what did a do wrong?
Annabelle
@yayannabelle
Jan 02 2016 02:18

this is what I have so far (within the allowed changeable area):

var lookup = {
"alpha":"Adams",
"bravo":"Boston",
"charlie":"Chicago",
"delta":"Denver",
"echo":"Easy",
"foxtrot":"Frank"
};

Elifaz Filho
@elifaz25
Jan 02 2016 02:18
@pawan92 ok, try removing your array from the nest, such as product *= arr[i][j]
Bill
@kirah1314
Jan 02 2016 02:18
@lovelyaveline looks about right, how about the rest of the codes?
Brian
@sludge256
Jan 02 2016 02:19
@rainingcatsanddogs whats the waypoint name?
Annabelle
@yayannabelle
Jan 02 2016 02:20
@rainingcatsanddogs the "Click here for" should come before the closing a tag, not before the opening a tag
rainingcatsanddogs
@rainingcatsanddogs
Jan 02 2016 02:20
good
Elifaz Filho
@elifaz25
Jan 02 2016 02:20
@pawan92 did it work?
Annabelle
@yayannabelle
Jan 02 2016 02:20
@kirah1314 this is where I'm stuck. I know it's probably something really obvious but my brain is going ??????
@kirah1314 gotta get the result variable to change to the result of the lookup
Bill
@kirah1314
Jan 02 2016 02:21
@lovelyaveline isn't there a result variable? paste the whole codes?
Annabelle
@yayannabelle
Jan 02 2016 02:21

@kirah1314 sure thing

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

// Only change code below this line

var lookup = {
"alpha":"Adams",
"bravo":"Boston",
"charlie":"Chicago",
"delta":"Denver",
"echo":"Easy",
"foxtrot":"Frank"
};

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

// Change this value to test
phoneticLookup("charlie");

Kevin Hongtongsak
@khongton
Jan 02 2016 02:23
@lovelyaveline Think of your lookup table as an array. You're passed a value into the function - imagine it as an "index" to access your values in the lookup table.
Noelle Nicol
@nnicol
Jan 02 2016 02:23
where do i put the hash symbol to make a dead link
Bill
@kirah1314
Jan 02 2016 02:24
@lovelyaveline hint: return lookup and remove result
Kevin Amado
@AMadToon
Jan 02 2016 02:24
replace the actual url with it
i think
Shahid Foy
@shahidfoy
Jan 02 2016 02:24
@nnicol i think you want href="#"
Kevin Amado
@AMadToon
Jan 02 2016 02:24
@nnicol yeah what @shahidfoy
said
Annabelle
@yayannabelle
Jan 02 2016 02:31
@khongton oh gosh, my brain has clearly left the building, it understood half of that then blanked. thank you though! I will keep trying
@kirah1314 I tried that and it did not like it!
CamperBot
@camperbot
Jan 02 2016 02:31
lovelyaveline sends brownie points to @khongton and @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 720 | @kirah1314 | http://www.freecodecamp.com/kirah1314
:star: 273 | @khongton | http://www.freecodecamp.com/khongton
Bill
@kirah1314
Jan 02 2016 02:31
@lovelyaveline it's a hint and not the full answer, just missing a bit more :)
Michael Martin
@MikeASNT
Jan 02 2016 02:32
Waypoint: Manipulate Arrays With push
tarek elgohry
@tarek2020
Jan 02 2016 02:33
sorry can anyone help me mith error
with*
Michael Martin
@MikeASNT
Jan 02 2016 02:33
Hi... I am not sure what they are asking me to do. If you remove myArray.pop(); and change myArray to [["John", 23], ["cat, 2]];
it completes the challenge... But it says to only change code below the line
tarek elgohry
@tarek2020
Jan 02 2016 02:33
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
<input tybe="text">
</ol>
Bill
@kirah1314
Jan 02 2016 02:33
@lovelyaveline think about what you're trying to return with lookup
"alpha" is lookup, what is "Adams"? Don't forget you have the lookup variable inside a function that takes a parameter val
Elifaz Filho
@elifaz25
Jan 02 2016 02:34
@MikeASNT yeah the one above is just an example. All you do is assign the new variable to the popped array and the could should pass
@tarek2020 what is the issue?
Kevin Hongtongsak
@khongton
Jan 02 2016 02:35
@MikeASNT the method pop() removes the last element from an array. I'm guessing, but since you change myArray to two elements instead of three, the challenge completes because you've done exactly what pop() would normally do
Michael Martin
@MikeASNT
Jan 02 2016 02:35
The current issue with the challenge is the [["John", 23] part though
Kevin Hongtongsak
@khongton
Jan 02 2016 02:35
@MikeASNT Can you post your code or tell us what problem you're working on?
Annabelle
@yayannabelle
Jan 02 2016 02:36
@tarek2020 type is misspelt as tybe!
@kirah1314 OH oh! oh! almost there, I think, thank you
CamperBot
@camperbot
Jan 02 2016 02:36
lovelyaveline sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:warning: lovelyaveline already gave kirah1314 points
Elifaz Filho
@elifaz25
Jan 02 2016 02:36
@MikeASNT your code currently have 3 values, [string, number, [nested array with a string and another number], when you pop one of the values, which is always the last one, the remainder is what will come back.
Michael Martin
@MikeASNT
Jan 02 2016 02:37
// Example
var ourArray = ["Stimpson", "J", "cat"];
ourArray.push(["happy", "joy"]); 
// ourArray now equals ["Stimpson", "J", "cat", ["happy", "joy"]]

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

// Only change code below this line.
The code changed after I hit reset
it didn't look like this before I hit reset
Elifaz Filho
@elifaz25
Jan 02 2016 02:37
yes, the value 23 supposed to be outside of the nested array @MikeASNT
Michael Martin
@MikeASNT
Jan 02 2016 02:38
but what I just pasted was the resetted code
before I hit reset it was broken
odd I guess
Elifaz Filho
@elifaz25
Jan 02 2016 02:39
@MikeASNT can you paste the whole code?
Michael Martin
@MikeASNT
Jan 02 2016 02:39
I can't paste what it was before
because when I hit reset it went away
I passed the example, I just thought it was odd... when I hit reset it fixed itself
Elifaz Filho
@elifaz25
Jan 02 2016 02:40
@MikeASNT ah ok, I pressed reset on mine, it changed
@MikeASNT let me take a look
Michael Martin
@MikeASNT
Jan 02 2016 02:40
Waypoint: Manipulate Arrays With pop
Before Rest:
var ourArray = [1,2,3];

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

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

// Only change code below this line.

var removedFromMyArray = myArray.pop();

// Only change code above this line.

(function(y, z){return 'myArray = ' + JSON.stringify(y) + ' & removedFromMyArray = ' + JSON.stringify(z);})(myArray, removedFromMyArray);
After Reset
// Example
var ourArray = [1,2,3];
var removedFromOurArray = ourArray.pop(); 
// removedFromOurArray now equals 3, and ourArray now equals [1,2]

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

// Only change code below this line.
var removedFromMyArray;
Elifaz Filho
@elifaz25
Jan 02 2016 02:41
@MikeASNT whomever built this exercise must have changed the code, but it will still run normally, basically now you have 2 nested arrays, each with 2 values within
@MikeASNT running .pop() should do the work properly, maybe people was getting too confused with it
Michael Martin
@MikeASNT
Jan 02 2016 02:41
I guess
Drew
@clarkdh
Jan 02 2016 02:42
looking to submit my portfolio website, my first zipline! Any recommendations would be appreciated! http://codepen.io/clarkdh/pen/XXpdgv
Elifaz Filho
@elifaz25
Jan 02 2016 02:45
@clarkdh when I hover the header I see that the font size changes and also the color, perhaps work a bit on making it more smooth, using transition and trying to keep the font size the same, or you wanted this way by design?
Annabelle
@yayannabelle
Jan 02 2016 02:46
okay nope I am pretty sure my brain has left for the night, damn it. thank you for the help guys! I guess I will try again tomorrow when the brain is back online :)
Bill
@kirah1314
Jan 02 2016 02:48
@lovelyaveline lol ok no worries :)
Elifaz Filho
@elifaz25
Jan 02 2016 02:49
I swear this Caesar is the hardest exercise on FCC daaamn, help anyone?
function rot13(encodedStr) {
  var codeArr = encodedStr.split("");  // String to Array
  var holder, result;
  var decodedArr = []; // Your Result goes here

  // Only change code below this line
  for(var i = 0, x = codeArr.length; i < x; i++){

      holder = (codeArr[i].charCodeAt() - 65 + 13) % 26;
      result = holder + 65;
      decodedArr.push(String.fromCharCode(result));

  }

  // Only change code above this line


  return ( decodedArr.join(""));

}

// Change the inputs below to test
rot13("GUR DHVPX OEBJA QBT WHZCRQ BIRE GUR YNML SBK.");
Bill
@kirah1314
Jan 02 2016 02:50
@elifaz25 don't use this 65 + 13) % 26
Elifaz Filho
@elifaz25
Jan 02 2016 02:50
@kirah1314 what do you suggest?
Drew
@clarkdh
Jan 02 2016 02:51
@elifaz25 if you visualize how the numbers work you will realize that anything smaller than 13 has a seperate rule applied
Leandro Lopes
@lelo81
Jan 02 2016 02:51

Hi, why is this callback returning from highest to lowest number? I don't understand what b-a would influence here:

array.sort(function (a,b) { return b-a;});

Bill
@kirah1314
Jan 02 2016 02:51
@elifaz25 codeArr[i].charCodeAt(codeArr[i])
@elifaz25 you got the right method but you're not using it correctly
anthonygallina1
@anthonygallina1
Jan 02 2016 02:52
bot Waypoint: Word Blanks
CamperBot
@camperbot
Jan 02 2016 02:52
no wiki entry for: waypoint word blanks
:pencil: click here to create one now!after creating your page type update to reload it here
DJ
@qualitymanifest
Jan 02 2016 02:52
@lelo81 there's a pretty good explanation here http://www.sitepoint.com/sophisticated-sorting-in-javascript/
Elifaz Filho
@elifaz25
Jan 02 2016 02:53
@lelo81 that’s basically how you will set the order of your sort method
Fredrik E
@freddjah
Jan 02 2016 02:53
@clarkdh I
@clarkdh I'm struggling with the colors that you've chosen, I'd suggest looking into paletton.com for some nice color schemes. :)
Drew
@clarkdh
Jan 02 2016 02:54
@freddjah thanks!
CamperBot
@camperbot
Jan 02 2016 02:54
clarkdh sends brownie points to @freddjah :sparkles: :thumbsup: :sparkles:
:star: 66 | @freddjah | http://www.freecodecamp.com/freddjah
Elifaz Filho
@elifaz25
Jan 02 2016 02:55
@kirah1314 so by running codeArr[i].charCodeAt(codeArr[i]) where the math will come about? on a new variable?
Leandro Lopes
@lelo81
Jan 02 2016 02:57
@qualitymanifest Thx!
CamperBot
@camperbot
Jan 02 2016 02:57
lelo81 sends brownie points to @qualitymanifest :sparkles: :thumbsup: :sparkles:
:star: 696 | @qualitymanifest | http://www.freecodecamp.com/qualitymanifest
Elifaz Filho
@elifaz25
Jan 02 2016 03:00
@kirah1314 cool thanks
CamperBot
@camperbot
Jan 02 2016 03:00
elifaz25 sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 721 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Bill
@kirah1314
Jan 02 2016 03:01
@elifaz25 so once you get the unicode, you can use it to +13 or -13
Justin
@jblosch
Jan 02 2016 03:02
Hey everyone. I'm getting a TypeError saying charCodeAt isn't a function. Anyone else experience that?
Bill
@kirah1314
Jan 02 2016 03:03
@jblosch you're probably not using it correctly
Justin
@jblosch
Jan 02 2016 03:04
Thanks, you're right. Just realized I was applying it to the array rather than the string
xEpicDanielx
@xEpicDanielx
Jan 02 2016 03:14

xepicdanielx:~/workspace $ how-to-npm verify
Uh oh, looks like you still only have a single dist-tag.
Use npm help dist-tag to learn how to add another one.

I cannot find out how to add a dist-tag

can someone please help me?
Alan
@aelaen
Jan 02 2016 03:22
Hey guys. I've gone back from the start of bonfires to try some of the new Waypoints leading up to it
It says Maximum call stack size exceeded. Can anyone clarify this?
Brian
@sludge256
Jan 02 2016 03:24
It's a bug
refresh the page
Alan
@aelaen
Jan 02 2016 03:24
OK I'll try a refresh
Joel
@TXTechTurtle
Jan 02 2016 03:33
hey everyone!
Everyone get Caesar's Cipher accomplished?
It's pretty easy to get once you figure out to put each character into ASCII code
Pranav Doshi
@pranavdoshi
Jan 02 2016 03:35
wassup guys gm @/all
Darius
@ensyde
Jan 02 2016 03:35
anyone doing Waypoint: Record Collection?
Joel
@TXTechTurtle
Jan 02 2016 03:36
I logged on the other day to start my next ZipLine and saw that all those new Waypoints were in. Well, being OCD I had to go back and make that section a checkmark before I could move on.
Lol!
@ensyde I did it yesterday. It frustrated me a little, but I got it done.
Darius
@ensyde
Jan 02 2016 03:37
im getting all the requirements but the first one
lol
Joel
@TXTechTurtle
Jan 02 2016 03:37
@Elifaz It's not as bad as some people are making it sound
Darius
@ensyde
Jan 02 2016 03:37
After update(5439, "artist", "ABBA"), artist should be "ABBA"

/**

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

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

return collection;

}

// Alter values below to test your code
//update(1245, "tracks", "Addicted to Love");
update(5439, "artist", "ABBA");
console.log(collection[1245]);

yea that kinda pasted wrong
Joel
@TXTechTurtle
Jan 02 2016 03:39
@Elifaz Consider using Switch statements instead of if/else
Darius
@ensyde
Jan 02 2016 03:39
k
not used to switch statements coming from python
Elifaz Filho
@Elifaz
Jan 02 2016 03:40
@MarysTurtle this is his code..
Joel
@TXTechTurtle
Jan 02 2016 03:41
@ensyde They're great. Don't feel obligated. Just always remember you have a lot of options and it is good to practice all types of coding.
CekaI
@cekai
Jan 02 2016 03:42
how to add a h4 element with the text #right-well?
Elifaz Filho
@Elifaz
Jan 02 2016 03:43
@ensyde question, when you run your code does the ABBA gets assigned as an array?
Joel
@TXTechTurtle
Jan 02 2016 03:43
You would add an <h4> element the same as any other tag. @cekai
Darius
@ensyde
Jan 02 2016 03:43
TypeError: Cannot read property 'ABBA' of undefined
Joel
@TXTechTurtle
Jan 02 2016 03:43
Then you can input whatever text (such as what you provided) in between open and close tags
CekaI
@cekai
Jan 02 2016 03:43
@MarysTurtle yes I did <h4 text=#right-well></h4>
but it doesn't work
Joel
@TXTechTurtle
Jan 02 2016 03:44
You don't need to have the "text=..." part in there.
You can do this:
<h4>#right-well</h4>
CekaI
@cekai
Jan 02 2016 03:44
yes I did that as well but it doesn't work
Elifaz Filho
@Elifaz
Jan 02 2016 03:44
@ensyde how about collection[id][prop] = value; instead of collection[id][prop][0] = collection[id][prop][value];
Darius
@ensyde
Jan 02 2016 03:45
that works but now the third requirement isnt working
Elifaz Filho
@Elifaz
Jan 02 2016 03:45
I think you’re code cannot read property 0 because Abba is an object and not an array.
Darius
@ensyde
Jan 02 2016 03:45
how does that solution differ from the one i tired
ah
Elifaz Filho
@Elifaz
Jan 02 2016 03:46
which one stopped working?
Joel
@TXTechTurtle
Jan 02 2016 03:46
@cekai Can you share your html?
Elifaz Filho
@Elifaz
Jan 02 2016 03:46
your*
CekaI
@cekai
Jan 02 2016 03:46
share it here or on private message?
Darius
@ensyde
Jan 02 2016 03:46
After update(1245, 'tracks', "Addicted to Love"), tracks should have lingth of 1
Joel
@TXTechTurtle
Jan 02 2016 03:46
Here is fine
CekaI
@cekai
Jan 02 2016 03:47
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4 #left-well>
</h4>
<div class="well" id="left-well">
<button class="btn btn-default target"></button>
<button class="btn btn-default target"></button>
<button class="btn btn-default target"></button>
</div>
</div>
<div class="col-xs-6">
<h4 #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>

The instructions:
For the sake of clarity, let's label both of our wells with their ids.

Above your left-well, inside its col-xs-6 div element, add a h4 element with the text #left-well.

Above your right-well, inside its col-xs-6 div element, add a h4 element with the text #right-well.

Elifaz Filho
@Elifaz
Jan 02 2016 03:47
try to assign instead of pushing the new value
such as collection[id][prop] = [value];
Joel
@TXTechTurtle
Jan 02 2016 03:48
Okay, take "#right-well" out of the tag and put it in between your open and close tag
<h4> text here </h4>
Darius
@ensyde
Jan 02 2016 03:48
didnt work
CekaI
@cekai
Jan 02 2016 03:48
perfect
thank you @MarysTurtle
CamperBot
@camperbot
Jan 02 2016 03:48
cekai sends brownie points to @marysturtle :sparkles: :thumbsup: :sparkles:
:star: 268 | @marysturtle | http://www.freecodecamp.com/marysturtle
Joel
@TXTechTurtle
Jan 02 2016 03:49
@cekai No problem. Happy coding and happy new year!
Muhammad Mamun Hossain
@mamun2015
Jan 02 2016 03:49
anyone doing Waypoint: Return Early Pattern for Functions?
i can't understand it how to solve?
Casey Woelfle
@Cwoelfle
Jan 02 2016 03:49
Can anyone help me with the Waypoint: Word Blanks. I get the idea of what needs to be done, but I am confused on the instruction of how its asking me to achieve that.
Elifaz Filho
@Elifaz
Jan 02 2016 03:50
so instead of running collection[id][prop].push(value); you will simply place the new value onto the object property collection[id][prop] = [value];
Darius
@ensyde
Jan 02 2016 03:51
yea i tried that
tarek elgohry
@tarek2020
Jan 02 2016 03:51
sorry anyone can help me what's the error with this code
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
<input tybe="text">
</ol>
Elifaz Filho
@Elifaz
Jan 02 2016 03:51
@ensyde can you post your current code?
DJ
@qualitymanifest
Jan 02 2016 03:51
@tarek2020 <input tybe="text">

tybe

keithtang
@keithtang
Jan 02 2016 03:51
@mamun2015 What do you have so far?
Elifaz Filho
@Elifaz
Jan 02 2016 03:52
use the ``` notation under the esc key
DJ
@qualitymanifest
Jan 02 2016 03:52
@tarek2020 also that should probably be outside your list
tarek elgohry
@tarek2020
Jan 02 2016 03:52
@qualitymanifest i wrote tybe ??
DJ
@qualitymanifest
Jan 02 2016 03:52
@tarek2020 it's 'type'
Boris
@boris-in-london
Jan 02 2016 03:52
//The main clock algorithm for a pomodoro.
var pause = false;

document.getElementById("kaPow").onclick = function( event,
  mins, secs, turn ) {

  if( mins === undefined ) {
    var mins = 24;
   }
  if( secs === undefined ) {
    var secs = 60;
    }
  if( turn === undefined ) {
    var turn = false;
     }

  startStop = setInterval(function() {
    console.log(mins);
    document.getElementById("clock").innerHTML = mins + " : " +
   --secs;
    /*if ( mins === 0 && secs === 0 && turn === false ) {
      clearInterval( startStop );
      daTime( 0, 4 );
    }
    else if ( mins === 0 && secs === 0 && turn === true ) {
      clearInterval( startStop );
      daTime( 0, 7, false );
    }
    else*/ if ( secs % 60 === 0 ) {
      --mins;
      var secs = 60;
    }
  }, 1000);
Hi all, please notice var secs = 60; in the last if statement of my code, this causes errors. if i remove var, and use secs = 60; code works well. trying to wrap my head around global local and var. any help?
tarek elgohry
@tarek2020
Jan 02 2016 03:52
also error outside list
Darius
@ensyde
Jan 02 2016 03:52

/**

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

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

return collection;

}

// Alter values below to test your code
//update(1245, "tracks", "Addicted to Love");
update(5439, "artist", "ABBA");
console.log(collection[1245]);

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

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

    return collection;
}

// Alter values below to test your code
//update(1245, "tracks", "Addicted to Love");
update(5439, "artist", "ABBA");
console.log(collection[1245]);
DJ
@qualitymanifest
Jan 02 2016 03:53
@tarek2020 it's type with a p not tybe
Elifaz Filho
@Elifaz
Jan 02 2016 03:53
ah ok
Stella Liu
@Stells93
Jan 02 2016 03:53
@tarek2020 for input tybe I think you have a typo. It is supposed to be "type" not "tybe". Mixed up the b and the p
Jaime Victoria
@jaime-evr
Jan 02 2016 03:53
just finished that
Darius
@ensyde
Jan 02 2016 03:53
how are you getting it to format like that
tarek elgohry
@tarek2020
Jan 02 2016 03:54
@Stells93 @qualitymanifest thanks alot
CamperBot
@camperbot
Jan 02 2016 03:54
tarek2020 sends brownie points to @stells93 and @qualitymanifest :sparkles: :thumbsup: :sparkles:
:star: 164 | @stells93 | http://www.freecodecamp.com/stells93
:star: 697 | @qualitymanifest | http://www.freecodecamp.com/qualitymanifest
Elifaz Filho
@Elifaz
Jan 02 2016 03:54
@ensyde place your first if statement under the second
keithtang
@keithtang
Jan 02 2016 03:54
test
js
Stella Liu
@Stells93
Jan 02 2016 03:54
I am doing the word blank challenge and I am not sure why it isn't working. Can someone help me?

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
var result = "";
// Your code below this line
myAdjective + "Stella and " + myNoun + myAdverb + myVerb + " yesterday.";
// Your code above this line
return result;
}

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

Elifaz Filho
@Elifaz
Jan 02 2016 03:54
@ensyde remove your shift statement
Chris
@Aoxom
Jan 02 2016 03:54
@boris-in-london just saying secs withing declaring it with var first makes global scope, and everything can access it
keithtang
@keithtang
Jan 02 2016 03:54
@Stells93 Which test is failing?
Darius
@ensyde
Jan 02 2016 03:55
worked
Stella Liu
@Stells93
Jan 02 2016 03:55
@keithtang ah it just won't go through for some reason. I enter that in and it won't advance
Elifaz Filho
@Elifaz
Jan 02 2016 03:55
remove your shift statement and it should run fine on its own
@ensyde did it worked?
Stella Liu
@Stells93
Jan 02 2016 03:55

@keithtang here are the instructions: We will now use our knowledge of strings to build a "Mad Libs" style word game we're calling "Word Blanks". You will create an (optionally humorous) "Fill in the Blanks" style sentence.

You will need to use string operators to build a new string, result, using the provided variables: myNoun, myAdjective, myVerb, and myAdverb.

You will also need to provide additional strings, which will not change, in between the provided words.

We have provided a framework for testing your results with different words. The tests will run your function with several different inputs to make sure all of the provided words appear in the output, as well as your extra strings.

Jaime Victoria
@jaime-evr
Jan 02 2016 03:56
@ensyde you should test if prop is tracks after you have tested if value is empty
Darius
@ensyde
Jan 02 2016 03:56
@Elifaz thanks, imma have to work with that some more so I can get a better grasp
CamperBot
@camperbot
Jan 02 2016 03:56
ensyde sends brownie points to @elifaz :sparkles: :thumbsup: :sparkles:
:star: 273 | @elifaz | http://www.freecodecamp.com/elifaz
Maulik Darji
@maulikdarji
Jan 02 2016 03:56
@Stells93 use more strings between your variables.
keithtang
@keithtang
Jan 02 2016 03:56
@Stells93 There should be three conditions that need to be met. They are located on the lower left of the screen.
CarrKeys
@CarrKeys
Jan 02 2016 03:56
Hey everyone. Can I get assistance with the 'Convert Celsius to Fahrenheit Waypoint?
keithtang
@keithtang
Jan 02 2016 03:56
Can you tell me which ones failed? They should have red X's next to them
Maulik Darji
@maulikdarji
Jan 02 2016 03:57
@CarrKeys yep
Elifaz Filho
@Elifaz
Jan 02 2016 03:57
yeah, take a look for the shift method, not sure if it was necessary on this exercise @ensyde
Stella Liu
@Stells93
Jan 02 2016 03:57
@keithtang
wordBlanks("dog", "big", "ran", "quickly") should contain all of the passed words separated by non-word characters (and any additional words in your madlib).
wordBlanks("cat", "little", "hit", "slowly") should contain all of the passed words separated by non-word characters (and any additional words in your madlib).
DJ
@qualitymanifest
Jan 02 2016 03:57
@Stells93 myAdjective + "Stella and " + myNoun + myAdverb + myVerb + " yesterday."; you need to assign this to result (and i think the test wants at least 30 characters not including the arguments, so just add some more words in your strings)
keithtang
@keithtang
Jan 02 2016 03:57
@Stells93 You can append a space after each variable.
Jaime Victoria
@jaime-evr
Jan 02 2016 03:58
@Elifaz it wasn't, you should push on the tracks array if props is tracks, else just update the value
keithtang
@keithtang
Jan 02 2016 03:58
@Stells93 Like so: result += "The " + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb;
Elifaz Filho
@Elifaz
Jan 02 2016 03:58
@ensyde also to post here on gitter you simply use the ` button bellow your esc key. you press 3 times post your code on the line bellow and close with another three of these ` .
Such as
console.log(“MOOOOOM”);
Pawan
@pawan92
Jan 02 2016 03:58
so trying to do ceasars cipher..how do i shift an element by one space
Stella Liu
@Stells93
Jan 02 2016 03:58
@keithtang Thank you so much!!
CamperBot
@camperbot
Jan 02 2016 03:58
stells93 sends brownie points to @keithtang :sparkles: :thumbsup: :sparkles:
:star: 268 | @keithtang | http://www.freecodecamp.com/keithtang
keithtang
@keithtang
Jan 02 2016 03:58
@Stells93 No worries :0
Darius
@ensyde
Jan 02 2016 03:58
@Elifaz i was working on that waypoint at like 4 am when i was tired as hell haha
Stella Liu
@Stells93
Jan 02 2016 03:58
@keithtang But I don't get why do you have to write it like that?
Muhammad Mamun Hossain
@mamun2015
Jan 02 2016 03:59

here how im trying but not working ...

~~~// Setup
function abTest(a, b) {
// Only change code below this line

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

// Only change code above this line
}

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

// Change values below to test your code
abTest(2,2);

Elifaz Filho
@Elifaz
Jan 02 2016 03:59
@ensyde hahah it happens with all of us!
@jaime-evr exactly!
keithtang
@keithtang
Jan 02 2016 03:59
@Stells93 The test is just looking for a string between the variables.
Maulik Darji
@maulikdarji
Jan 02 2016 04:00
@mamun2015 remove quotes from undefined
keithtang
@keithtang
Jan 02 2016 04:00
@pawan92 I'll give you a hint ... Try to think of a lookup table.
Otherwise, you're getting into complex ASCII code conversions ;)
Stella Liu
@Stells93
Jan 02 2016 04:00
@keithtang can you normally just write it without the +=?
Muhammad Mamun Hossain
@mamun2015
Jan 02 2016 04:01
@maulikdarji so many thanks
CamperBot
@camperbot
Jan 02 2016 04:01
mamun2015 sends brownie points to @maulikdarji :sparkles: :thumbsup: :sparkles:
keithtang
@keithtang
Jan 02 2016 04:01
@Stells93 Yes. += is shorthand for x = x + ...
CamperBot
@camperbot
Jan 02 2016 04:01
:star: 274 | @maulikdarji | http://www.freecodecamp.com/maulikdarji
keithtang
@keithtang
Jan 02 2016 04:01
@Stells93 I'm just lazy ;)
@Stells93 You can write it like result = result + "The " + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb;
Stella Liu
@Stells93
Jan 02 2016 04:02
@keithtang the result would be part of the sentence. Wasn't the goal to just write the sentence starting at "The "?
@keithtang haha yeah I am confused why the += is relevant here
Pawan
@pawan92
Jan 02 2016 04:03
@keithtang i was thinking of having a while loop iterate 13 times and have a for loop inside shift the elements one space each time..is that not the right approach
Stella Liu
@Stells93
Jan 02 2016 04:04
@keithtang because I ran the code and it didn't print out the word result before starting the sentence. But if result += "The " + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb; means result = result + "The " + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb; wouldn't it print out result + "The " + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb? you know what I mean>
keithtang
@keithtang
Jan 02 2016 04:05
@Stells93 You're absolutely correct. You don't need the +=. I probably had it there for some other reason.
Stella Liu
@Stells93
Jan 02 2016 04:05
@keithtang oh no, the freecodecamp accepted the +=. It was why I couldn't advance
keithtang
@keithtang
Jan 02 2016 04:07
@Stells93 Just tried to submit the following and it worked. return ("The " + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb);
Maulik Darji
@maulikdarji
Jan 02 2016 04:08
@pawan92 converting to ascii will be much easier then falling into loops
Stella Liu
@Stells93
Jan 02 2016 04:08
@keithtang oh got it! thanks again for clearing that up. I was confused by the other one
CamperBot
@camperbot
Jan 02 2016 04:08
stells93 sends brownie points to @keithtang :sparkles: :thumbsup: :sparkles:
:warning: stells93 already gave keithtang points
keithtang
@keithtang
Jan 02 2016 04:09
@pawan92 I initially thought about doing a shift as well but then I realized that it was a simple mapping exercise. ie: A=N and so on.
So I created a lookup table (simple JSON object) and returned the shifted character based on the key.
@pawan92 Take a stab at it and I'll help you through it if you need any assistance
Pawan
@pawan92
Jan 02 2016 04:11
@keithtang ok will do
Alan Hernandez
@Alanh168
Jan 02 2016 04:12
Can anyone help me on the Caesars Cipher waypoint?
this is my code:
keithtang
@keithtang
Jan 02 2016 04:12
@Alanh168 Sure. I just finished it so its fresh in my mind.
Alan Hernandez
@Alanh168
Jan 02 2016 04:12
  for(var count = 0; count < codeArr.length; count++)
    {
      if (codeArr[count] != " ")
        {
          var ascii = codeArr[count].charCodeAt(count);
          ascii -= 13;
          var asciiString = "";
          asciiString.fromCharCode(ascii);
          decodedArr.push(asciiString);
        }
      else if(codeArr[count] == " ")
        {
          decodeArr.push(" ");
        }
    } 

  // Only change code above this line
  return decodedArr.join(""); // Array to String
}
it's telling me "fromCharCode" is not a function
keithtang
@keithtang
Jan 02 2016 04:14
fromCharCode() is a static method of the String class.
Meaning you invoke it like so: String.fromCharCode(x);
Jaime Victoria
@jaime-evr
Jan 02 2016 04:14
@Alanh168 asciiString may be undefined
CarrKeys
@CarrKeys
Jan 02 2016 04:15

@maulikdarji I created the fahrenheit variable,

function convert(celsius) {
  // Only change code below this line
  var fahrenheit = 30;

  // 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);

but I'm confused as to how to apply the algorithm.

keithtang
@keithtang
Jan 02 2016 04:15
@Alanh168 I took a simpler approach. I used a lookup table
Fabian Contrarias
@FabianContrarias
Jan 02 2016 04:16
9/5 * celsius + 32
@CarrKeys
Alan Hernandez
@Alanh168
Jan 02 2016 04:16
@keithtang I thought about doing that but then wouldn't you have like 26 cases?
Maulik Darji
@maulikdarji
Jan 02 2016 04:16
@CarrKeys heres the algorithm:
fahrenheit=celsius*9/5+32
keithtang
@keithtang
Jan 02 2016 04:17
Yes, I think that it why the problem limits it to upper case characters only. If I had to work with upper and lower, I would have taken your approach for sure.
Alan Hernandez
@Alanh168
Jan 02 2016 04:17
@jaime-evr but my asciiString is initialized to ""? doesn't that mean it couldn't be undefined?
CarrKeys
@CarrKeys
Jan 02 2016 04:18
Ohhhhhh!!!! Man! The answer was literally right in front of me!
keithtang
@keithtang
Jan 02 2016 04:18
@Alanh168 I used the following lookup: var cipher = { "A": "N", "B": "O", "C": "P", "D": "Q", "E": "R", "F": "S", "G": "T", "H": "U", "I": "V", "J": "W", "K": "X", "L": "Y", "M": "Z", "N": "A", "O": "B", "P": "C", "Q": "D", "R": "E", "S": "F", "T": "G", "U": "H", "V": "I", "W": "J", "X": "K", "Y": "L", "Z": "M" };
CarrKeys
@CarrKeys
Jan 02 2016 04:18
Man I need to read the instructions more carefully.
Maulik Darji
@maulikdarji
Jan 02 2016 04:19
@CarrKeys :smile:
Rex Schrader
@SaintPeter
Jan 02 2016 04:19
@keithtang Good show!
CarrKeys
@CarrKeys
Jan 02 2016 04:19
Thank you @keithtang & @Alanh168 !
CamperBot
@camperbot
Jan 02 2016 04:19
carrkeys sends brownie points to @keithtang and @alanh168 :sparkles: :thumbsup: :sparkles:
:star: 269 | @keithtang | http://www.freecodecamp.com/keithtang
:star: 262 | @alanh168 | http://www.freecodecamp.com/alanh168
keithtang
@keithtang
Jan 02 2016 04:19
@SaintPeter :)
CarrKeys
@CarrKeys
Jan 02 2016 04:19
I feel so stupid xD What a learning experience.
Rex Schrader
@SaintPeter
Jan 02 2016 04:20
@keithtang I don't know why everyone googles Rot 13 instead of just applying what they've just learned . . .
Oh well
veerdoshi96
@veerdoshi96
Jan 02 2016 04:20
how can i change the font size of all p element from the style tags ?
Rex Schrader
@SaintPeter
Jan 02 2016 04:20
It's getting changed into a Bonfire :D
Jaime Victoria
@jaime-evr
Jan 02 2016 04:20
@Alanh168 fromCharCode is a static method, meaning you have to use it as String.fromCharCode
keithtang
@keithtang
Jan 02 2016 04:20
@SaintPeter Don't get me wrong. My first thought was to convert ASCII codes as well :)
Kendall Brown
@kndllbrwn
Jan 02 2016 04:20
Hey everyone, trying to find why I'm getting a stack overflow, any help appreciated
Alan Hernandez
@Alanh168
Jan 02 2016 04:20
@keithtang I guess I'll do it that way then. Either way I would probably have to convert all the characters to upper case in my approach. thanks man!
CamperBot
@camperbot
Jan 02 2016 04:20
alanh168 sends brownie points to @keithtang :sparkles: :thumbsup: :sparkles:
:star: 270 | @keithtang | http://www.freecodecamp.com/keithtang
keithtang
@keithtang
Jan 02 2016 04:21
@Alanh168 Anytime brother!
Kendall Brown
@kndllbrwn
Jan 02 2016 04:21
'''
function queue(arr, item) {
// Your code here
arr = arr.shift;
arr = arr.push(item);
//return item; // Change this line
}
'''
CamperBot
@camperbot
Jan 02 2016 04:21
:bulb: to format code use backticks! ``` more info
veerdoshi96
@veerdoshi96
Jan 02 2016 04:21
Hey Guys ! Can anyone help me with
how can i change the font size of all p element from the style tags ?
THanks in Advance
Jaime Victoria
@jaime-evr
Jan 02 2016 04:22
thats why you are getting "fromCharCode" is not a function @Alanh168
Pranav Doshi
@pranavdoshi
Jan 02 2016 04:22
@veerdoshi96 use font size prop in css
keithtang
@keithtang
Jan 02 2016 04:22
@veerdoshi96 Make sure that you have a CSS selector that grabs all your <p> tags
Alan Hernandez
@Alanh168
Jan 02 2016 04:22
@jaime-evr I see. So instead of using "asciistring.fromCharCode" I have to do asciistring = string.fromCharCode?
veerdoshi96
@veerdoshi96
Jan 02 2016 04:22
@keithtang so basically writing
p { font size: 16px}
inside my style right ?
keithtang
@keithtang
Jan 02 2016 04:23
@veerdoshi96 You got it!
veerdoshi96
@veerdoshi96
Jan 02 2016 04:23
Thanks @keithtang !
CamperBot
@camperbot
Jan 02 2016 04:23
veerdoshi96 sends brownie points to @keithtang :sparkles: :thumbsup: :sparkles:
:star: 271 | @keithtang | http://www.freecodecamp.com/keithtang
Angela
@kbmom5
Jan 02 2016 04:23
I'm on incrementing a number with Javascript. Why isn't this right: myVar = ++ myVar; ?
Darius
@ensyde
Jan 02 2016 04:23
do the vps from digitalocean have www folder?
also i think vultr.com might still have $50 credit for signing up if anyone needs a vps
Jaime Victoria
@jaime-evr
Jan 02 2016 04:24
yup, that the way to call it, but im not sure if you really need it. haven't done that exercise, sorry.. @Alanh168
Pranav Doshi
@pranavdoshi
Jan 02 2016 04:24
@kbmom5 ur preincrementing
Alan Hernandez
@Alanh168
Jan 02 2016 04:24
@SaintPeter The thing is that I have previous programming experience and I was taught that using if statements/cases in large numbers (unless absolutely necessary) was bad programming etiquette.
Darius
@ensyde
Jan 02 2016 04:24
@kbmom5 myVar++
Pranav Doshi
@pranavdoshi
Jan 02 2016 04:24
understand pre and post
Maulik Darji
@maulikdarji
Jan 02 2016 04:24
@kbmom5 just use myVar++ instead
Pranav Doshi
@pranavdoshi
Jan 02 2016 04:24
on google @kbmom5
Angela
@kbmom5
Jan 02 2016 04:24
I thought I tried that...nothing was working...let me see...
Alan Hernandez
@Alanh168
Jan 02 2016 04:24
@jaime-evr I see. I'll try fixing it and if it doesn't work I'll use the cipher . thanks!
CamperBot
@camperbot
Jan 02 2016 04:24
alanh168 sends brownie points to @jaime-evr :sparkles: :thumbsup: :sparkles:
:star: 108 | @jaime-evr | http://www.freecodecamp.com/jaime-evr
Elifaz Filho
@Elifaz
Jan 02 2016 04:24
Mann, I know I’m close
function rot13(encodedStr) {
  var codeArr = encodedStr.split("");  // String to Array
  var holder, result;
  var decodedArr = []; // Your Result goes here


  // Only change code below this line
  for(var i = 0, x = codeArr.length; i < x; i++){

    holder = codeArr[i].charCodeAt(codeArr[i]);

    if (holder >= 78 && holder <= 90)
      result = String.fromCharCode(holder - 13);

    if (holder >= 65 && holder < 78)
      result = String.fromCharCode(holder + 13);

    decodedArr.push(result); 
  }

  // Only change code above this line


  console.log(decodedArr.join(""));

}

// Change the inputs below to test
rot13("SERR CVMMN!");
Abhash Upadhyaya
@abhash2610
Jan 02 2016 04:25
function destroyer(arr) {

  var filtered = arr[0];
  var target = arr.slice(1);
  var finalfiltered = filtered.filter(function(val) {
  return val != 5;
});

  return finalfiltered;
}

destroyer([1, 2, 3, 1, 2, 3], 2, 3);
I'm getting TypeError: filtered.filter is not a function. Why?
Angela
@kbmom5
Jan 02 2016 04:25
No, it gives me 87 as a result. Not 88.
keithtang
@keithtang
Jan 02 2016 04:25
@Alanh168 I'm going to go try and apply your method to see if I can solve it another way.
Pranav Doshi
@pranavdoshi
Jan 02 2016 04:25
@kbmom5 post ur code here
myvar = myvar++;
Rex Schrader
@SaintPeter
Jan 02 2016 04:25
@Alanh168 Yes and no. I hate large if/else chains, and generally a switch is better. If you have even more, then an object lookup may be ever better. For some programming problems you have to embrace the suck.
Angela
@kbmom5
Jan 02 2016 04:25

var myVar = 87;

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

keithtang
@keithtang
Jan 02 2016 04:26
@pranavdoshi You should need to reassign an increment statement. myVar++ is equivalent to myVar = myVar + 1;
Angela
@kbmom5
Jan 02 2016 04:26
myVar needs to equal 88 to move on
keithtang
@keithtang
Jan 02 2016 04:26
shouldn't
Aengus
@ShinyGreenCode
Jan 02 2016 04:26
@kbmom5 Just myVar++; Not myVar=myVar++;
Pranav Doshi
@pranavdoshi
Jan 02 2016 04:26
yep @kbmom5 @keithtang
Angela
@kbmom5
Jan 02 2016 04:27
Yes, that's it!! Just myVar++;
Thank you @BadLang
CamperBot
@camperbot
Jan 02 2016 04:27
kbmom5 sends brownie points to @badlang :sparkles: :thumbsup: :sparkles:
:star: 267 | @badlang | http://www.freecodecamp.com/badlang
Aengus
@ShinyGreenCode
Jan 02 2016 04:27
No probs
Alan Hernandez
@Alanh168
Jan 02 2016 04:27
@SaintPeter Yeah I have come to realize that. The bonfires/waypoints are designed to utilize only the previously taught information
Maulik Darji
@maulikdarji
Jan 02 2016 04:27
@Elifaz code looks good...where you stuck?
keithtang
@keithtang
Jan 02 2016 04:28
@SaintPeter .. changes status to .. "Embracing the suck"
Elifaz Filho
@Elifaz
Jan 02 2016 04:29
I can’t get the spaces and dots…exclamation points to show up, perhaps another if statement?
@maulikdarji it’s basically repeating the last char, this is the output: FREEEPIZZAA
Maulik Darji
@maulikdarji
Jan 02 2016 04:30
@Elifaz you need to assign ascii codes of other characters like . , ! , to result, without shifting
keithtang
@keithtang
Jan 02 2016 04:32
@Elifaz I would lookup the non-alpha ASCII code ranges and do another conditional statement
@Elifaz Or even better .. an else statement return itself would suffice.
Jaime Victoria
@jaime-evr
Jan 02 2016 04:32

Performance tip, cache the calls to array length:

 for(var i = 0, length = arr.length; i < length; i++) { }

is way better than:

for(var count = 0; count < codeArr.length; count++) { }
keithtang
@keithtang
Jan 02 2016 04:33
the non-alpha character that is ...
Bun
@Bunchhieng
Jan 02 2016 04:33

Am i missing something for Waypoint: Stand in Line?
I added arr.push(item);
then return arr.shift();

got this message: "RangeError: Maximum call stack size exceed"

Maulik Darji
@maulikdarji
Jan 02 2016 04:34
@Elifaz you have used if for holder between 65 to 90 ...so add else statement for the rest ascii codes like this:
String.fromCharCode(holder);
Elifaz Filho
@Elifaz
Jan 02 2016 04:35
@keithtang crazy try to return itself, it basically returned the whole phrase, I messed up on that one, but it’s a good point, I will work on that once I get back from playing basketball. Perks of having a 24h basketball court haha, time to go think a bit and refresh my mind.
see you guys later
Brian
@sludge256
Jan 02 2016 04:35
@ensyde The VPS for DO are set up your own
Rex Schrader
@SaintPeter
Jan 02 2016 04:36
@Bunchhieng Refresh the page. We've been seeing that error in random locations.
Elifaz Filho
@Elifaz
Jan 02 2016 04:36
@maulikdarji @keithtang Thanks
CamperBot
@camperbot
Jan 02 2016 04:36
elifaz sends brownie points to @maulikdarji and @keithtang :sparkles: :thumbsup: :sparkles:
:star: 272 | @keithtang | http://www.freecodecamp.com/keithtang
:star: 275 | @maulikdarji | http://www.freecodecamp.com/maulikdarji
keithtang
@keithtang
Jan 02 2016 04:36
@Elifaz Anytime dude! Have fun shooting hoops.
Bun
@Bunchhieng
Jan 02 2016 04:37
@SaintPeter WOW. refreshed the page, problem solved! Thanks.
CamperBot
@camperbot
Jan 02 2016 04:37
bunchhieng sends brownie points to @saintpeter :sparkles: :thumbsup: :sparkles:
:star: 2103 | @saintpeter | http://www.freecodecamp.com/saintpeter
KoToZ
@Mohamedtareque
Jan 02 2016 04:37
Declare a local variable myVar inside myFunction this is the instruction >> when i have entred it to local function and invoke the function still have undefined output
keithtang
@keithtang
Jan 02 2016 04:38
@Mohamedtareque Which waypoint is this?
KoToZ
@Mohamedtareque
Jan 02 2016 04:38
51
keithtang
@keithtang
Jan 02 2016 04:40
Can you paste your code?
Bun
@Bunchhieng
Jan 02 2016 04:41
@Mohamedtareque you need to remove all the console.log
KoToZ
@Mohamedtareque
Jan 02 2016 04:41

function myFunction() {
var myVar = "foo";
console.log(myVar);
}

// run and check the console
// myVar is not defined outside of myFunction

myFunction();

// now remove the console.log line to pass the test

Brian
@sludge256
Jan 02 2016 04:41
Waypoint names are preferable to waypoint #s
Casey Woelfle
@Cwoelfle
Jan 02 2016 04:41
Has anyone done the Waypoint: Local Scope and Functions. I think I found a bug.
Jaime Victoria
@jaime-evr
Jan 02 2016 04:41
yes i do @Cwoelfle
Bun
@Bunchhieng
Jan 02 2016 04:41
Yeah I have done it. Work for me.
Brian
@sludge256
Jan 02 2016 04:41
is it not passing unless you remove all the console.log comment lines?
Stella Liu
@Stells93
Jan 02 2016 04:41
@Mohamedtareque Yeah I had a problem with that too. You have to delete the console.log insie the function
Brian
@sludge256
Jan 02 2016 04:41
It's a known bug
Casey Woelfle
@Cwoelfle
Jan 02 2016 04:41
yes
exactly
Bun
@Bunchhieng
Jan 02 2016 04:41
Same here.
Jaime Victoria
@jaime-evr
Jan 02 2016 04:42
remove the two console logs
Casey Woelfle
@Cwoelfle
Jan 02 2016 04:42
ok, glad to see other people know about that.
Guillermo Hernandez Jr
@guillermohernandez
Jan 02 2016 04:42
coincidentally, that's the one I'm on as well
so we remove both console.logs?
Bun
@Bunchhieng
Jan 02 2016 04:42
Yes
Jaime Victoria
@jaime-evr
Jan 02 2016 04:43
i think the test for that exercise is expecting not to see the undefined in the console
or something like that
KoToZ
@Mohamedtareque
Jan 02 2016 04:44
ya it seems good and run when i remove it , have any know why ?!!
Jaime Victoria
@jaime-evr
Jan 02 2016 04:44
so when you declare var myVar; and console.log(myVar)you are logging undefined again
just as the console.log(myVar) on the bottom is doing
that's why you need to remove both of them, i think...
KoToZ
@Mohamedtareque
Jan 02 2016 04:45
ya , thnx a lot
Guillermo Hernandez Jr
@guillermohernandez
Jan 02 2016 04:47
@jaime-evr thanks for the heads up
CamperBot
@camperbot
Jan 02 2016 04:47
guillermohernandez sends brownie points to @jaime-evr :sparkles: :thumbsup: :sparkles:
:star: 111 | @jaime-evr | http://www.freecodecamp.com/jaime-evr
Jaime Victoria
@jaime-evr
Jan 02 2016 04:48
@guillermohernandez Anytime :)
KoToZ
@Mohamedtareque
Jan 02 2016 04:50
is there any project to do after fishing JS tutorials ?!!
Aaron
@mark-xyz
Jan 02 2016 04:50
Hi people I am stuck in the waypoint Local Scope and Functions. I removed the second console.log line but doesn't work. Someone know what's going on?
KoToZ
@Mohamedtareque
Jan 02 2016 04:50
ya del both console.log
Jaime Victoria
@jaime-evr
Jan 02 2016 04:51
can you past your code here?
Maulik Darji
@maulikdarji
Jan 02 2016 04:51
@mark-xyz remove console.log() from comments too!
KoToZ
@Mohamedtareque
Jan 02 2016 04:51
@jaime-evr
@jaime-evr explanation
so when you declare var myVar; and console.log(myVar)you are logging undefined again
just as the console.log(myVar) on the bottom is doing
that's why you need to remove both of them, i think...
Aaron
@mark-xyz
Jan 02 2016 04:51
from my function?
Jaime Victoria
@jaime-evr
Jan 02 2016 04:51
all you need to do is declare var myVar inside the function and remove both console logs
Aaron
@mark-xyz
Jan 02 2016 04:52
how write code here? hehe
Ok
it works
:D
Jaime Victoria
@jaime-evr
Jan 02 2016 04:53
the point of this exercise is to now that a new scope is created when you declare a function
KoToZ
@Mohamedtareque
Jan 02 2016 04:53
why we don't declare parameters ??
function my_fun( para ){
Abhash Upadhyaya
@abhash2610
Jan 02 2016 04:54
Can some one help me with my typerror problem?
Jaime Victoria
@jaime-evr
Jan 02 2016 04:54
@Mohamedtareque that's totally valid, but not for the purpose of that exercise i think
Aaron
@mark-xyz
Jan 02 2016 04:54
but it is not necessery return de value of the parameter inside the function?
with return value
anthonygallina1
@anthonygallina1
Jan 02 2016 04:55
no clue how to do this it doesnt seem to follow the prior lessons Waypoint: Word Blanks
Jaime Victoria
@jaime-evr
Jan 02 2016 04:55
well, it's not always necessary @mark-xyz
Maulik Darji
@maulikdarji
Jan 02 2016 04:55
@abhash2610 what typeError?
Abhash Upadhyaya
@abhash2610
Jan 02 2016 04:56

@maulikdarji

function destroyer(arr) {

  var filtered = arr[0];
  var target = arr.slice(1);
  var finalfiltered = filtered.filter(function(val) {
  return val != 5;
});

  return finalfiltered;
}

destroyer([1, 2, 3, 1, 2, 3], 2, 3);

I'm getting TypeError: filtered.filter is not a function. Why?
This one

Bun
@Bunchhieng
Jan 02 2016 04:56
@anthonygallina1 i solved this problem by adding if statement comparing to 0 then console.log anything up to 25 in lenght.
Jaime Victoria
@jaime-evr
Jan 02 2016 04:56
just when you need to return a value from a function... @mark-xyz
Aaron
@mark-xyz
Jan 02 2016 04:56
or like in this case, use console.log(var)
OOOk
anthonygallina1
@anthonygallina1
Jan 02 2016 04:58
@Bunchhieng thank you Still it does not seem to logically follow what they are teaching in that section. To me.
CamperBot
@camperbot
Jan 02 2016 04:58
anthonygallina1 sends brownie points to @bunchhieng :sparkles: :thumbsup: :sparkles:
:star: 252 | @bunchhieng | http://www.freecodecamp.com/bunchhieng
Fabian Contrarias
@FabianContrarias
Jan 02 2016 04:58
hi everyone
Aaron
@mark-xyz
Jan 02 2016 04:59
@jaime-evr thanks
CamperBot
@camperbot
Jan 02 2016 04:59
mark-xyz sends brownie points to @jaime-evr :sparkles: :thumbsup: :sparkles:
:star: 113 | @jaime-evr | http://www.freecodecamp.com/jaime-evr
keithtang
@keithtang
Jan 02 2016 04:59
@FabianContrarias hey Fabian
Jaime Victoria
@jaime-evr
Jan 02 2016 04:59
@abhash2610 filter may be undefined or doesn't has that method filter
Fabian Contrarias
@FabianContrarias
Jan 02 2016 04:59
@keithtang happy New Year
keithtang
@keithtang
Jan 02 2016 05:00
Happy New Year to you too!
Abhash Upadhyaya
@abhash2610
Jan 02 2016 05:00
@jaime-evr filter is the inbuilt function for arrays
Jaime Victoria
@jaime-evr
Jan 02 2016 05:00
var filtered = arr[0];
i suppose that arr is an Array
so you are getting the position o from that array
ferallife
@ferallife
Jan 02 2016 05:01

WHat's wrong with this img element in Challenge 19: .thick-green-border- {

border-color: green

    border-width: 10px;

  border-style: solid; }
Abhash Upadhyaya
@abhash2610
Jan 02 2016 05:01
@jaime-evr you can see that destroyer([1, 2, 3, 1, 2, 3], 2, 3);
so on 0th index, I'm getting an array
ferallife
@ferallife
Jan 02 2016 05:01
.thick-green-border- {
border-color: green
border-width: 10px;
  border-style: solid; }
Jaime Victoria
@jaime-evr
Jan 02 2016 05:02
@abhash2610 ok, let see
Abhash Upadhyaya
@abhash2610
Jan 02 2016 05:02
@jaime-evr and function declaration is function destroyer(arr) {
keithtang
@keithtang
Jan 02 2016 05:04
@ferallife Do you have the CSS defined and referenced in the img tag? ``` .thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius:10px;
}
Jaime Victoria
@jaime-evr
Jan 02 2016 05:04
ok wait you are doing this destroyer([1, 2, 3, 1, 2, 3], 2, 3); @abhash2610
so you are passing 3 parameters to destroyer
not a 3 elements array
Maulik Darji
@maulikdarji
Jan 02 2016 05:05
@abhash2610 no need to assign arr[0] to filtered var.
use
var finalFiltered = arr[0].filter(function(val){
return (val!=5);
});
Jaime Victoria
@jaime-evr
Jan 02 2016 05:05
so arr already is the array you want to get with arr[0] @abhash2610
makes sense @abhash2610 ?
@maulikdarji exactly!
Maulik Darji
@maulikdarji
Jan 02 2016 05:07
@jaime-evr :+1:
Abhash Upadhyaya
@abhash2610
Jan 02 2016 05:07
@maulikdarji I tried that already. But getting TypeError: arr[0].filter is not a function
Maulik Darji
@maulikdarji
Jan 02 2016 05:08
@abhash2610 try reloading the page or resetting the code...glitches are common! :smile:
KoToZ
@Mohamedtareque
Jan 02 2016 05:09
hey guys : i have non tec Q >> what should i do when i have finished JS tutorials >>>
YI JIANG
@jennytech
Jan 02 2016 05:09

// Example
function ourFunction(a, b) {
console.log(a - b);
}
ourFunction(10, 5); // Outputs 5

// Only change code below this line.

function myFunction(a,b) {
console.log(a + b);
}
myFunction(a,b);

Jaime Victoria
@jaime-evr
Jan 02 2016 05:09
@abhash2610 you are sending 3 paramenters to destroyer
YI JIANG
@jennytech
Jan 02 2016 05:09
what's wrong ?
not let me pass
Jaime Victoria
@jaime-evr
Jan 02 2016 05:09
destroyer([1, 2, 3, 1, 2, 3], 2, 3);
Abhash Upadhyaya
@abhash2610
Jan 02 2016 05:10
@maulikdarji & @jaime-evr , I changed my code... still the same error
function destroyer(arr) {
  var target = arr.slice(1);
  var finalfiltered = arr[0].filter(function(val) {
      var flag = true;
      for(var i=0; i<target.length; i++) {

        if(val == target[i]) {
          flag = false;
          break;
        }
      }
      if(!flag)
        return true;
      else
        return false;
    });

  return finalfiltered;
}

destroyer([1, 2, 3, 1, 2, 3], 2, 3);
keithtang
@keithtang
Jan 02 2016 05:11
@jennytech Which waypoint is this?
Jaime Victoria
@jaime-evr
Jan 02 2016 05:12
what exercise is this? @jennytech
YI JIANG
@jennytech
Jan 02 2016 05:12
Waypoint: Passing Values to Functions with Arguments
Maulik Darji
@maulikdarji
Jan 02 2016 05:12
@abhash2610 ohh...arr is it self an array...no need to use arr[0] here...arr is good
YI JIANG
@jennytech
Jan 02 2016 05:12
it's not wrong
just not let me pass
ferallife
@ferallife
Jan 02 2016 05:12
Is there a bug for challenge 19... The img class model doesn't seem to work.
Vivienne Sales
@Natto278
Jan 02 2016 05:13

Here's the code I used for challenge 19 for html5: <style>
h2 {color: blue;} </style>

<h2>Cat Photo App</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>

ferallife
@ferallife
Jan 02 2016 05:13
Vivienne Sales
@Natto278
Jan 02 2016 05:13
for @ferallife
Stephen DanzLopez
@sd1186
Jan 02 2016 05:13
Assignment with a Returned Value... can someone explain this challenge
keithtang
@keithtang
Jan 02 2016 05:13
@jennytech Which test is failing?
Jaime Victoria
@jaime-evr
Jan 02 2016 05:14
@jennytech got it working with:
function myFunction(a, b) {
  console.log(a + b);
}

myFunction(5, 5);
maybe try reloading the page...
your solution seems correct
wait, you should pass values to my function @jennytech
YI JIANG
@jennytech
Jan 02 2016 05:15
I did

// Example
function ourFunction(a, b) {
console.log(a - b);
}
ourFunction(10, 5); // Outputs 5

// Only change code below this line.

function myFunction(a,b) {
console.log(a + b);
}
myFunction(2,6);

myFunction(2,7)
is pass?
Jaime Victoria
@jaime-evr
Jan 02 2016 05:16
myFunction(5, 5); ... not ... myFunction(a, b)
YI JIANG
@jennytech
Jan 02 2016 05:16

// Example
function ourFunction(a, b) {
console.log(a - b);
}
ourFunction(10, 5); // Outputs 5

// Only change code below this line.

function myFunction(a,b) {
console.log(a + b);
}
myFunction(a,b);

Jaime Victoria
@jaime-evr
Jan 02 2016 05:16
@jennytech ok, now it's correct
YI JIANG
@jennytech
Jan 02 2016 05:16
what should i pass?
what i do is wrong
Jaime Victoria
@jaime-evr
Jan 02 2016 05:16
myFunction(a,b); is wrong
keithtang
@keithtang
Jan 02 2016 05:16
@jennytech I think I know what the issue is. Do you have any spaces between the function call and the first parenthesis?
Jaime Victoria
@jaime-evr
Jan 02 2016 05:17
myFunction(10, 5) is ok
YI JIANG
@jennytech
Jan 02 2016 05:17
no
keithtang
@keithtang
Jan 02 2016 05:17
I've noticed a few exercises where the regular expression on the assertions don't take spaces into consideration right before a function call.
YI JIANG
@jennytech
Jan 02 2016 05:17
I put whatever number right
Jaime Victoria
@jaime-evr
Jan 02 2016 05:17
yup @jennytech
YI JIANG
@jennytech
Jan 02 2016 05:17
i out (6 ,9)
no work
keithtang
@keithtang
Jan 02 2016 05:18

``` // Example
function ourFunction(a, b) {
console.log(a - b);
}
ourFunction(10, 5); // Outputs 5

// Only change code below this line.
function myFunction (numOne, numTwo){
console.log (numOne + numTwo);
}
myFunction(1, 2);
myFunction(7, 9);```

That's my entire solution. See if it differs from yours.
Jaime Victoria
@jaime-evr
Jan 02 2016 05:18
function myFunction(a, b) {
  console.log(a + b);
}

myFunction(5, 5);
I got it working with this
YI JIANG
@jennytech
Jan 02 2016 05:18

// Example
function ourFunction(a, b) {
console.log(a - b);
}
ourFunction(10, 5); // Outputs 5

// Only change code below this line.

function myFunction(a,b) {
console.log(a + b);
}
myFunction(4, 7);

Maulik Darji
@maulikdarji
Jan 02 2016 05:18

@abhash2610 Only the first argument is passed when you call destroyer([1,2,3,1,2,3],2,3), because the definition of the function is

function destroyer(arr) {
..
}

So no need to use arr[0]...use arr

YI JIANG
@jennytech
Jan 02 2016 05:18
i put space now
still no working
Jennifer Alvarez
@alvarezjjj
Jan 02 2016 05:18
Hi guys, i need help ... Giving an element w a p tag a font size of 16px
Ghost
@ghost~55ee52540fc9f982beaff6cd
Jan 02 2016 05:19
@jennytech try removing the example function. it didn't pass me when I left that in there
Abhash Upadhyaya
@abhash2610
Jan 02 2016 05:19

@maulikdarji Here is the prblem statement -

You will be provided with an initial array (the first argument in the destroyer function), followed by one or more arguments. Remove all elements from the initial array that are of the same value as these arguments.

keithtang
@keithtang
Jan 02 2016 05:19
@alvarezjjj What are you stuck on?
Jennifer Alvarez
@alvarezjjj
Jan 02 2016 05:20
Thank you! @peternguyen604
Im going to try that now
CamperBot
@camperbot
Jan 02 2016 05:20
alvarezjjj sends brownie points to @peternguyen604 :sparkles: :thumbsup: :sparkles:
YI JIANG
@jennytech
Jan 02 2016 05:20
not useful
CamperBot
@camperbot
Jan 02 2016 05:20
:star: 132 | @peternguyen604 | http://www.freecodecamp.com/peternguyen604
Jaime Victoria
@jaime-evr
Jan 02 2016 05:20
@jennytech you are correct there
Nic Miller
@nicopotomus
Jan 02 2016 05:21

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

// Your code above this line

return result;
}

// Change the words here to test your function
wordBlanks("duck", "small", "danced", "fast");

What's wrong here?

YI JIANG
@jennytech
Jan 02 2016 05:21

// Example
function ourFunction(a, b) {
console.log(a - b);
}
ourFunction(10, 5); // Outputs 5

// Only change code below this line.

function myFunction(a, b) {
console.log(a + b);
}
myFunction(1, 5);

OK i JUST LEVE IT ALONE NOW
i FEEL bad
Rafael J. Rodriguez
@Rafase282
Jan 02 2016 05:22
wiki format
CamperBot
@camperbot
Jan 02 2016 05:22

:point_right: code formatting [wiki]

Inline code

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

Code Block

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

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

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

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

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

Jaime Victoria
@jaime-evr
Jan 02 2016 05:22
@jennytech I just copied your code and pasted it into my exercise and got it to pass
Abhash Upadhyaya
@abhash2610
Jan 02 2016 05:22
@maulikdarji I understood your point
Maulik Darji
@maulikdarji
Jan 02 2016 05:23
@abhash2610 So only the initial array is passed as first argument..other two arguments are not passed to the function.
But they are stored internally in the arguments[] array and you can access them by using arguments[0], arguments[1].
Jaime Victoria
@jaime-evr
Jan 02 2016 05:23
i don't know why is not passing for you @jennytech, but don't feel bad, you are technically correct...
Ghost
@ghost~55ee52540fc9f982beaff6cd
Jan 02 2016 05:24
hey guys, any suggestions on how this waypoint works?
Rafael J. Rodriguez
@Rafase282
Jan 02 2016 05:24
@jennytech do a copy paste and then click the reset button on the waypoint or bonfire and paste the code, also try refreshingthe page.
Maulik Darji
@maulikdarji
Jan 02 2016 05:24
@abhash2610 so compare youe 2nd and 3rd arguments with the initial array values..and on match Destroy them!
Abhash Upadhyaya
@abhash2610
Jan 02 2016 05:24
@maulikdarji This works - var filtered = arr.slice(0,1);
var target = arr.slice(1);
keithtang
@keithtang
Jan 02 2016 05:24
test
Ghost
@ghost~55ee52540fc9f982beaff6cd
Jan 02 2016 05:24
Waypoint: Accessing Objects Properties with Variables
// Setup
var testObj = {
  12: "Namath",
  16: "Montana",
  19: "Unitas"
};

// Only change code below this line;

var playerNumber;       // Change this Line
var player = testObj;   // Change this Line
Maulik Darji
@maulikdarji
Jan 02 2016 05:25
@abhash2610 :+1:
Ian Barker
@IanBarkerDev
Jan 02 2016 05:25
@peternguyen604 Which player does it tell you to get?
Nic Miller
@nicopotomus
Jan 02 2016 05:25

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

// Your code above this line

return result;
}

// Change the words here to test your function
wordBlanks("duck", "small", "danced", "fast");
`

Jaime Victoria
@jaime-evr
Jan 02 2016 05:25
@nicopotomus whats the error
Ghost
@ghost~55ee52540fc9f982beaff6cd
Jan 02 2016 05:25
@Malical it's telling me to get player 16
Nic Miller
@nicopotomus
Jan 02 2016 05:25
how do i post code corectly?
Rafael J. Rodriguez
@Rafase282
Jan 02 2016 05:26
wiki format
CamperBot
@camperbot
Jan 02 2016 05:26

: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

Maulik Darji
@maulikdarji
Jan 02 2016 05:26
@nicopotomus you need to assign value to your result variable
Rafael J. Rodriguez
@Rafase282
Jan 02 2016 05:26
@nicopotomus check that up there
Nic Miller
@nicopotomus
Jan 02 2016 05:26
@jaime-evr I'm trying to complete the "ad-lib"
Ian Barker
@IanBarkerDev
Jan 02 2016 05:26
@peternguyen604 So you need to get a player Number to 16.
Jaime Victoria
@jaime-evr
Jan 02 2016 05:26
@nicopotomus you are overriding every argument of the function, is that the goal of the exercise?
Ian Barker
@IanBarkerDev
Jan 02 2016 05:27
@peternguyen604 And then get that part of the obj.
Nic Miller
@nicopotomus
Jan 02 2016 05:27
Ithat my understanding
Jaime Victoria
@jaime-evr
Jan 02 2016 05:27
also, you are returning result empty... @nicopotomus
ecahua
@ecahua
Jan 02 2016 05:27
@nicopotomus yeah your result, what your function is returning, is not returning anything
Ian Barker
@IanBarkerDev
Jan 02 2016 05:27
@nicopotomus You don't need to set myNoun = "duck". It already is duck.
Jaime Victoria
@jaime-evr
Jan 02 2016 05:27
what's the exercise?
@nicopotomus
Nic Miller
@nicopotomus
Jan 02 2016 05:28
waypoint: word blanks
ecahua
@ecahua
Jan 02 2016 05:28
waypoint 37 @jaime-evr
Olawale Akinseye
@brainyfarm
Jan 02 2016 05:28
@nicopotomus, a white space is all you need.
Ghost
@ghost~55ee52540fc9f982beaff6cd
Jan 02 2016 05:28
// Setup
var testObj = {
  12: "Namath",
  16: "Montana",
  19: "Unitas"
};

// Only change code below this line;

var playerNumber;       // Change this Line
var player = testObj[16];   // Change this Line
@Malical that's what i've tried... im unsure how this is accessing the property
Nic Miller
@nicopotomus
Jan 02 2016 05:28
ok i'm trying this
Ghost
@ghost~55ee52540fc9f982beaff6cd
Jan 02 2016 05:28
so by using the object's name and square brackets, is it getting the string 'Montana'?
Ian Barker
@IanBarkerDev
Jan 02 2016 05:29
@peternguyen604 Set playerNumber = 16 first. Then access player by testObj on playnumber
@peternguyen604 That is the goal. Does it require that you use bracket notation?
Jaime Victoria
@jaime-evr
Jan 02 2016 05:29
@nicopotomus oh, you need to concatenate the parameters passed to the function
Ghost
@ghost~55ee52540fc9f982beaff6cd
Jan 02 2016 05:29
@Malical yup, it's telling me to use bracket notation
Nic Miller
@nicopotomus
Jan 02 2016 05:29
ah ok
i'll give it a shot thnk u
Ghost
@ghost~55ee52540fc9f982beaff6cd
Jan 02 2016 05:30
```
// Setup
var testObj = {
  12: "Namath",
  16: "Montana",
  19: "Unitas"
};

// Only change code below this line;

var playerNumber = 16;       // Change this Line
var player = testObj[16];   // Change this Line
Ian Barker
@IanBarkerDev
Jan 02 2016 05:30
@peternguyen604 So for bracket notation you need to put the call into ""s.
Olawale Akinseye
@brainyfarm
Jan 02 2016 05:30
That one was confusing to me at first too @nicopotomus, just join the arguments with a white space and return.
Ian Barker
@IanBarkerDev
Jan 02 2016 05:30
@peternguyen604 Also you set the playerNumber to 16, but then just called on 16 instead of player number.
Nic Miller
@nicopotomus
Jan 02 2016 05:30
dumb question - white space ? :/
Ian Barker
@IanBarkerDev
Jan 02 2016 05:30
" "
Enrique Cahua
@enriquecahua
Jan 02 2016 05:32
@nicopotomus result = var1 + var2+ etc...
return result;
Jaime Victoria
@jaime-evr
Jan 02 2016 05:33