These are chat archives for FreeCodeCamp/Help

15th
Oct 2015
Dom
@domfinn
Oct 15 2015 00:02
Hi all, im having trouble with problem number 15 in the bootstrap section. Im pretty sure i have the code correct, but running the test says otherwise. i have tried a hard refresh and that didnt fix it.
Screen Shot 2015-10-15 at 10.02.51 am.png
Screen Shot 2015-10-15 at 10.03.22 am.png
Screen Shot 2015-10-15 at 10.03.43 am.png
Arthur
@enjoyurrlty
Oct 15 2015 00:14
it says nest all of RADIO buttons
@domfinn they are lower
@domfinn indoor/outdoor ones
Dom
@domfinn
Oct 15 2015 00:18
ahhh my bad.
dumbdom
@enjoyurrlty Thank You!!!
CamperBot
@camperbot
Oct 15 2015 00:20
domfinn sends brownie points to @enjoyurrlty :sparkles: :thumbsup: :sparkles:
:star: 301 | @enjoyurrlty | http://www.freecodecamp.com/enjoyurrlty
Arthur
@enjoyurrlty
Oct 15 2015 00:25
stuck with .replace bonfire.
palindrome("00 (: /-\ :) 0-0") should return true. it means that I have to replace all the slashes and - signs right? tried different things such as
str = str.replace(/\/g, '');
str = str.replace(/[-]/g, '');
str = str.replace("/", '');
str = str.replace(/[_]/g, '');
but it didn't work
omg
here is the palindrome
http://i.imgur.com/nnNP6b7.png
Herman Fassett
@HermanFassett
Oct 15 2015 00:27
Try just one replace and have a good regex
Arthur
@enjoyurrlty
Oct 15 2015 00:31
@matthew02 that easy? omg
@matthew02 thank you
CamperBot
@camperbot
Oct 15 2015 00:31
enjoyurrlty sends brownie points to @matthew02 :sparkles: :thumbsup: :sparkles:
:star: 341 | @matthew02 | http://www.freecodecamp.com/matthew02
Arthur
@enjoyurrlty
Oct 15 2015 00:33
@HermanFassett and thank you for your link too. Seems like simple and useful tester.
CamperBot
@camperbot
Oct 15 2015 00:33
enjoyurrlty sends brownie points to @hermanfassett :sparkles: :thumbsup: :sparkles:
:star: 371 | @hermanfassett | http://www.freecodecamp.com/hermanfassett
James Smith
@matthew02
Oct 15 2015 00:33
@enjoyurrlty :smile: Regular expressions are not the easiest thing to learn, but totally worth it. They can be pretty powerful.
Elle
@Gargoyelle
Oct 15 2015 00:54
I have a row of buttons, and I want each to grow bigger when I hover over them without shifting the others. I tried to absolutely position them but whether I use pixel units or percentages it doesn't resize well. Some help would be appreciated!
For context, I want it to look like the example portfolio site -> http://codepen.io/ThiagoFerreir4/full/eNMxEp
For context, I want it to look like the example portfolio site -> http://codepen.io/ThiagoFerreir4/full/eNMxEp
Artie Negron
@Munchkinator
Oct 15 2015 00:57

Hey guys! I'm running into a bit of trouble with the Mutations bonfire and was wondering if you guys could give me a hand. I've got the following code:

...
function mutation(arr) {

var word = arr[0].toLowerCase();
var keyword = arr[1].toLowerCase();

word = word.split('');
keyword = keyword.split('');

for (i=0;i<word.length;i++){
if (word.indexOf(keyword[i]) < 0) {return false;}
}

return true;

}

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

and here's my test results: http://i.imgur.com/n21nmbN.png

James Smith
@matthew02
Oct 15 2015 01:01
@Munchkinator You shouldn't need to split word or keyword. Strings are accessible by index in the same way as arrays.
Greg Duncan
@GregatGit
Oct 15 2015 01:01
@Munchkinator I don't think you need to split
Artie Negron
@Munchkinator
Oct 15 2015 01:02
@matthew02 @Ithinkthatisme Huh? I didn't know that! Thanks guys, I'll see if that does the trick.
CamperBot
@camperbot
Oct 15 2015 01:02
munchkinator sends brownie points to @matthew02 and @ithinkthatisme :sparkles: :thumbsup: :sparkles:
:star: 342 | @matthew02 | http://www.freecodecamp.com/matthew02
:star: 188 | @ithinkthatisme | http://www.freecodecamp.com/ithinkthatisme
James Smith
@matthew02
Oct 15 2015 01:03
@Munchkinator Also, you are looping through word.length, but accessing keyword[i].
Greg Duncan
@GregatGit
Oct 15 2015 01:03
@Munchkinator you would loop through each letter of the second word seeing if its in the second
Artie Negron
@Munchkinator
Oct 15 2015 01:04
@matthew02 @Ithinkthatisme OH! That did the trick! Can't believe I missed that >_<
Elle
@Gargoyelle
Oct 15 2015 01:04
@Munchkinator It should be keyword.length instead of word.length for the loop
Artie Negron
@Munchkinator
Oct 15 2015 01:04
@Gargoyelle @matthew02 @Ithinkthatisme Thanks guys!
CamperBot
@camperbot
Oct 15 2015 01:04
munchkinator sends brownie points to @gargoyelle and @matthew02 and @ithinkthatisme :sparkles: :thumbsup: :sparkles:
:warning: munchkinator already gave matthew02 points
:warning: munchkinator already gave ithinkthatisme points
:star: 197 | @gargoyelle | http://www.freecodecamp.com/gargoyelle
Greg Duncan
@GregatGit
Oct 15 2015 01:08
@Munchkinator This link so your code looks like this var test = "Hello camper" https://gitter.zendesk.com/hc/en-us/articles/200176682-Markdown-basics
Yosafat Ariel
@yoskakomba
Oct 15 2015 01:09
This message was deleted
CamperBot
@camperbot
Oct 15 2015 01:09
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
chris
@cmkerins
Oct 15 2015 01:19
hey my test glitch up on me cant fix it . i refreshed it what eles can i do
IgnisCerebrum
@IgnisCerebrum
Oct 15 2015 01:27
Can anyone help with Bonfire Reverse a String? Camperbot is of no use.
CamperBot
@camperbot
Oct 15 2015 01:27
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
Josh
@obscureether
Oct 15 2015 01:29
ANYONE...... how do you put a background img on a web page using opaque?
vinod07
@vinod07
Oct 15 2015 01:30
how do you add a space after a paragraph?
MiniCodeMan
@MiniCodeMan
Oct 15 2015 01:30
Im having problems with
Waypoint: Use an ID Attribute to Style an Element #cat-photo-form {
background-color: green;
}
thats the code I have for the Id and then i have <form id="cat-photo-form"> and it still says wrong Your form element should have the background-color of green
Mike G.
@mgraham134
Oct 15 2015 01:47
Hello world
CamperBot
@camperbot
Oct 15 2015 01:47

welcome to FreeCodeCamp @mgraham134!

Mike G.
@mgraham134
Oct 15 2015 01:48
What do you guys use to share projects on twitter etc?
JS projects
Simone Lewis
@simlew
Oct 15 2015 02:00
I'm having trouble with the first slot machine task! I've been entering the correct equation to generate the random number

Math.floor(Math.random() * (3 - 1 + 1)) + 1;

but I can't figure out how to see the number I've generated/store it in a slot

Zeb Tim Girouard
@ZebGirouard
Oct 15 2015 02:05
@simlew, you just have to store these as three different variables
Simone Lewis
@simlew
Oct 15 2015 02:05
@ZebGirouard how do I store them as variables?
Zeb Tim Girouard
@ZebGirouard
Oct 15 2015 02:06
same way as usual--instructions ask for a "slotOne", "slotTwo", and "slotThree" -- you just have to use that same formula you said three times, and assign them to all three of the variables
like...
slotOne=1;
slotTwo=2;
slotThree=3;
except, instead of 1, 2, and 3 --use that formula you said earlier
Simone Lewis
@simlew
Oct 15 2015 02:09
I got it! Thanks so much @ZebGirouard
CamperBot
@camperbot
Oct 15 2015 02:09
simlew sends brownie points to @zebgirouard :sparkles: :thumbsup: :sparkles:
:star: 291 | @zebgirouard | http://www.freecodecamp.com/zebgirouard
Zeb Tim Girouard
@ZebGirouard
Oct 15 2015 02:09
np @simlew
keep it up, you're almost at the "fun part": the thinking problems and projects
Simone Lewis
@simlew
Oct 15 2015 02:17
@ZebGirouard wooooo! can't wait haha
Chris
@Shifthawke
Oct 15 2015 02:38
how do you pair program
Abhisek Pattnaik
@abhisekp
Oct 15 2015 02:42
@Shifthawke Pairing :couple:
Chris
@Shifthawke
Oct 15 2015 02:42
LOL
Artie Negron
@Munchkinator
Oct 15 2015 02:42
ba dum pstttt
Herman Fassett
@HermanFassett
Oct 15 2015 02:45
:wedding:
vinod07
@vinod07
Oct 15 2015 02:57
can someone tell me how to add space after a paragraph in html
I used   it is not working.
 
Bill
@kirah1314
Oct 15 2015 02:58
@vinod07 wrap it in the backticks
help format
CamperBot
@camperbot
Oct 15 2015 02:58

:point_right: code formatting [wiki]

Inline code

alt text

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

Code Block

``` ⇦ Type 3 backticks and then press [shift + enter ⏎]

<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

DJ
@qualitymanifest
Oct 15 2015 02:58
like, another line? in that case <br>
@vinod07
vinod07
@vinod07
Oct 15 2015 02:59
No just a single space.
it's probably in there somewhere. I personally just used <br> also
or you can just add a space within your html codes
vinod07
@vinod07
Oct 15 2015 03:01
<p> <a href="http://www.freecatphotoapp.com">cat photos</a> View more</p>
I need a space after "more"
Bill
@kirah1314
Oct 15 2015 03:02
<p> <a href="http://www.freecatphotoapp.com">cat photos</a> View more </p>
just add a space after "more" and before <
vinod07
@vinod07
Oct 15 2015 03:03
Yea, I tried that but it is not working.
Bill
@kirah1314
Oct 15 2015 03:03
which waypoint is this? have a link to it?
vinod07
@vinod07
Oct 15 2015 03:04
http://www.freecodecamp.com/challenges/waypoint-nest-an-anchor-element-within-a-paragraph#?solution=%3Clink%20href%3D%22http%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%3E%20%3Ca%20href%3D%22http%3A%2F%2Fwww.freecatphotoapp.com%22%3Ecat%20photos%3C%2Fa%3E%20View%20more%20%3C%2Fp%3E%0A%0A%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%0A%0A%3Cp%20class%3D%22red-text%22%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E%0A%3Cp%20class%3D%22red-text%22%3EPurr%20jump%20eat%20the%20grass%20rip%20the%20couch%20scratched%20sunbathe%2C%20shed%20everywhere%20rip%20the%20couch%20sleep%20in%20the%20sink%20fluffy%20fur%20catnip%20scratched.%3C%2Fp%3E%0A
Artie Negron
@Munchkinator
Oct 15 2015 03:06
You can use a non-breaking space. Put &nbsp between more and <
@vinod07
Logan Tegman
@ltegman
Oct 15 2015 03:06
@vinod07 The reason your code is not passing is that the text View more within the <p> tag should come before the <a> tag and the space should be between the end of View more and the <a>
vinod07
@vinod07
Oct 15 2015 03:08
thank you
CamperBot
@camperbot
Oct 15 2015 03:08
if you want to thank someone, put an @ before their name!
Sawredjet
@sawredjet
Oct 15 2015 03:09
I am at the waypoint that asks me to turn my CatApp text red. I am very new to HTML and I thought I followed instructions correctly but it didn't work. Any ideas?
vinod07
@vinod07
Oct 15 2015 03:10
can you post the statement here
Greg Duncan
@GregatGit
Oct 15 2015 03:12
This message was deleted
Bill
@kirah1314
Oct 15 2015 03:14
@vinod07 ok I see what the waypoint is asking for. You need this <p>View more <a href="http://www.freecatphotoapp.com">cat photos</a></p>
vinod07
@vinod07
Oct 15 2015 03:14
Yea. I got it. Thank you. @kirah1314
CamperBot
@camperbot
Oct 15 2015 03:14
vinod07 sends brownie points to @kirah1314 :sparkles: :thumbsup: :sparkles:
:star: 279 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Bill
@kirah1314
Oct 15 2015 03:15
@sawredjet can you post what codes you're using?
Sawredjet
@sawredjet
Oct 15 2015 03:16
<h2 class="red-text">CatPhotoApp</h2>
Thanks for your patience. This is all so new
CamperBot
@camperbot
Oct 15 2015 03:16
if you want to thank someone, put an @ before their name!
vinod07
@vinod07
Oct 15 2015 03:17
did you style the h2 tag?
Sawredjet
@sawredjet
Oct 15 2015 03:17
No..
vinod07
@vinod07
Oct 15 2015 03:18
You need to style the tag
Bill
@kirah1314
Oct 15 2015 03:18
@sawredjet you can target h2 by using h2 or .red-text
vinod07
@vinod07
Oct 15 2015 03:18
.red-text
Sawredjet
@sawredjet
Oct 15 2015 03:18
Oh, I tried that and nothing happened...
Bill
@kirah1314
Oct 15 2015 03:19
which waypoint is this? There should be an example on the left
did you use:
did you use the curly brackets with .red-text?
Sawredjet
@sawredjet
Oct 15 2015 03:21
Yes.
Bill
@kirah1314
Oct 15 2015 03:22
@sawredjet can you post the codes you tried? And do you have a link to the waypoint?
Sawredjet
@sawredjet
Oct 15 2015 03:24
<style> .red-text {color: red;} </style></
vinod07
@vinod07
Oct 15 2015 03:24
remove </
I did that, but I don't know how to put in the h2 so that it turns red.
Bill
@kirah1314
Oct 15 2015 03:25
@sawredjet you deleted the h2 that's why
Tim
@tdecker81
Oct 15 2015 03:26

I dont understand why this isn't working. bonfire-diff-two-arrays 'function diff(arr1, arr2) {
var myArr = arr1.concat(arr2);
var newArr = myArr;

for(var h = 0; h < myArr.length; h++) {
var curItem = myArr[h];
var foundCount = 0;
// search array for item
for(var i = 0; i < myArr.length; i++) {
if (myArr[i] == myArr[h])
foundCount++;
}
if(foundCount > 1) {
// remove repeated item from new array
for(var j = 0; j < newArr.length; j++) {
if(newArr[j] == curItem) {
newArr.splice(j, 1);
j = j - 1;
}
}
}
}

// Same, same; but different.
return newArr;
}

diff(["andesite", "grass", "dirt", "dead shrub"], ["andesite", "grass", "dirt", "dead shrub"]);
'

Bill
@kirah1314
Oct 15 2015 03:27
@sawredjet don't delete the h2 then add the class and use the codes you just pasted and it should work
Tim
@tdecker81
Oct 15 2015 03:27
Can someone check this out and tell me what i'm missing.
Sawredjet
@sawredjet
Oct 15 2015 03:27
@kirah1314 it worked!
Bill
@kirah1314
Oct 15 2015 03:28
great!
@sawredjet so your codes were all correct but the h2 was gone that's why your codes couldn't target it
Tim
@tdecker81
Oct 15 2015 03:31
http://freecodecamp.com/challenges/bonfire-diff-two-arrays#?solution=function%20diff(arr1%2C%20arr2)%20%7B%0Avar%20myArr%20%3D%20arr1.concat(arr2)%3B%0A%20%20var%20newArr%20%3D%20myArr%3B%0A%0A%0Afor(var%20h%20%3D%200%3B%20h%20%3C%20myArr.length%3B%20h%2B%2B)%20%7B%0A%20%20%20%20var%20curItem%20%3D%20myArr%5Bh%5D%3B%0A%20%20%20%20var%20foundCount%20%3D%200%3B%0A%20%20%20%20%2F%2F%20search%20array%20for%20item%0A%20%20%20%20for(var%20i%20%3D%200%3B%20i%20%3C%20myArr.length%3B%20i%2B%2B)%20%7B%0A%20%20%20%20%20%20%20%20if%20(myArr%5Bi%5D%20%3D%3D%20myArr%5Bh%5D)%0A%20%20%20%20%20%20%20%20%20%20%20%20foundCount%2B%2B%3B%0A%20%20%20%20%7D%0A%20%20%20%20if(foundCount%20%3E%201)%20%7B%0A%20%20%20%20%20%20%20%20%2F%2F%20remove%20repeated%20item%20from%20new%20array%0A%20%20%20%20%20%20%20%20for(var%20j%20%3D%200%3B%20j%20%3C%20newArr.length%3B%20j%2B%2B)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20if(newArr%5Bj%5D%20%3D%3D%20curItem)%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20newArr.splice(j%2C%201)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20j%20%3D%20j%20-%201%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%7D%0A%7D%20%0A%20%20%0A%20%20%0A%20%20%2F%2F%20Same%2C%20same%3B%20but%20different.%0A%20%20return%20newArr%3B%0A%7D%0A%0Adiff(%5B%22andesite%22%2C%20%22grass%22%2C%20%22dirt%22%2C%20%22dead%20shrub%22%5D%2C%20%5B%22andesite%22%2C%20%22grass%22%2C%20%22dirt%22%2C%20%22dead%20shrub%22%5D)%3B%0A
Tim
@tdecker81
Oct 15 2015 03:49
I got it figured out. Message me if you're stuck and need help on this one.
Jordan Shackelford
@JordanShackelford
Oct 15 2015 03:57
longest url I have ever seen
Tim
@tdecker81
Oct 15 2015 04:01
Sorry
I didnt know it would post the whole thing like that
Anthony
@advion
Oct 15 2015 04:02
Math.floor(Math.random() * (max - min + 1)) + min; return Math.random();
shouldn’t that work? Instead it just gives me numbers like 0.123128498723
but always 0.*
Tim
@tdecker81
Oct 15 2015 04:04
return Math.floor(Math.random()*10);
sorry return Math.floor(Math.random() * (max - min + 1)) + min
Jason
@Jauble
Oct 15 2015 04:06
Anyone know how I can get my timer to toggle start/pause? http://codepen.io/auble220/pen/avyZZE
Anthony
@advion
Oct 15 2015 04:06
gah I had fixed that before but apparently I made it another line again. Obviously I think it’s sleep time since I can’t notice simple stuff anymore
thanks for the help @tdecker81
CamperBot
@camperbot
Oct 15 2015 04:07
advion sends brownie points to @tdecker81 :sparkles: :thumbsup: :sparkles:
:star: 204 | @tdecker81 | http://www.freecodecamp.com/tdecker81
Josh
@obscureether
Oct 15 2015 04:19
Question. .... how can you get a image to show on 3 dif DIV'S
Alec Rizor
@alecrizor
Oct 15 2015 04:26
For bonfire #2 about reversing a string is it possible to use this
var strReverse = str.split('').reverse().join(''); (Found here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)
instead of converting to an array?
Kellen Corkill
@kellencorkill
Oct 15 2015 04:29
@obscureether do you mean the same image 3 times on 3 different divs, or a larger image set across 3 divs?
Tim
@tdecker81
Oct 15 2015 04:30
@alecrizor return str.split('').reverse().join('');
yes that should work just fine it did for me.
Kellen Corkill
@kellencorkill
Oct 15 2015 04:33
@obscureether if you share a class on the 3 divs, you can stack classes <div class="header shared-image"></div> <div class="footer shared-image></div> .shared-image { background: url('#');} - that should give you the same background image in two different divs
Josh
@obscureether
Oct 15 2015 04:34
Thanks
CamperBot
@camperbot
Oct 15 2015 04:34
if you want to thank someone, put an @ before their name!
Josh
@obscureether
Oct 15 2015 04:35
@kellencorkill ...thanks.... keep that I'm mind as well
CamperBot
@camperbot
Oct 15 2015 04:35
obscureether sends brownie points to @kellencorkill :sparkles: :thumbsup: :sparkles:
:star: 38 | @kellencorkill | http://www.freecodecamp.com/kellencorkill
Kellen Corkill
@kellencorkill
Oct 15 2015 04:35
@obscureether You can also put all 3 divs in another div - <div class="container><div 1></div><div 2></div ><div 3></div></div>
@obscureether that will give you one image across the divs contained inside
Alec Rizor
@alecrizor
Oct 15 2015 04:36
@tdecker81 Thanks! Didn't realize I had to alter the return output. Much appreciated!
CamperBot
@camperbot
Oct 15 2015 04:36
alecrizor sends brownie points to @tdecker81 :sparkles: :thumbsup: :sparkles:
:star: 205 | @tdecker81 | http://www.freecodecamp.com/tdecker81
Josh
@obscureether
Oct 15 2015 04:37
Yea looking to have it float on the right side...
Jim
@Herbie2015
Oct 15 2015 04:41
Hi Guys
I'm looking for some help with Waypoint: Target the same element with multiple jQuery Selectors
Tim
@tdecker81
Oct 15 2015 04:45
@Herbie2015 what seems to be the problem
@Herbie2015 each button should look like <button class="btn btn-default target"></button>
Jim
@Herbie2015
Oct 15 2015 04:48
OK, so I remove the id="target1"
Tim
@tdecker81
Oct 15 2015 04:48
yeah once they're all the same it will work
Jim
@Herbie2015
Oct 15 2015 04:50
@tdecker81 ok let me give that a go
Jim
@Herbie2015
Oct 15 2015 04:58
@tdecker81 Can you advise what this means 'Use the addClass() jQuery function to give the element one new class for each selector: animated, shake, and btn-primary'
Dustin Baker
@DustinBaker22
Oct 15 2015 05:16
Someone break FCC?
Nevermind... It's back online. :D
Jason
@Jauble
Oct 15 2015 05:21
Is anyone familiar with execution context?
Dylan R.
@Hatora
Oct 15 2015 05:48
Execution context of what language?
tseamus
@tseamus
Oct 15 2015 05:57
Can anyone help me with this .pop() situation?

var code ="formatted";

 // var numbers = [1,2,3];
// console.log(numbers); // logs [1,2,3]
// var removed = numbers.pop();
// console.log(numbers); // logs [1,2]
// console.log(removed); // logs 3

var myArray = ["John", 23, ["cat", 2]];
// Only change code below this line.
var pop(myArray.length - 1);
var removed = ["cat", 2]; // This should be ["cat", 2] and myArray should now be ["John", 23]

// Only change code above this line.
// We use this function to show you the value of your variable in your output box.
// You'll learn about functions soon.
(function(y, z){return 'myArray = ' + JSON.stringify(y) + ' & removed = ' + JSON.stringify(z);})(myArray, removed);
James Smith
@matthew02
Oct 15 2015 06:03
@tseamus What is it you are trying to do? Remove the last item from the array?
tseamus
@tseamus
Oct 15 2015 06:05
@matthew02 Yup, that's all.
Solehjon
@Solehjon
Oct 15 2015 06:05

Bracket notation is a way to get a character at a specific index within a string.

Computers don't start counting at 1 like humans do. They start at 0.

For example, the character at index 0 in the word "Charles" is "C". So if var firstName = "Charles", you can get the value of the first letter of the string by using firstName[0].

Use bracket notation to find the first character in the firstLetterOfLastName variable.

Try looking at the firstLetterOfFirstName variable declaration if you get stuck.

r007
@r007ed
Oct 15 2015 06:05
@tseamus , I'm rusty... howevr I think var removed = pop(blablabla)
Solehjon
@Solehjon
Oct 15 2015 06:05
what i should to do guys
The first letter of firstLetterOfLastName should be a "L".
James Smith
@matthew02
Oct 15 2015 06:07
@tseamus The syntax should be myArray.pop() to remove the last item. That function returns the item removed in case you want to store it in another variable.
Solehjon
@Solehjon
Oct 15 2015 06:10

Bracket notation is a way to get a character at a specific index within a string.

Computers don't start counting at 1 like humans do. They start at 0.

For example, the character at index 0 in the word "Charles" is "C". So if var firstName = "Charles", you can get the value of the first letter of the string by using firstName[0].

Use bracket notation to find the first character in the firstLetterOfLastName variable.

Try looking at the firstLetterOfFirstName variable declaration if you get stuck.
@Solehjon
what i should to do guys
The first letter of firstLetterOfLastName should be a "L".

abhishek
@rwrdguy
Oct 15 2015 06:11
I was solving the palindrome question and encountered this problem "palindrome("0_0 (: /-\ :) 0-0") should return true." .It is demanding a underscore to match a hyphen. The solution to it i thought would be s = str.toLowerCase().replace(/\s+/g,"").replace(/\s+|,|./g,"");
r = str.toLowerCase().split("").reverse().join("").replace(/\s+|,|./g,"");
But it is not satisfying it?Whats the error .If anyone can help.
Hans van Riet
@hansinla
Oct 15 2015 06:11
@rwrdguy Just strip everything that’s not a-z
James Smith
@matthew02
Oct 15 2015 06:12
@rwrdguy You need to strip all characters that aren't alpha.
tseamus
@tseamus
Oct 15 2015 06:12
Ohh, okay. Thank you @matthew02
CamperBot
@camperbot
Oct 15 2015 06:12
tseamus sends brownie points to @matthew02 :sparkles: :thumbsup: :sparkles:
:star: 343 | @matthew02 | http://www.freecodecamp.com/matthew02
James Smith
@matthew02
Oct 15 2015 06:13
@tseamus Sure thing!
abhishek
@rwrdguy
Oct 15 2015 06:13
@hansinla Can u please change my answer and revert back?It would be helpfuL
@hansinla *edit
@matthew02 Can u please edit my answer and revert back?It would be helpfuL
Hans van Riet
@hansinla
Oct 15 2015 06:15
@rwrdguy I can do that but you should try it yourselve first. If you need help with regex, go here: http://regexone.com
abhishek
@rwrdguy
Oct 15 2015 06:17
@hansinla Yup i went there.But for around 4 odd hours i am trying to solve this issue and in no mood now to do some.Would be glad if u can help
Hans van Riet
@hansinla
Oct 15 2015 06:17
@rwrdguy I’ll help, paste the code that you have so far.
abhishek
@rwrdguy
Oct 15 2015 06:18

@hansinla function palindrome(str) {
// Good luck!
s = str.toLowerCase().replace(/\s+/g,"").replace(/\s+|,|./g,"");
r = str.toLowerCase().split("").reverse().join("").replace(/\s+|,|./g,"");
if (s === r){
return true;
}
else{
return false;
}

}

palindrome("eye");

Hans van Riet
@hansinla
Oct 15 2015 06:22
@rwrdguy In the first line you only need one replace function that replaces all non-alphanumeric characters /[^a-z^0-9]/g with”” If in the second line you take the string from line 1 and reverse it, you’re ready for your comparison.
abhishek
@rwrdguy
Oct 15 2015 06:25
This message was deleted
CamperBot
@camperbot
Oct 15 2015 06:25
if you want to thank someone, put an @ before their name!
NethackHero
@NethackHero
Oct 15 2015 06:26
Hi guys! Has anyone here done the JSON zipline? I'm able to get one JSON data link to be turned into an object and thus surf through and get what I need in it, but I'm confused with how to use the links that are in the objects as property values ie like in twitch's json. I thought I have to recreate another JSON object to a different link each time, but that itself seems confusing.
abhishek
@rwrdguy
Oct 15 2015 06:26
@hansinla ok Thanks u mean i need to omit one replace function and pass string from line 1 into line 2.Did it.But the same issue.Can u please yourself do the editing and verify its 5 th part of Basic Algorithm Scripting
CamperBot
@camperbot
Oct 15 2015 06:26
rwrdguy sends brownie points to @hansinla :sparkles: :thumbsup: :sparkles:
:star: 532 | @hansinla | http://www.freecodecamp.com/hansinla
James Smith
@matthew02
Oct 15 2015 06:27
@rwrdguy var s = str.toLowerCase().replace(/[\W_]/g, "");
Hans van Riet
@hansinla
Oct 15 2015 06:27
@rwrdguy
function palindrome(str) {
  str = str.toLowerCase().replace(/[^a-z^0-9]/g, "");
  return (str == str.split('').reverse().join(''));
}
abhishek
@rwrdguy
Oct 15 2015 06:28
@matthew02 @hansinla Thanks alot.
CamperBot
@camperbot
Oct 15 2015 06:28
rwrdguy sends brownie points to @matthew02 and @hansinla :sparkles: :thumbsup: :sparkles:
:warning: rwrdguy already gave hansinla points
:star: 344 | @matthew02 | http://www.freecodecamp.com/matthew02
Alec Rizor
@alecrizor
Oct 15 2015 06:28
What method do any of you recommend for the factorial bonfire. If then? For loop?
abhishek
@rwrdguy
Oct 15 2015 06:28
@alecrizor For
Alec Rizor
@alecrizor
Oct 15 2015 06:30
@rwrdguy Thanks!
CamperBot
@camperbot
Oct 15 2015 06:30
alecrizor sends brownie points to @rwrdguy :sparkles: :thumbsup: :sparkles:
:star: 184 | @rwrdguy | http://www.freecodecamp.com/rwrdguy
Alec Rizor
@alecrizor
Oct 15 2015 06:40

I wrote this for the factorial bonfire

var fact = 1;
function factorialize(num) {
  for (var i=2;i<=num; i++){
        fact=fact*i;
  }
  return fact;
}

factorialize(5);

and I actually get 120, but still receive the errors that factorialize(5) should return 120 etc. Can anyone see the issue?

Elizabeth Hatleli
@TheHighPriestess
Oct 15 2015 06:41
Can someone briefly explain what this does:
var news = Object.keys(data);
I'm iterating through some JSON
Tim
@tdecker81
Oct 15 2015 06:43
I'm on spinal tap case and can't seem to figure out how to get spinalCase("thisIsSpinalTap") test to pass any help would be great.
James Smith
@matthew02
Oct 15 2015 06:43
@alecrizor You need to declare fact inside the function. You have currently declared it as a global and it continues to accumulate with each test.
Alec Rizor
@alecrizor
Oct 15 2015 06:44
@matthew02 Thank you!
CamperBot
@camperbot
Oct 15 2015 06:44
alecrizor sends brownie points to @matthew02 :sparkles: :thumbsup: :sparkles:
:star: 345 | @matthew02 | http://www.freecodecamp.com/matthew02
Elizabeth Hatleli
@TheHighPriestess
Oct 15 2015 06:45
@tdecker81 Here's my solution:
```
function spinalCase(str) {


   //str = str.replace(/\s/g,'');//remove all spaces
   str = str.replace(/([a-z])([A-Z])/g, '$1 $2');//inserts a space bet upper and lower case
   str = str.toLowerCase();
   console.log(str);
   str = str.replace(/\s/g, '-');
   str = str.replace(/_/g, '-');
   //console.log(str);



 return str;
}




spinalCase('This Is Spinal Tap');
spinalCase('thisIsSpinalTap');
spinalCase('The_Andy_Griffith_Show')
spinalCase('Teletubbies Say Eh-oh')
Tim
@tdecker81
Oct 15 2015 06:46
I was missing the line str = str.replace(/([a-z])([A-Z])/g, '$1 $2'); thanks @TheHighPriestess
CamperBot
@camperbot
Oct 15 2015 06:46
tdecker81 sends brownie points to @thehighpriestess :sparkles: :thumbsup: :sparkles:
:star: 294 | @thehighpriestess | http://www.freecodecamp.com/thehighpriestess
Tim
@tdecker81
Oct 15 2015 06:47
The directions aren't clear that this is a requirement but the test cases demand it so i guess it must be there
Elizabeth Hatleli
@TheHighPriestess
Oct 15 2015 06:50
Yeah...the failing test cases are what you need to look at.
There is also additional information...which may be helpful....on Github
Mark T. Graybill
@Boolean-Operator
Oct 15 2015 06:51
Good Morning, Everyone. I am working on Bonfire:Return the Largest Number Arrays. Do I have to write my own tests or am I just missing something ?
Elizabeth Hatleli
@TheHighPriestess
Oct 15 2015 06:51
I think this additional information is available for all bonfires
@Boolean-Operator I used nested for loops and an if statement for that one
Hans van Riet
@hansinla
Oct 15 2015 06:53
@Boolean-Operator No you can just use the testcase given in the problem and take it from there.
Elizabeth Hatleli
@TheHighPriestess
Oct 15 2015 06:54
Well....what do you mean by "write my own tests"?
The tests necessary are listed there.
Mark T. Graybill
@Boolean-Operator
Oct 15 2015 06:55
@TheHighPriestess. That's what I am trying to use also. But I do not have any tests showing below the instructions like all the other Bonfires before.
@hansinla The section below the instructions, where the test have been in all the other bonfires, is empty. Any ideas?
Elizabeth Hatleli
@TheHighPriestess
Oct 15 2015 06:56
@Boolean-Operator oh...that's odd
NethackHero
@NethackHero
Oct 15 2015 06:57
@TheHighPriestess Since you seem to be ahead of me, I'd like to ask do you have to create a new request and object for each channel?
Elizabeth Hatleli
@TheHighPriestess
Oct 15 2015 06:57
Copy what you have somewhere..and then try resetting the code
NethackHero
@NethackHero
Oct 15 2015 06:57
For the JSON
Elizabeth Hatleli
@TheHighPriestess
Oct 15 2015 06:58
@NethackHero I'm not exactly the best person to ask about JSON....but...if I'm understanding you correctly...no
at least...that's how I have been doing it so far
Manpreet Singh
@designviacode
Oct 15 2015 06:59
hey.. can anyone tell me .. how can i display my code using the syntax highlighting .. ?
Mark T. Graybill
@Boolean-Operator
Oct 15 2015 07:00
@TheHighPriestess That's what I thought, too. Just a small output area with this message:" Your output will go here. Console Log() - type statements will appear in your browsers Devtools JavaScript console". I take it you guys did not have this happen to you.
James Smith
@matthew02
Oct 15 2015 07:00
wiki format
CamperBot
@camperbot
Oct 15 2015 07:00

:point_right: code formatting [wiki]

Inline code

alt text

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

Code Block

``` ⇦ Type 3 backticks and then press [shift + enter ⏎]

<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

Manpreet Singh
@designviacode
Oct 15 2015 07:02
thanks @matthew02 :smile: :clap:
CamperBot
@camperbot
Oct 15 2015 07:02
designviacode sends brownie points to @matthew02 :sparkles: :thumbsup: :sparkles:
:warning: user$.tapOnNext(...).flatMap(...).filter(...).filter(...).filter(...).firstOrDefault is not a function
James Smith
@matthew02
Oct 15 2015 07:02
@designviacode Sure thing!
NethackHero
@NethackHero
Oct 15 2015 07:04
@TheHighPriestess Okay, sounds like you have a better way to do it than this:
var arrayOfNames = ["freecodecamp", "storbeck", "terakilobyte", "habathcx", "RobotCaleb", "thomasballinger", "noobs2ninjas", "beohoff"];

var jsonChannel = function(jsonLink) {
var xmlhttp = new XMLHttpRequest(); 
var mainUrl = jsonLink;
  //on read state we run this function:
  xmlhttp.onreadystatechange = function() {
    if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
      var myObj = JSON.parse(xmlhttp.responseText);
      var status;
      if (myObj.stream === null) {
        status = "Offline";
      } else {
        status = "Online";
      }

      var channelLink = myObj._links.channel;
      mainUrl = channelLink;

      $(".streams").append(channelLink + ": " + status + "<br>");
    };
  }

  xmlhttp.open("GET", mainUrl, true);
  xmlhttp.send();
}
$(document).ready(function() {
  jsonChannel("https://api.twitch.tv/kraken/streams/freecodecamp/");
  jsonChannel("https://api.twitch.tv/kraken/streams/storbeck/");
});
I'm planning to put the array through the function as a parameter, but creating a new object each time...
Elizabeth Hatleli
@TheHighPriestess
Oct 15 2015 07:06
@NethackHero Well...here's how I did it: http://codepen.io/highpriestess/pen/MaWxoP
NethackHero
@NethackHero
Oct 15 2015 07:06
@TheHighPriestess thanks I'll check it out
CamperBot
@camperbot
Oct 15 2015 07:06
nethackhero sends brownie points to @thehighpriestess :sparkles: :thumbsup: :sparkles:
:warning: user$.tapOnNext(...).flatMap(...).filter(...).filter(...).filter(...).firstOrDefault is not a function
Mark T. Graybill
@Boolean-Operator
Oct 15 2015 07:08
@TheHighPriestess That seems to work. I have tests now. Thanks
CamperBot
@camperbot
Oct 15 2015 07:08
boolean-operator sends brownie points to @thehighpriestess :sparkles: :thumbsup: :sparkles:
:warning: user$.tapOnNext(...).flatMap(...).filter(...).filter(...).filter(...).firstOrDefault is not a function
Elizabeth Hatleli
@TheHighPriestess
Oct 15 2015 07:12
@NethackHero It was actually pretty simple once I figured it out. I'm doing the Camper News zipline the same way...
Dean Whittaker
@deanhtid
Oct 15 2015 07:12
can anyone help me on: Waypoint: Make Instances of Objects with a Constructor Function
Elizabeth Hatleli
@TheHighPriestess
Oct 15 2015 07:13
I don't think this is necessary though: dataType: "jsonp"
Dean Whittaker
@deanhtid
Oct 15 2015 07:13
```
var Car = function() {
   this.wheels = 4;
};

// Only change code below this line.
var myCar = new Car();

//Add the property "engines" to myCar, and make it a number.
  this.engines = 1;

// Only change code above this line.
(function() {return JSON.stringify(myCar);})();
Elizabeth Hatleli
@TheHighPriestess
Oct 15 2015 07:15
should be myCar.engines = 1;
Dean Whittaker
@deanhtid
Oct 15 2015 07:17
oh! thanks @TheHighPriestess
CamperBot
@camperbot
Oct 15 2015 07:17
deanhtid sends brownie points to @thehighpriestess :sparkles: :thumbsup: :sparkles:
:warning: user$.tapOnNext(...).flatMap(...).filter(...).filter(...).filter(...).firstOrDefault is not a function
Michael Kebe
@michaelkebe
Oct 15 2015 07:44
http://codepen.io/michaelkebe/pen/Qjqavg
Any suggestions? I don't like the CSS part.
Alec Rizor
@alecrizor
Oct 15 2015 07:46
How is str.replaceAll("\s", ""); not a function?
Michael Kebe
@michaelkebe
Oct 15 2015 07:47
replaceAll is not a method of String. There is a replace.
James Smith
@matthew02
Oct 15 2015 07:47
@alecrizor Unless you extended String.prototype, you're looking for str.replace(...)
Michael Kebe
@michaelkebe
Oct 15 2015 07:49
@alecrizor Try "foobarbaz".replace(/a/g, "X")
@alecrizor the g says, that the regex should match globally (all possible matches).
Aleksandar B.
@aleksandar-b
Oct 15 2015 07:51
@michaelkebe change color of font to something lighter and make another version of green and red
Alec Rizor
@alecrizor
Oct 15 2015 07:52
@michaelkebe Ok I'm on the palindrome bonfire btw. Any tips for removing all punctuation?
Michael Kebe
@michaelkebe
Oct 15 2015 07:53
@alecrizor Remove from what?
Aleksandar B.
@aleksandar-b
Oct 15 2015 07:55
@alecrizor [^A-Za-z0-9]/g
Alec Rizor
@alecrizor
Oct 15 2015 07:55
I guess I mean ignoring from the palindromes entered
Thanks @samosale I'll give it a shot
CamperBot
@camperbot
Oct 15 2015 07:56
alecrizor sends brownie points to @samosale :sparkles: :thumbsup: :sparkles:
:star: 348 | @samosale | http://www.freecodecamp.com/samosale
Michael Kebe
@michaelkebe
Oct 15 2015 08:00
Thanks @samosale. Tried it, but I like the black.
CamperBot
@camperbot
Oct 15 2015 08:00
michaelkebe sends brownie points to @samosale :sparkles: :thumbsup: :sparkles:
:star: 349 | @samosale | http://www.freecodecamp.com/samosale
NethackHero
@NethackHero
Oct 15 2015 08:04
@TheHighPriestess Hmm I'm trying to find a way to easily utilise the '_link' from twitch, as well as finding a simple way to create objects for each stream link. Thanks anyway, I've learnt about JSON with AJAX
CamperBot
@camperbot
Oct 15 2015 08:04
nethackhero sends brownie points to @thehighpriestess :sparkles: :thumbsup: :sparkles:
:star: 295 | @thehighpriestess | http://www.freecodecamp.com/thehighpriestess
Dean Whittaker
@deanhtid
Oct 15 2015 08:06
what am i doing wrong
function reverseString(str) {
  return str;
}

reverseString("hello");

array = reverseString.split(' ');

array.reverse();
Michael Kebe
@michaelkebe
Oct 15 2015 08:08
@deanhtid First write your solution inside the function reverseString
@deanhtid The function has to return the reversed String
Dean Whittaker
@deanhtid
Oct 15 2015 08:09
Sorry i dont know what you mean, finding this stuff hard to grasp
@michaelkebe
Vietnamese Donkey
@vietnamkong
Oct 15 2015 08:10
Find the Longest Word in a String
CamperBot
@camperbot
Oct 15 2015 08:10

find the longest word in a string

:zero: bonfire find the longest word in a string

Vietnamese Donkey
@vietnamkong
Oct 15 2015 08:10
Find the Longest Word in a String
CamperBot
@camperbot
Oct 15 2015 08:10

find the longest word in a string

:zero: bonfire find the longest word in a string

Vietnamese Donkey
@vietnamkong
Oct 15 2015 08:10
hint
CamperBot
@camperbot
Oct 15 2015 08:10
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
Vietnamese Donkey
@vietnamkong
Oct 15 2015 08:10
hint Find the Longest Word in a String
CamperBot
@camperbot
Oct 15 2015 08:10
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
Aleksandar B.
@aleksandar-b
Oct 15 2015 08:20

@deanhtid you should put

array = str.split(' ');
array.reverse();

inside

function reverseString(str) {
  return str;
}

also you should not return str, you should return array but first you need to do join, because you must return string not array.

Dean Whittaker
@deanhtid
Oct 15 2015 08:28
thanks @samosale but im totally not getting it
function reverseString(str) {
  array = str.split(' ');
  array.reverse();
  array.join(" ");
  return str;
}
CamperBot
@camperbot
Oct 15 2015 08:28
deanhtid sends brownie points to @samosale :sparkles: :thumbsup: :sparkles:
:star: 351 | @samosale | http://www.freecodecamp.com/samosale
Jeremy Gorniak
@Gornstats
Oct 15 2015 08:33
@deanhtid hi dean, in that function you are returning 'str' the same variable you started with. Try returning 'array' because that is the variable you have done your split/reverse/join operations on
Dean Whittaker
@deanhtid
Oct 15 2015 08:34
Hi @Gornstats tried that and still wrong =(
Jeremy Gorniak
@Gornstats
Oct 15 2015 08:35
have you tried console.log() ing your variable on each line to see what you're getting?
Tiago Jobling
@Jobling
Oct 15 2015 08:36
you have to return arra.join(' ');
Jeremy Gorniak
@Gornstats
Oct 15 2015 08:36
id also take a look at your split() call. if you are calling split(' ') it will only split the characters on spaces, not for every letter (as opposed to split('')
Tiago Jobling
@Jobling
Oct 15 2015 08:36
array*
array.join(' ') returns a string, and it's that string that you have to return @deanhtid
Dean Whittaker
@deanhtid
Oct 15 2015 08:39
@Gornstats sorry to sound stupid but whats console.log() ing
@Gornstats split(‘') worked
as did array.join(' ')
thanks @Gornstats @Jobling
CamperBot
@camperbot
Oct 15 2015 08:40
deanhtid sends brownie points to @gornstats and @jobling :sparkles: :thumbsup: :sparkles:
Jeremy Gorniak
@Gornstats
Oct 15 2015 08:40
@deanhtid console.log(array) will print out the value of the variable 'array' in your console. if youre using chrome you can get the console to pop up using CTRL+SHFT+J
CamperBot
@camperbot
Oct 15 2015 08:40
:star: 309 | @gornstats | http://www.freecodecamp.com/gornstats
:star: 185 | @jobling | http://www.freecodecamp.com/jobling
Dean Whittaker
@deanhtid
Oct 15 2015 08:41
ahhh thanks @Gornstats appreciate that, Im using Safari but will switch to Chrome if better
CamperBot
@camperbot
Oct 15 2015 08:41
deanhtid sends brownie points to @gornstats :sparkles: :thumbsup: :sparkles:
:warning: deanhtid already gave gornstats points
Manpreet Singh
@designviacode
Oct 15 2015 08:47
@abhisekp can you explain the what the bind function does in this case
```
Abhisek Pattnaik
@abhisekp
Oct 15 2015 08:48
explain js res
Manpreet Singh
@designviacode
Oct 15 2015 08:48
function largestOfFour(arr) {
  // You can do this!
  // Yes, I can. :P
  return arr.map(Function.apply.bind(Math.max, null));
}
Abhisek Pattnaik
@abhisekp
Oct 15 2015 08:48
@designviacode that's advance stuff. Watch this https://www.youtube.com/watch?v=Bv_5Zv5c-Ts
@designviacode that video is not for beginners. But just have patience. Don't ask question till end and watch it for 3.5 hrs
Manpreet Singh
@designviacode
Oct 15 2015 08:48
okay .. :wink:
Abhisek Pattnaik
@abhisekp
Oct 15 2015 08:49
@designviacode it'll benefit your understanding and overall perspective about JS
manishkondaka
@manishkondaka
Oct 15 2015 08:52
in the exercise "Waypoint: Style Text Inputs as Form Controls" is there any bug, cause its showing my <i> is not closed but it is closed
Aleksandar B.
@aleksandar-b
Oct 15 2015 09:08
@manishkondaka put a link to your Waypoint here
Marq
@alionking
Oct 15 2015 09:25
hi. can anyone explain waypoint 30?
Aleksandar B.
@aleksandar-b
Oct 15 2015 09:27
@alionking it says that you wrap your input field with form element from the example, just need to change action and put the requested one.
Andrew Southard
@andrewsouthard1
Oct 15 2015 09:31
hey guys, I've been trying to get this bonfire working for 2 days, and I feel I've got it right I just can't see what I'm missing
it's the bonfire to check for palidromes
DTing
@dting
Oct 15 2015 09:33
what's your code look like so far?
Andrew Southard
@andrewsouthard1
Oct 15 2015 09:33
should i screen shot my code or just copy paste
blob
DTing
@dting
Oct 15 2015 09:36
the main problem is you are comparing the string you made
to the original string
if you think about that the original string still has all the capitalization and the punctuations you stripped out to make the new string
Joseph Botros
@josephwasily
Oct 15 2015 09:37
@designviacode I can't understand your example
can you explain it ?
Andrew Southard
@andrewsouthard1
Oct 15 2015 09:37
ahhh ok
DTing
@dting
Oct 15 2015 09:37
so that comparison needs to be changed to somethign else.
Andrew Southard
@andrewsouthard1
Oct 15 2015 09:38
perfect thank you so much!
CamperBot
@camperbot
Oct 15 2015 09:38
if you want to thank someone, put an @ before their name!
Andrew Southard
@andrewsouthard1
Oct 15 2015 09:38
thank you @dting !!!
CamperBot
@camperbot
Oct 15 2015 09:38
andrewsouthard1 sends brownie points to @dting :sparkles: :thumbsup: :sparkles:
:star: 1397 | @dting | http://www.freecodecamp.com/dting
Manpreet Singh
@designviacode
Oct 15 2015 09:39
hi @josephwasily ..
this function is to find a largest number out of 4 arrays ..
Joseph Botros
@josephwasily
Oct 15 2015 09:41
how did you pass the array numbers, shouldn't we pass the value of the array element in the callback function, like this array.map(function(value){//access value}; ??
Manpreet Singh
@designviacode
Oct 15 2015 09:49
The function. Apply takes a array as argument.. The bind function attaches a Math.max function.. Which iterates through each of the values of the array..
My first version for solving this problem was like such..

function maxArray(myArr) {
  return Math.max.apply(null, myArr);
}
function largestOfFour(arr) {
  var base = arr.map(function (val) {
    return maxArray(val);
  });
  return base;
}
Joseph Botros
@josephwasily
Oct 15 2015 09:56
thanks @designviacode
CamperBot
@camperbot
Oct 15 2015 09:56
josephwasily sends brownie points to @designviacode :sparkles: :thumbsup: :sparkles:
:star: 127 | @designviacode | http://www.freecodecamp.com/designviacode
Manpreet Singh
@designviacode
Oct 15 2015 09:58
@josephwasily :wink: :+1:
Terry Mafura
@maffsojah
Oct 15 2015 10:00
DTing
@dting
Oct 15 2015 10:02
@maffsojah sure whats your code look like now?

@designviacode i actually like your code more because of readability but i would have written it like:

function largestOfFour(arr) {
  return arr.map(function (subArr) {
    return Math.max.apply(null, subArr);
  });
}

or

function arrayMax(myArr) {
  return Math.max.apply(null, myArr);
}

function largestOfFour(arr) {
  return arr.map(arrayMax);
}
since you just call your maxArray function you can just pass the uncalled function as the map callback function
Terry Mafura
@maffsojah
Oct 15 2015 10:06
This message was deleted
Manpreet Singh
@designviacode
Oct 15 2015 10:07
@dting yupp .. it does looks more clean and simple .. :smile:
Terry Mafura
@maffsojah
Oct 15 2015 10:11
@dting
function palindrome(str) {
  // Good luck!
  return str = str.split('').reverse().join('');
}



palindrome("eye");
DTing
@dting
Oct 15 2015 10:12
so one thing is you have an assignment not a comparison
so it just returns the reversed string
the other thing you need to do is strip out punctuations and ignore capitalizations
bf palindrome
CamperBot
@camperbot
Oct 15 2015 10:13

:fire:Bonfire: Check for Palindromes :link:

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



palindrome("eye");

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

more info:  bf details | bf links | hint

DTing
@dting
Oct 15 2015 10:13
bf details
CamperBot
@camperbot
Oct 15 2015 10:13

:fire:Bonfire: Check for Palindromes :link:

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



palindrome("eye");
Return true if the given string is a palindrome. Otherwise, return false.
A palindrome is a word or sentence that's spelled the same way both forward and backward, ignoring punctuation, case, and spacing.
You'll need to remove punctuation and turn everything lower case in order to check for palindromes.
We'll pass strings with varying formats, such as "racecar", "RaceCar", and "race CAR" among others.
Remember to use RSAP if you get stuck. Try to pair program. Write your own code.
links:
DTing
@dting
Oct 15 2015 10:13
A palindrome is a word or sentence that's spelled the same way both forward and backward, ignoring punctuation, case, and spacing.
but the reversing the string looks correct. see if that helps
Terry Mafura
@maffsojah
Oct 15 2015 10:15
ok @dting let me try
DTing
@dting
Oct 15 2015 10:19
@maffsojah okay good luck
raghunathperam
@raghunathperam
Oct 15 2015 10:29
hey guys im working as .net developer in a s/w company and i got a issue i.e.., the page is not getting displayed it is displaying for a sec and getting disappeared
Joseph Botros
@josephwasily
Oct 15 2015 10:38
function end(str, target) {
  // "Never give up and good luck will find you."
  // -- Falcor
  return str.substr(-(target.length))===target;
}

end("Bastian", "n");
@raghunathperam send screenshot
alinademeter
@alinademeter
Oct 15 2015 10:52
hello
i need some help here pls
Jim
@Herbie2015
Oct 15 2015 10:53
Hi Guys, I am stuck on JQuery waypoint 6. Can you anyone help me out please?
alinademeter
@alinademeter
Oct 15 2015 10:53
Untitled.png
i am stuck with JavaScript 5
Jim
@Herbie2015
Oct 15 2015 10:55
How do I add a screen shot?
Aleksander Gębicki
@Takumar
Oct 15 2015 10:56
@alinademeter almost good, but you have already variable lastNameLength and you have to assign lentgth of string lastName to that variable.
So you'd rather have to write something similar to: abcLength = "abc".length;
@alinademeter length is property of string which says how long is that string so you use it writing .length after variable you want to check.
And you want to check variable: lastName.
By the way, my sister was in ClujNapoca for half a year few years ago, and she loves your country :-)
alinademeter
@alinademeter
Oct 15 2015 11:00
thank you so much @Takumar
CamperBot
@camperbot
Oct 15 2015 11:00
alinademeter sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 463 | @takumar | http://www.freecodecamp.com/takumar
DTing
@dting
Oct 15 2015 11:01
@Herbie2015 you can drag and drop it onto the chat
alinademeter
@alinademeter
Oct 15 2015 11:02
glad to hear that
:)
Marq
@alionking
Oct 15 2015 11:03
im stuck on html/css #30. any help?
Jim
@Herbie2015
Oct 15 2015 11:03
@dting I am trying to copy it into the chat but it's not allowing me to do so. I am unable to drag and drop
Aleksander Gębicki
@Takumar
Oct 15 2015 11:03
rumunia_niculitel.jpg
@alinademeter maybe you recognize someone on her painting :-)
Carsten Jaksch
@kris4de
Oct 15 2015 11:04
Need inspiration: Any other solution to capitalize a string? With regex for example.
function titleCase(str) {
  var str = str.toLowerCase().split(' ');

  for ( var i = 0; i < str.length; i++ ) {
    var newStr = str[i].charAt(0).toUpperCase() + str[i].slice(1);

    str[i] = newStr;
  }

  return str.join(' ');
}

titleCase("I'm a little tea pot");
DTing
@dting
Oct 15 2015 11:04
@Herbie2015 are you trying to drag an image file onto the chat? that should work if not. you can paste code using
help formatting
CamperBot
@camperbot
Oct 15 2015 11:04

:point_right: code formatting [wiki]

Inline code

alt text

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

Code Block

``` ⇦ Type 3 backticks and then press [shift + enter ⏎]

<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

DTing
@dting
Oct 15 2015 11:05
bf title
CamperBot
@camperbot
Oct 15 2015 11:05

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

function titleCase(str) {
  return str;
}

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

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

more info:  bf details | bf links | hint

alinademeter
@alinademeter
Oct 15 2015 11:05
@Takumar very nice painting:)
Aleksander Gębicki
@Takumar
Oct 15 2015 11:06
@alinademeter thank you, glad to hear you like it :-)
CamperBot
@camperbot
Oct 15 2015 11:06
takumar sends brownie points to @alinademeter :sparkles: :thumbsup: :sparkles:
:star: 154 | @alinademeter | http://www.freecodecamp.com/alinademeter
Jim
@Herbie2015
Oct 15 2015 11:07
<script>
  $(document).ready(function() {
$("button").addclass("animated")
$(".btn").addclass("shake")
$("#target1").addclass("btn")
  });
</script>

<!-- You shouldn't need to modify code below this line -->

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <h4>#left-well</h4>
      <div class="well" id="left-well">
        <button id="target1" class="btn btn-default target" id="target1">#target1</button>
        <button class="btn btn-default target"
Marq
@alionking
Oct 15 2015 11:08
<form action="/submit-cat-photo" input type="text" placeholder="cat photo URL"></form>
DTing
@dting
Oct 15 2015 11:08
@greasan you could use string.replace with a function
function titleCase(str) {
    return str
        .toLowerCase()
        .replace(/\S+/g, function(match) {
            return match.charAt(0).toUpperCase() + match.slice(1);
        });
}
Jim
@Herbie2015
Oct 15 2015 11:10
<script>
  $(document).ready(function() {
$("button").addclass("animated")
$(".btn").addclass("shake")
$("#target1").addclass("btn")
  });
</script>

<!-- You shouldn't need to modify code below this line -->

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <h4>#left-well</h4>
      <div class="well" id="left-well">
        <button id="target1" class="btn btn-default target" id="target1">#target1</button>
        <button class="btn btn-default target"
Hi Guys, can anyone tell me what is wrong with my code please? This is from waypoint 6 on JQuery and it is failing on the last 3 steps.
DTing
@dting
Oct 15 2015 11:13
@Herbie2015 the class you should be adding is "btn-primary"
not "btn"
Carsten Jaksch
@kris4de
Oct 15 2015 11:13
@dting: Very simple solution. Thanks a lot. Regex is not my friend (yet).
CamperBot
@camperbot
Oct 15 2015 11:13
greasan sends brownie points to @dting :sparkles: :thumbsup: :sparkles:
:star: 1402 | @dting | http://www.freecodecamp.com/dting
Jim
@Herbie2015
Oct 15 2015 11:14
@dting I have just changed it to btn-primary but the code still fails. Any other ideas?
Sidharth Kriplani
@sidkrip
Oct 15 2015 11:15

@Herbie2015 ```js

<script>
$(document).ready(function() {
$("button").addClass("shake");
$(".btn").addClass("btn-primary");
$("#target1").addClass("bounce");
});
</script>

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

```

  • @Herbie2015
    ```js

    <script>
    $(document).ready(function() {
    $("button").addClass("shake");
    $(".btn").addClass("btn-primary");
    $("#target1").addClass("bounce");
    });
    </script>

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

```

aargh
I will try one last time.
<script>
  $(document).ready(function() {
    $("button").addClass("shake");
    $(".btn").addClass("btn-primary");
    $("#target1").addClass("bounce");
  });
</script>

<!-- You shouldn't need to modify code below this line -->

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <h4>#left-well</h4>
      <div class="well" id="left-well">
        <button class="btn btn-default target" id="target1">#target1</button>
        <button class="btn btn-default target" id="target2">#target2</button>
        <button class="btn btn-default target" id="target3">#target3</button>
      </div>
    </div>
    <div class="col-xs-6">
      <h4>#right-well</h4>
      <div class="well" id="right-well">
        <button class="btn btn-default target" id="target4">#target4</button>
        <button class="btn btn-default target" id="target5">#target5</button>
        <button class="btn btn-default target" id="target6">#target6</button>
      </div>
    </div>
  </div>
</div>
DTing
@dting
Oct 15 2015 11:18
hmm
try resetting the code
and redoing it. that looks correct
oh
you dont need bounce you need animated
animated, shake and btn-primary
Use the addClass() jQuery function to give the element one new class for each selector: animated, shake, and btn-primary.
Sidharth Kriplani
@sidkrip
Oct 15 2015 11:20
<script>
  $(document).ready(function() {
    $("button").addClass("animated shake");
    $(".btn").addClass("btn-primary");
    $("#target1").addClass("animated bounce, animated shake, btn-primary");
  });
</script>

<!-- You shouldn't need to modify code below this line -->

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <h4>#left-well</h4>
      <div class="well" id="left-well">
        <button class="btn btn-default target" id="target1">#target1</button>
        <button class="btn btn-default target" id="target2">#target2</button>
        <button class="btn btn-default target" id="target3">#target3</button>
      </div>
    </div>
    <div class="col-xs-6">
      <h4>#right-well</h4>
      <div class="well" id="right-well">
        <button class="btn btn-default target" id="target4">#target4</button>
        <button class="btn btn-default target" id="target5">#target5</button>
        <button class="btn btn-default target" id="target6">#target6</button>
      </div>
    </div>
  </div>
</div>
there you go. works
but anyway..the question is that the modulus operator repeated the array index back from 0 to 4 after the end was reached.
Jim
@Herbie2015
Oct 15 2015 11:25
@dting When I use animated the last step fails. The last step passes when I use bounce but fails when I use animated.
Sidharth Kriplani
@sidkrip
Oct 15 2015 11:26
ignore that last line
DTing
@dting
Oct 15 2015 11:28
this works for me:
<script>
  $(document).ready(function() {
    $(".btn").addClass("animated");
    $("button").addClass("shake");
    $("#target1").addClass("btn-primary");
  });
</script>
Jim
@Herbie2015
Oct 15 2015 11:28
@sidkrip @dting I was only using animated in one and shake in the other . I changed it to animated shake and animated bounce and it worked. Thanks guys! :D
CamperBot
@camperbot
Oct 15 2015 11:28
herbie2015 sends brownie points to @sidkrip and @dting :sparkles: :thumbsup: :sparkles:
:star: 203 | @sidkrip | http://www.freecodecamp.com/sidkrip
:star: 1403 | @dting | http://www.freecodecamp.com/dting
Jim
@Herbie2015
Oct 15 2015 11:38
@dting It's strange because I had exactly the same as you but it was failing for me.
Neeraj
@neerajtramp
Oct 15 2015 11:40
how do you reverse a string?
array.reverse(); doesn't seem to work
Ian
@IanR0
Oct 15 2015 11:46
@neerajtramp You need to first split the string into an array of stings using .split() then reverse the array using .reverse() then rejoin the array into a string using .join()
.reverse() only works on arrays
when you are using .split() and .join() you need to specify the separator within the brackets
for a string you would just put an empty string like .split("")
DoRm
@DoRm
Oct 15 2015 11:52
you mean for separate letters you would put an empty string
Ian
@IanR0
Oct 15 2015 11:54
yeah so if taking a string and looking to get an output of separate letters
sorry that wasn't clear
Neeraj
@neerajtramp
Oct 15 2015 12:00
or, do I need to write for loop and printing it in reverse order?
DTing
@dting
Oct 15 2015 12:01
once you have split the original string into an array or characters, and then reversed the array. and joined the reversed array you can just return that
the tests for that challenge are looking to see if the function returns the reversed string that the function was called with
Essang Isaac
@essangisaac
Oct 15 2015 12:02

<script>
function runSlots(){
var slotOne;
var slotTwo;
var slotThree;

var images = ["http://i.imgur.com/9H17QFk.png", "http://i.imgur.com/9RmpXTy.png", "http://i.imgur.com/VJnmtt5.png"];

// Only change code below this line.

Math.floor(Math.random() * (3 - 1 + 1)) + 1;
Math.floor(Math.random() * (3 - 1 + 1)) + 1;
Math.floor(Math.random() * (3 - 1 + 1)) + 1;


// Only change code above this line.

$(".logger").html("");
$(".logger").html("Not A Win")

if(slotOne !== undefined && slotTwo !== undefined && slotThree !== undefined){
  $(".logger").html(slotOne + " " + slotTwo + " " + slotThree);
}
return [slotOne, slotTwo, slotThree];

}

help please
CamperBot
@camperbot
Oct 15 2015 12:03

:point_right: bonfire no repeats please [wiki]

Problem Explanation:

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

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

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

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

DoRm
@DoRm
Oct 15 2015 12:03
it's var slotOne = Math.floor(Math.random() * (3 - 1 + 1)) + 1;
Essang Isaac
@essangisaac
Oct 15 2015 12:04

<script>
function runSlots(){
var slotOne;
var slotTwo;
var slotThree;

var images = ["http://i.imgur.com/9H17QFk.png", "http://i.imgur.com/9RmpXTy.png", "http://i.imgur.com/VJnmtt5.png"];

// Only change code below this line.



// Only change code above this line.

$(".logger").html("");
$(".logger").html("Not A Win")

if(slotOne !== undefined && slotTwo !== undefined && slotThree !== undefined){
  $(".logger").html(slotOne + " " + slotTwo + " " + slotThree);
}
return [slotOne, slotTwo, slotThree];

}

slotOne should be a random number.
DTing
@dting
Oct 15 2015 12:05
This message was deleted
Essang Isaac
@essangisaac
Oct 15 2015 12:08
@DoRm Thanks
CamperBot
@camperbot
Oct 15 2015 12:08
essangisaac sends brownie points to @dorm :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for dorm
DoRm
@DoRm
Oct 15 2015 12:08
@essangisaac No problem
DTing
@dting
Oct 15 2015 12:09
the slot variables are already declared above the comment
so you can just use
slotOne = ...
slotTwo = ...
slotThree = ...
Terry Mafura
@maffsojah
Oct 15 2015 12:54
Hello, can someone help me. Still stuck on http://freecodecamp.com/challenges/bonfire-check-for-palindromes
This is my code
function palindrome(str) {
  // Good luck!
 var removeIt = str.replace(/[',.!@`;':""']/g, "").toLowerCase();

 var reverseIt = removeIt.split('').reverse().join('');

if (removeIt == reverseIt){

  return true;

}else{

  return false;

}

}



palindrome("eye");
whathejoe
@whathejoe
Oct 15 2015 12:55
@maffsojah can you show us where you're at
Terry Mafura
@maffsojah
Oct 15 2015 12:56
@whathejoe here is my code
function palindrome(str) {
  // Good luck!
 var removeIt = str.replace(/[',.!@`;':""']/g, "").toLowerCase();

 var reverseIt = removeIt.split('').reverse().join('');

if (removeIt == reverseIt){

  return true;

}else{

  return false;

}

}



palindrome("eye");
DoRm
@DoRm
Oct 15 2015 12:56
@maffsojah it looks like you forgot - so I'm going to assume you're failing the last test
whathejoe
@whathejoe
Oct 15 2015 12:57
@maffsojah i think you just missed a selector
_ and - to be specfic
DoRm
@DoRm
Oct 15 2015 12:59
and - I'm pretty sure the last test is 0_0 0-0
Carsten Jaksch
@kris4de
Oct 15 2015 13:01
bonfire numbers
CamperBot
@camperbot
Oct 15 2015 13:01

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

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

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

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

more info:  bf details | bf links | hint

Carsten Jaksch
@kris4de
Oct 15 2015 13:01
Any better solution on this?
function largestOfFour(arr) {

  var reArr = [];

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

    var newArr = arr[i].sort ( function ( a, b ) {

      if ( a > b ) {
        return -1;
      } else if ( a < b ) {
        return 1;
      } else {
        return 0;
      }

    } );

    reArr.push(newArr[0]);
  }
  return reArr;
}

largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);
Terry Mafura
@maffsojah
Oct 15 2015 13:03
@whathejoe i have added them but i'm failing the "My age is 0" test
DoRm
@DoRm
Oct 15 2015 13:04
I really don't understand why people don't use the map function FCC teaches it before the Bonfires for a reason it removes spaghetti code
whathejoe
@whathejoe
Oct 15 2015 13:04
@maffsojah maybe try putting in some console.log() in between to see what it's returning
@DoRm which map function?
DoRm
@DoRm
Oct 15 2015 13:05
array.prototype.map
whathejoe
@whathejoe
Oct 15 2015 13:07
@DoRm which part was this taught. i can't seem to remember bumping into it
Carsten Jaksch
@kris4de
Oct 15 2015 13:07
Thanks @DoRm for the reminder. My brain is not a hard drive. I will have a look.
CamperBot
@camperbot
Oct 15 2015 13:07
greasan sends brownie points to @dorm :sparkles: :thumbsup: :sparkles:
Phil
@PhilG112
Oct 15 2015 13:07
hi guys first time here how do i post a screenshot to get some help?
CamperBot
@camperbot
Oct 15 2015 13:07
:warning: could not find receiver for dorm
Carsten Jaksch
@kris4de
Oct 15 2015 13:08
By the way: Why isn't the map method noticed in this Bonfire? But the for loop.
Phil
@PhilG112
Oct 15 2015 13:08
Uncaught TypeError: t.call is not a function
what does this mean?
Carsten Jaksch
@kris4de
Oct 15 2015 13:09
In which case? Code?
Phil
@PhilG112
Oct 15 2015 13:10
yes
Carsten Jaksch
@kris4de
Oct 15 2015 13:11
Show your code. :smile:
Phil
@PhilG112
Oct 15 2015 13:11
it is really long
first time here, how can i show you it without pasting it in
whathejoe
@whathejoe
Oct 15 2015 13:13
@DoRm they say a for loop's faster
@PhilG112 what's the title of the challenge
Carsten Jaksch
@kris4de
Oct 15 2015 13:13
With a screenshot, maybe. But the length doesn't matter.
DoRm
@DoRm
Oct 15 2015 13:13
@whathejoe In what way?
Phil
@PhilG112
Oct 15 2015 13:13

`$(function() {
var gridDataSource = new kendo.data.DataSource({
transport: {
read: {
url: "/api/SupportTicket",
type: "GET",
dataType: "json"
},
create: {
url: "/api/SupportTicket",
type: "POST",
dataType: "json",
content: "application/json"
},
update: {
url: "/api/SupportTicket",
type: "PUT",
dataType: "json",
contentType: "application/json"
},
destroy: {
url: "/api/SupportTicket",
type: "DELETE",
dataType: "json",
contentType: "application/json"
},
parameterMap: function(data) {
return JSON.stringify(data);
}
},
type: "aspnetmvc-ajax",
pageSize: 20,
schema: {
data: {
data: function(response) {
if (response.hasOwnProperty("Data")) {
return response.Data;
} else {
return response;
}
},
total: "Total",
errors: "Errors",
model: {
id: "Id",
fields: {
Id: {
editable: false,
nullable: true,
type: "number"
},
StateId: {
editable: false,
nullable: true,
type: "number"
},
SiteId: {
editable: false,
nullable: true,
type: "number"
},
Priority: {
editable: true,
nullable: false,
type: "number"
},
Timestamp: {
editable: true,
nullable: false,
type: "date"
},
Description: {
editable: true,
nullable: false,
type: "string"
}
}
}
}
}
});

$("#grid").kendoGrid({
    dataSource: gridDataSource,
    height: 600,
    groupable: true,
    sortable: true,
    pageable: true,
    columns: [
    {
        field: "Timestamp",
        title: "Timestamp",
        width: 240
    },
    {
        field: "StateId",
        title: "State",
        width: 240
    },
    {
        field: "SiteId",
        title: "Site",
        width: 240
    },
    {
        field: "Priority",
        title: "Priority",
        width: 240
    },
    {
        field: "Description",
        title: "Description",
        width: 240
    }]
});

});

Carsten Jaksch
@kris4de
Oct 15 2015 13:14
@whathejoe map is shorter, I think. shorter code = faster.
$(function() {
var gridDataSource = new kendo.data.DataSource({
transport: {
read: {
url: "/api/SupportTicket",
type: "GET",
dataType: "json"
},
create: {
url: "/api/SupportTicket",
type: "POST",
dataType: "json",
content: "application/json"
},
update: {
url: "/api/SupportTicket",
type: "PUT",
dataType: "json",
contentType: "application/json"
},
destroy: {
url: "/api/SupportTicket",
type: "DELETE",
dataType: "json",
contentType: "application/json"
},
parameterMap: function(data) {
return JSON.stringify(data);
}
},
type: "aspnetmvc-ajax",
pageSize: 20,
schema: {
data: {
data: function(response) {
if (response.hasOwnProperty("Data")) {
return response.Data;
} else {
return response;
}
},
total: "Total",
errors: "Errors",
model: {
id: "Id",
fields: {
Id: {
editable: false,
nullable: true,
type: "number"
},
StateId: {
editable: false,
nullable: true,
type: "number"
},
SiteId: {
editable: false,
nullable: true,
type: "number"
},
Priority: {
editable: true,
nullable: false,
type: "number"
},
Timestamp: {
editable: true,
nullable: false,
type: "date"
},
Description: {
editable: true,
nullable: false,
type: "string"
}
}
}
}
}
});
$("#grid").kendoGrid({
    dataSource: gridDataSource,
    height: 600,
    groupable: true,
    sortable: true,
    pageable: true,
    columns: [
    {
        field: "Timestamp",
        title: "Timestamp",
        width: 240
    },
    {
        field: "StateId",
        title: "State",
        width: 240
    },
    {
        field: "SiteId",
        title: "Site",
        width: 240
    },
    {
        field: "Priority",
        title: "Priority",
        width: 240
    },
    {
        field: "Description",
        title: "Description",
        width: 240
    }]
});
});
Better. :smile:
You can format your code with Markdown.
Phil
@PhilG112
Oct 15 2015 13:15
sorry first time here, how to i past code in properly
DoRm
@DoRm
Oct 15 2015 13:15
wiki format
CamperBot
@camperbot
Oct 15 2015 13:15

:point_right: code formatting [wiki]

Inline code

alt text

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

Code Block

``` ⇦ Type 3 backticks and then press [shift + enter ⏎]

<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

Phil
@PhilG112
Oct 15 2015 13:16
thanks :)
CamperBot
@camperbot
Oct 15 2015 13:16
if you want to thank someone, put an @ before their name!
Phil
@PhilG112
Oct 15 2015 13:16
$(function() {
    var gridDataSource = new kendo.data.DataSource({
        transport: {
            read: {
                url: "/api/SupportTicket",
                type: "GET",
                dataType: "json"
            },
            create: {
                url: "/api/SupportTicket",
                type: "POST",
                dataType: "json",
                content: "application/json"
            },
            update: {
                url: "/api/SupportTicket",
                type: "PUT",
                dataType: "json",
                contentType: "application/json"
            },
            destroy: {
                url: "/api/SupportTicket",
                type: "DELETE",
                dataType: "json",
                contentType: "application/json"
            },
            parameterMap: function(data) {
                return JSON.stringify(data);
            }
        },
        type: "aspnetmvc-ajax",
        pageSize: 20,
        schema: {
            data: {
                data: function(response) {
                    if (response.hasOwnProperty("Data")) {
                        return response.Data;
                    } else {
                        return response;
                    }
                },
                total: "Total",
                errors: "Errors",
                model: {
                    id: "Id",
                    fields: {
                        Id: {
                            editable: false,
                            nullable: true,
                            type: "number"
                        },
                        StateId: {
                            editable: false,
                            nullable: true,
                            type: "number"
                        },
                        SiteId: {
                            editable: false,
                            nullable: true,
                            type: "number"
                        },
                        Priority: {
                            editable: true,
                            nullable: false,
                            type: "number"
                        },
                        Timestamp: {
                            editable: true,
                            nullable: false,
                            type: "date"
                        },
                        Description: {
                            editable: true,
                            nullable: false,
                            type: "string"
                        }
                    }
                }
            }
        }
    });

    $("#grid").kendoGrid({
        dataSource: gridDataSource,
        height: 600,
        groupable: true,
        sortable: true,
        pageable: true,
        columns: [
        {
            field: "Timestamp",
            title: "Timestamp",
            width: 240
        },
        {
            field: "StateId",
            title: "State",
            width: 240
        },
        {
            field: "SiteId",
            title: "Site",
            width: 240
        },
        {
            field: "Priority",
            title: "Priority",
            width: 240
        },
        {
            field: "Description",
            title: "Description",
            width: 240
        }]
    });

});
whathejoe
@whathejoe
Oct 15 2015 13:16
@DoRm here
Phil
@PhilG112
Oct 15 2015 13:17
that code is giving me this error Uncaught TypeError: t.call is not a function
DoRm
@DoRm
Oct 15 2015 13:18
Computers are so fast now no amount of code will slow it down. Google made a video last week stressing this point and saying your way of logic is cancer's and toxic to the programming community
whathejoe
@whathejoe
Oct 15 2015 13:18
"Your"?
DoRm
@DoRm
Oct 15 2015 13:19
Besides think about how much logic went into his for loop over using the map function and also which one is easier to read
whathejoe
@whathejoe
Oct 15 2015 13:21
I get what you're saying. But this is not a you vs me discussion.
Maybe link the video instead of boxing someone's supposed "logic" within "cancer and toxic to the programming community". We're all here to learn right?
Carsten Jaksch
@kris4de
Oct 15 2015 13:29
Hm, I can't find an error @PhilG112. Happy debugging. :smile:
Jasthi
@nandujasthi
Oct 15 2015 13:43
Give the text input in your form the class form-control
please tell me what it means
<div class="container-fluid">
<div class="row">
<div class="col-xs-8">
<h2 class="text-primary text-center">CatPhotoApp</h2>
</div>
<div class="col-xs-4">
<a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>
</div>
</div>
<img src="http://bit.ly/fcc-running-cats" class="img-responsive">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info"><i class="fa fa-info-circle"></i> Info</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger"><i class="fa fa-trash"></i> Delete</button>
</div>
</div>
<p>Things cats <span class="text-danger">love:</span></p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo" class="form-control">
<div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
</div>
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Loving</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Lazy</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Crazy</label>
</div>
</div>
<input type="text" placeholder="cat photo URL" text="input" required>
<button type="submit" class="btn btn-primary"><i class="fa fa-paper-plane"></i>Submit</button>
</form>
</div>
Hans van Riet
@hansinla
Oct 15 2015 13:46
@nandujasthi You added the class form-control, but not on the input tags
Jasthi
@nandujasthi
Oct 15 2015 13:47
@hansinla thankyou ...got it.
Jrroa01
@Jrroa01
Oct 15 2015 14:12

<script >
$(document).ready(function() {
$("button").addClass("btn-primary")
$(".btn").addClass("animated")
$("#target1").addClass("target animated shake btn-primary")

});
</script>

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

Your #target1 element should have the classes animated‚ shake and btn-primary.
I need help with this please
Mistereo
@Mistereo
Oct 15 2015 14:13
explain format
CamperBot
@camperbot
Oct 15 2015 14:13

:point_right: code formatting [wiki]

Inline code

alt text

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

Code Block

``` ⇦ Type 3 backticks and then press [shift + enter ⏎]

<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

Jrroa01
@Jrroa01
Oct 15 2015 14:14
Your #target1 element should have the classes animated‚ shake and btn-primary.

<script >
$(document).ready(function() {
$("button").addClass("btn-primary")
$(".btn").addClass("animated")
$("#target1").addClass("target animated shake btn-primary")

});
</script>

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

Joseph Botros
@josephwasily
Oct 15 2015 14:18
function chunk(arr, size) {
  // Break it up.
  new_arr = [];
  while(arr.length){
    new_arr.push(arr.splice(0,size));
  };
  return new_arr;
};

chunk(["a", "b", "c", "d"], 2);
is the algorithm fine here?
sina
@sigma161
Oct 15 2015 14:24
anyone can help me?
durairajaa
@durairajaa
Oct 15 2015 14:25
@sigma161 let me try
Aleksandar B.
@aleksandar-b
Oct 15 2015 14:25
When I put ng-blur and in that function delete value of input and array of data, I am not able to click on links bc ng-blur always fires first. I tried with $timeout and it is not working- it does not fire ng-blur.
durairajaa
@durairajaa
Oct 15 2015 14:26
how to finish "Zipline: Build a Personal Portfolio Webpage" with out looking the code
some one tell me
where can i learn the css
Joseph Botros
@josephwasily
Oct 15 2015 14:27
@durairajaa you need to start the map from the beginning
wiki css
CamperBot
@camperbot
Oct 15 2015 14:27

:point_right: waypoint change the css of an element using jquery [wiki]

Change the CSS of an Element Using jQuery

We can also change the CSS of an HTML element directly with jQuery.

Query has a function called .css() that allows you to change the CSS of an element.

<script>
  $(document).ready(function() {
    $("#target1").css("color", "red");

  });
</script>

:pencil: read more about waypoint change the css of an element using jquery on the FCC Wiki

durairajaa
@durairajaa
Oct 15 2015 14:27
i have done the css things
but they are not that much useful
Joseph Botros
@josephwasily
Oct 15 2015 14:28
if you want to learn more there good course in microsoftvirtualacademy
you can check it
durairajaa
@durairajaa
Oct 15 2015 14:28
i ant create a repilca of that page
ok
how devs remember all the css and bootstrap things
durairajaa
@durairajaa
Oct 15 2015 14:29
ty @josephwasily
Joseph Botros
@josephwasily
Oct 15 2015 14:29
nobody remembers all the css and boostrap things , (i hope i can :D)
durairajaa
@durairajaa
Oct 15 2015 14:30
how they do then
thankyou @josephwasily
Joseph Botros
@josephwasily
Oct 15 2015 14:33
they look to the documentation when they need to remember special tag
and you will always remember what you have previously trained yourself and practiced
Anthony Lapham
@anthonylapham
Oct 15 2015 14:34
Does anyone remember the Waypoint exercise in which you had to manipulate arrays with the .pop() function?
javaNewbTL
@javaNewbTL
Oct 15 2015 14:35
Guys I am struggling hard with the Factorialize Bonfire and have tried atleast a hundred + combinations, I am now wondering if the Freecodecamp Console is completely Sketchy, here is my code
function factorialize(num) {
  var x = 1;
  for (var y = 1; y <= num; y++){
    x *= y;
    return x;
    num = x;
  }
  return num;
}

factorialize(5);
Any help is greatly appreciated!!
Aleksandar B.
@aleksandar-b
Oct 15 2015 14:37
bf factorialize
CamperBot
@camperbot
Oct 15 2015 14:37

:fire:Bonfire: Factorialize a Number :link:

function factorialize(num) {
  return num;
}

factorialize(5);

Return the factorial of the provided integer.

more info:  bf details | bf links | hint

Aleksandar B.
@aleksandar-b
Oct 15 2015 14:38
bf details
CamperBot
@camperbot
Oct 15 2015 14:38

:fire:Bonfire: Factorialize a Number :link:

function factorialize(num) {
  return num;
}

factorialize(5);
Return the factorial of the provided integer.
If the integer is represented with the letter n, a factorial is the product of all positive integers less than or equal to n.
Factorials are often represented with the shorthand notation n!
For example: 5! = 1 2 3 4 5 = 120f
Remember to use RSAP if you get stuck. Try to pair program. Write your own code.
links:
Joseph Botros
@josephwasily
Oct 15 2015 14:38
This message was deleted
Francis Ngo
@francisngo
Oct 15 2015 14:38
@francisngo
how do you guys go about creating a website
trying to see how some campers do it
i know theres a plethora of ways to do so
what i mean is going from sublime text editor to full blown functioning website
mchouse
@housewar
Oct 15 2015 14:38
@javaNewbTL What's the result of your code?
Joseph Botros
@josephwasily
Oct 15 2015 14:38
This message was deleted
javaNewbTL
@javaNewbTL
Oct 15 2015 14:39
result is 1 which is weird
Joseph Botros
@josephwasily
Oct 15 2015 14:39
@javaNewbTL you are assigning the variable num after returning from the whole function
Aleksandar B.
@aleksandar-b
Oct 15 2015 14:39
@javaNewbTL because you are returning 1
Joseph Botros
@josephwasily
Oct 15 2015 14:39
so it will be always 1
durairajaa
@durairajaa
Oct 15 2015 14:39
@anthonylapham waypoint: Manipulate Arrays With pop()
Joseph Botros
@josephwasily
Oct 15 2015 14:39
remove the return x
javaNewbTL
@javaNewbTL
Oct 15 2015 14:39
okay back to the drawing board, just wanted to make sure the console wasn't bugged
mchouse
@housewar
Oct 15 2015 14:40
@javaNewbTL it's the return x in the middle... it's breaking the function after 1 * 1
Aleksandar B.
@aleksandar-b
Oct 15 2015 14:41
@javaNewbTL try to return num inside a for loop not x.
Anthony Lapham
@anthonylapham
Oct 15 2015 14:41
@durairajaa I figured out how to get the array to come back as ["John" , 23] but I can't get the removed element to work properly. Everything I do creates an error.
Aleksandar B.
@aleksandar-b
Oct 15 2015 14:42
@javaNewbTL actually just delete return x; I think it will work.
durairajaa
@durairajaa
Oct 15 2015 14:42
@anthonylapham post code
@anthonylapham try array=array.pop();
fiercenomad
@fiercenomad
Oct 15 2015 14:43
hey guys ... bonfire spinal tap case...
compiler really doesn't like my code:
'''
for (i = 0; i < str.length; ++i) {
while (str.charAt(i) === str.charAt(i).toUpperCase()) {
str = str.slice(0,i) + ' ' + str.slice(i).toLowerCase();
}
}
return str.toLowerCase().replace(/ /g,"-").replace(/_/g, "-");
}
'''
CamperBot
@camperbot
Oct 15 2015 14:44
:bulb: to format code use backticks! ``` more info
fiercenomad
@fiercenomad
Oct 15 2015 14:44
  for (i = 0; i < str.length; ++i) {
    while (str.charAt(i) === str.charAt(i).toUpperCase()) {
      str = str.slice(0,i) + ' ' + str.slice(i).toLowerCase();
    }
  }
  return str.toLowerCase().replace(/ /g,"-").replace(/_/g, "-");
}
seems to just freeze
mchouse
@housewar
Oct 15 2015 14:45
@fiercenomad is there a point where the while loop would just keep running?
fiercenomad
@fiercenomad
Oct 15 2015 14:46
there shouldn't be, since i convert to lowercase on each loop .. eventually it will not return true
Aleksandar B.
@aleksandar-b
Oct 15 2015 14:47
@javaNewbTL you must delete num = x, because it assign new value to num on first itteration - it changes 5 to 1 and then loop stops because it iterates to the value of num.
Revathy
@revathynair
Oct 15 2015 14:48
Can anyone help with bonfires?
CamperBot
@camperbot
Oct 15 2015 14:48
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
Revathy
@revathynair
Oct 15 2015 14:48
bonfire- reverse-a string
mchouse
@housewar
Oct 15 2015 14:49
@fiercenomad sometimes when I'm stuck, since you can't debug in freecodecamp, I throw the return statement in a point in the code where I want to confirm that it's behaving the way I want. What do you get when you return str after str = str.slice...
Aleksandar B.
@aleksandar-b
Oct 15 2015 14:51
@fiercenomad what is that bonfire?
fiercenomad
@fiercenomad
Oct 15 2015 14:51
bf spinal tap case
CamperBot
@camperbot
Oct 15 2015 14:51

:fire:Bonfire: Spinal Tap Case :link:

function spinalCase(str) {
  // "It's such a fine line between stupid, and clever."
  // --David St. Hubbins
  return str;
}

spinalCase('This Is Spinal Tap');

Convert a string to spinal case. Spinal case is all-lowercase-words-joined-by-dashes.

more info:  bf details | bf links | hint

Aleksandar B.
@aleksandar-b
Oct 15 2015 14:51
bf details
CamperBot
@camperbot
Oct 15 2015 14:51

:fire:Bonfire: Spinal Tap Case :link:

function spinalCase(str) {
  // "It's such a fine line between stupid, and clever."
  // --David St. Hubbins
  return str;
}

spinalCase('This Is Spinal Tap');
Convert a string to spinal case. Spinal case is all-lowercase-words-joined-by-dashes.
Remember to use RSAP if you get stuck. Try to pair program. Write your own code.
links:
fiercenomad
@fiercenomad
Oct 15 2015 14:51
i want "thisIsSpinalTap" -> "this is spinal tap"
Blauelf
@Blauelf
Oct 15 2015 14:51
@housewar You can somewhat debug using console.log(), which goes to your browser's console
Rondall Gammon
@rondallg
Oct 15 2015 14:53

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

<imput type="text">

why is that not working
Aleksandar B.
@aleksandar-b
Oct 15 2015 14:53
you have typo iMput
@rondallg
Rondall Gammon
@rondallg
Oct 15 2015 14:54
im an idiot @samosale thanks
CamperBot
@camperbot
Oct 15 2015 14:54
rondallg sends brownie points to @samosale :sparkles: :thumbsup: :sparkles:
:star: 354 | @samosale | http://www.freecodecamp.com/samosale
ELRuncho
@ELRuncho
Oct 15 2015 14:54
hi guys, doe anyone know how to add an imagestored in my pc as bacground in css. Y have been looking for a way but aparently I'm stcuk. I doing the portfolio zipline here is my portfolio so far http://codepen.io/ELRuncho/pen/rOGyyr
I just started.
fiercenomad
@fiercenomad
Oct 15 2015 14:54
@housewar ok i see my code is problematic for a number of reasons ... back to the drawing board
Aleksandar B.
@aleksandar-b
Oct 15 2015 14:55
@ELRuncho you can not upload to codepen. Upload to imgur and type in .body{} code: background: url("yourImageUrlOnImgur");
mchouse
@housewar
Oct 15 2015 14:55
@fiercenomad I think you misread the challenge. You want to convert 'this is spinal tap' to 'this-is-spinal-tap'.
fiercenomad
@fiercenomad
Oct 15 2015 14:57
well there's another test case "thisIsSpinalTap" where I'm needing to separate at capital letters. i made the entire second slice lowercase, however I just want to make "i" lowercase in each iteration, so I don't lose the rest of the capital letters where i need to insert spaces
mchouse
@housewar
Oct 15 2015 14:57
@fiercenomad I had to check myself, but apparently ' ' === ' '.toLowerCase() and ' ' === ' '.toUpperCase() both return true.
fiercenomad
@fiercenomad
Oct 15 2015 14:57
so i'm making that alteration
huh
ELRuncho
@ELRuncho
Oct 15 2015 14:57
thanks @samosale
CamperBot
@camperbot
Oct 15 2015 14:57
elruncho sends brownie points to @samosale :sparkles: :thumbsup: :sparkles:
:star: 355 | @samosale | http://www.freecodecamp.com/samosale
fiercenomad
@fiercenomad
Oct 15 2015 14:58
they both return true for charAt(4) in "thisIsSpinalTap" ?
Dave Davids
@Falsedave
Oct 15 2015 14:59
hello
I'm on the excercise slasher flick. And i have used the line - arr.splice(0,howMany);
fiercenomad
@fiercenomad
Oct 15 2015 15:00
@housewar anyway this alteration was definitely needed:
str = str.slice(0,i) + ' ' + str.charAt(i).toLowerCase() + str.slice(i+1)
Dave Davids
@Falsedave
Oct 15 2015 15:01
as far as I understand that is correct and should work. but it doesnt
mchouse
@housewar
Oct 15 2015 15:01
@fiercenomad for the first interation, you're going to end up adding a space to the front of the string, which is going to bog you down.
@fiercenomad I recommend checking out the useful link for replace()... there's an example that's really really helpful.
Jason
@jimillett
Oct 15 2015 15:02
Hello everyone, I have a question about the map and my progress
fiercenomad
@fiercenomad
Oct 15 2015 15:02
@housewar yeah i noticed it's bad in the case of first letter capitalized
Dave Davids
@Falsedave
Oct 15 2015 15:02
@jimillett go ahead
fiercenomad
@fiercenomad
Oct 15 2015 15:02
@housewar anyway thanks for the help, appreciate it
CamperBot
@camperbot
Oct 15 2015 15:02
fiercenomad sends brownie points to @housewar :sparkles: :thumbsup: :sparkles:
:star: 265 | @housewar | http://www.freecodecamp.com/housewar
Jason
@jimillett
Oct 15 2015 15:02
I have about 200+ brownie points, I had already gone all the way through the HTML
mchouse
@housewar
Oct 15 2015 15:02
@fiercenomad I wouldn't normally point to something so obvious, but FCC points to it, so I feel it's fair
Jason
@jimillett
Oct 15 2015 15:03
I have been working on these on and off for a couple of months
tva10
@tva10
Oct 15 2015 15:03
@Falsedave try this arr.splice(howMany);
Jason
@jimillett
Oct 15 2015 15:03
I went back to my map and a bunch of the early HTML challenges show unchecked
like I never did them but I know I did. I did the whole catphotoapp stuff
tva10
@tva10
Oct 15 2015 15:04
@Falsedave or this one arr.slice(howMany, arr.length);
Dave Davids
@Falsedave
Oct 15 2015 15:04
@tva10 that works but whats the reason behind that ? why would arr.splice(0,howMany); surely the 0 is the starting element and howMany is how many to remove.
@jimillett are you sure you are logged in on the same profile ?
Jason
@jimillett
Oct 15 2015 15:05
yes, I always login with my Google account
but I have linked all my accounts like Fbook and twitter and github are all connected to my FCC account
Dave Davids
@Falsedave
Oct 15 2015 15:06
I managed to get two accounts somehow. One with my google account and also one with my twitter.
Jason
@jimillett
Oct 15 2015 15:06
whats weird is it will show some of them not done but then later ones are completed
hmm. is there a way to fix this? I have all my accounts linked. I don't have multiple google or fbook accounts
Dave Davids
@Falsedave
Oct 15 2015 15:07
they did an update not long ago and added some stuff to the earlier excercises. I had to go back and do them
Jason
@jimillett
Oct 15 2015 15:07
argh... :P
Dave Davids
@Falsedave
Oct 15 2015 15:08
stuff like color codes , hex , rgb
Jason
@jimillett
Oct 15 2015 15:08
I guess it doesn't hurt to review. but I was all the way into Jquery when I noticed it.
Dave Davids
@Falsedave
Oct 15 2015 15:08
most of it you can just skim through. if you already done it.
tva10
@tva10
Oct 15 2015 15:09
@Falsedave So this metod returns removed elements from array, and this method change this array
Jason
@jimillett
Oct 15 2015 15:09
ok Thanks @Falsedave
CamperBot
@camperbot
Oct 15 2015 15:09
jimillett sends brownie points to @falsedave :sparkles: :thumbsup: :sparkles:
:star: 224 | @falsedave | http://www.freecodecamp.com/falsedave
tva10
@tva10
Oct 15 2015 15:09
@Falsedave check this code, for example
var arr=[1,2,3]
arr.splice(0,2);
[1, 2]
arr
[3]
Dave Davids
@Falsedave
Oct 15 2015 15:09
i got 115 excercises done yesterday. I think i was in the same position as you are
@tva10 ahh i understand it
thankyou
Aleksandar B.
@aleksandar-b
Oct 15 2015 15:11
@fiercenomad your code is infinite loop because
Dave Davids
@Falsedave
Oct 15 2015 15:13
@samosale you leaving me hanging........
Blauelf
@Blauelf
Oct 15 2015 15:13
@samosale It's @fiercenomad who inserts a ' ' and later wonders why it won't change from lower- to upper-case
Aleksandar B.
@aleksandar-b
Oct 15 2015 15:13
@fiercenomad you are adding empty space " " on each iteration. That means it constantly changes the length of str, and it is infinite.
This message was deleted
basically you are adding one character more on each itteration and it constantly updating str.length with one more @fiercenomad
Blauelf
@Blauelf
Oct 15 2015 15:16
@samosale The code was not by @Falsedave but @fiercenomad ! (though both had something with slice() or splice())
Aleksandar B.
@aleksandar-b
Oct 15 2015 15:17
@Blauelf oh yeah sorry @Falsedave I will take a look at your code nw
@Falsedave can you show me your code? I can not find your problem code
Sudip Ghosh
@sudip007
Oct 15 2015 15:21
I can't solve the bonfire problems? what should I do to solve those problems?
fiercenomad
@fiercenomad
Oct 15 2015 15:21
@Blauelf i overlooked that a " " === " ".toUpperCase
Blauelf
@Blauelf
Oct 15 2015 15:23
Why do you use a while where an if should work, too?
Rafael J. Rodriguez
@Rafase282
Oct 15 2015 15:23
@Blauelf for practice maybe?
fiercenomad
@fiercenomad
Oct 15 2015 15:25
i wanted to iterate through, adding spaces where there is an uppercase letter, and converting that specific letter to lowercase on each loop
such that "thisIsSpinalTap" -> "this is spinal tap"
Blauelf
@Blauelf
Oct 15 2015 15:27
Sure, just if everything worked smoothly, your argument should never be true more than once for a given index.
fiercenomad
@fiercenomad
Oct 15 2015 15:27
i suppose i could walk through with an if statement and just use replace eh?
Blauelf
@Blauelf
Oct 15 2015 15:28
Maybe you should replace your test for equality with the toUpperCase() with a test for inequality with toLowerCase()?
" " would trigger the test for equality with toUpperCase(), but not one for inequality with toLowerCase().
fiercenomad
@fiercenomad
Oct 15 2015 15:29
ah that resolves the issue with the spaces
beautiful
@Blauelf thanks... worked like a charm
CamperBot
@camperbot
Oct 15 2015 15:30
fiercenomad sends brownie points to @blauelf :sparkles: :thumbsup: :sparkles:
:star: 363 | @blauelf | http://www.freecodecamp.com/blauelf
Blauelf
@Blauelf
Oct 15 2015 15:32
OMG, I just looked at my solution for that bonfire, and IT'S A MONSTER!
A one-liner I needed a few seconds more to understand. Chaining is evil.
fiercenomad
@fiercenomad
Oct 15 2015 15:33
i've got:
  for (i = 0; i < str.length; ++i) {
    if (str.charAt(i) != str.charAt(i).toLowerCase()) {
      if (i > 0) {
        str = str.slice(0,i) + ' ' + str.charAt(i).toLowerCase() + str.slice(i+1);
      }
      else
        str = str.charAt(i).toLowerCase() + str.slice(i + 1);
    }
  }
  return str.replace(/  /g, "-").replace(/_ /g, "-").replace(/ /g,"-").replace(/_/g, "-");
}
i'm assuming this is grotesque
Blauelf
@Blauelf
Oct 15 2015 15:35
This is grotesque:
  return str.replace(/([a-z])([A-Z])/g,'$1-$2').replace(/_/g,'-').toLowerCase();
And would not work for things like "thisIsAStupidName"
Blauelf
@Blauelf
Oct 15 2015 15:51

More reasonable version I just came up with:

  return str.replace(/([A-Z])/g,' $1').trim().replace(/[_ -]+/g,'-').toLowerCase();

@fiercenomad Your version is probably more readable, though you could easily condense all those regexes in the last line to /[ _]+/g (matches any number of spaces and underscores in any combination), this would include all those cases and should do no harm. Well, says me :D

Essang Isaac
@essangisaac
Oct 15 2015 15:54

var Car = function() {
this.wheels = 4;

};

// Only change code below this line.
var myCar = new Car();

//Add the property "engines" to myCar, and make it a number.

// Only change code above this line.
(function() {return JSON.stringify(myCar);})();

var Car = function() {
this.wheels = 4;

};

// Only change code below this line.
var myCar = new Car();

//Add the property "engines" to myCar, and make it a number.

Blauelf
@Blauelf
Oct 15 2015 15:55
help format
CamperBot
@camperbot
Oct 15 2015 15:55

:point_right: code formatting [wiki]

Inline code

alt text

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

Code Block

``` ⇦ Type 3 backticks and then press [shift + enter ⏎]

<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

Essang Isaac
@essangisaac
Oct 15 2015 16:01

`var Car = function() {
this.wheels = 4;

};

// Only change code below this line.
var myCar = new Car();

//Add the property "engines" to myCar, and make it a number.`

please i need help with the code above
Dave Davids
@Falsedave
Oct 15 2015 16:03
@essangisaac try adding. this.engines = 1;
Blauelf
@Blauelf
Oct 15 2015 16:04
  1. Please read about the formatting, and bonus: You can edit your comments to get it right!
  2. You are supposed to create a new property engines to your object myCar. So the code should be myCar.engines=1;
Hans van Riet
@hansinla
Oct 15 2015 16:04
@essangisaac The object you created is myCar. You’ll need to add engines to myCar, not to this
Dave Davids
@Falsedave
Oct 15 2015 16:05
@hansinla sorry you are correct.
my bad
Hans van Riet
@hansinla
Oct 15 2015 16:05
@Falsedave no problem
Essang Isaac
@essangisaac
Oct 15 2015 16:09
@Blauelf , @hansinla thanks
CamperBot
@camperbot
Oct 15 2015 16:09
essangisaac sends brownie points to @blauelf and @hansinla :sparkles: :thumbsup: :sparkles:
:star: 533 | @hansinla | http://www.freecodecamp.com/hansinla
:star: 364 | @blauelf | http://www.freecodecamp.com/blauelf
supasheva
@supasheva
Oct 15 2015 16:10
Hello
Blauelf
@Blauelf
Oct 15 2015 16:10
hi
supasheva
@supasheva
Oct 15 2015 16:18
having a small bug with my code
in the innerhtml it seems to add values
instead of overwriting
it is the Pomodore zipline
function countdown(minutes) {
    var seconds = 60;
    var mins = minutes
    function tick() {

        var counter = document.getElementById("session");
        var current_minutes = mins-1
        seconds--;
        counter.innerHTML =
current_minutes.toString() + ":" + (seconds < 10 ? "0" : "") + String(seconds);
        if( seconds > 0 ) {
            setTimeout(tick, 1000);
        } else {

            if(mins > 1){

               // countdown(mins-1);   never reach “00″ issue solved:Contributed by Victor Streithorst
               setTimeout(function () { countdown(mins - 1); }, 1000);

            }
        }
    }
    tick();

}
so when i click a button it does this function
Mark T. Graybill
@Boolean-Operator
Oct 15 2015 16:39
This message was deleted
CamperBot
@camperbot
Oct 15 2015 16:39
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
Mark T. Graybill
@Boolean-Operator
Oct 15 2015 16:42

Please Help. Bonfire Return Largest Numbers in an Array. I am passing first and third test, but second will not pass. Second test is last line with first and second sub-array switched. ```
function largestOfFour(arr) {
var highArr =[];
var highNum = 0;

// iterate through array to divide array in to sub arrays
for ( i= 0; i < arr.length; i++) {

// look at each number and find highest in each array
for (j=0; j < arr[i].length; j++)
  if (arr[i][j] > highNum) {
    highNum = arr[i][j];
    highArr[i] = arr[i][j];
  }
}

//return array with highest number from each sub-array
return highArr;

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

```

CamperBot
@camperbot
Oct 15 2015 16:42
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
James Smith
@matthew02
Oct 15 2015 16:44
@Boolean-Operator Try setting highNum = 0 inside your first loop. Looks like you don't reset it for each nested array that you are searching.
Mark T. Graybill
@Boolean-Operator
Oct 15 2015 16:48
@matthew02 Thanks, that did the trick.
CamperBot
@camperbot
Oct 15 2015 16:48
boolean-operator sends brownie points to @matthew02 :sparkles: :thumbsup: :sparkles:
:star: 346 | @matthew02 | http://www.freecodecamp.com/matthew02
James Smith
@matthew02
Oct 15 2015 16:48
@Boolean-Operator Sure thing!
Parker Harris Emerson
@emersonp
Oct 15 2015 16:56

Okay, so, I'm working on: Waypoint: Nest an Anchor Element within a Paragraph

I'm failing on: Your p element should have the text "View more " (with a space after it).

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

Help?

Lacey Alford
@DixieDutchess
Oct 15 2015 16:57
Hello World! I need help ending the comment in the configuration line please. On the last line (-->) I've tried many ways. Someone said to delete the two slashes.
CamperBot
@camperbot
Oct 15 2015 16:57

welcome to FreeCodeCamp @DixieDutchess!

Rex Schrader
@SaintPeter
Oct 15 2015 16:57
@emersonp Humm, that does look right
@emersonp one moment while I poke at it
Lacey Alford
@DixieDutchess
Oct 15 2015 16:57
@camperbot Thank you
Aleksandar B.
@aleksandar-b
Oct 15 2015 16:58
@emersonp it says that
"Now nest your existing a element within a new p element so that the surrounding paragraph says "View more cat photos", but where only "cat photos" is a link, and the rest of the text is plain text"
Rex Schrader
@SaintPeter
Oct 15 2015 16:59

@emersonp Humm, I just put this in:

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

Which I think is identical to yours?

Parker Harris Emerson
@emersonp
Oct 15 2015 16:59
That's my full code.
That looks identical to mine.
Rex Schrader
@SaintPeter
Oct 15 2015 17:00
@emersonp You have it in the wrong place, maybe?
@emersonp Mine is at line 30, where the link was originally
Parker Harris Emerson
@emersonp
Oct 15 2015 17:01
Yeah. I moved it up. I hit a bug in the parser. Figured that would happen eventually. Thanks all!
CamperBot
@camperbot
Oct 15 2015 17:01
if you want to thank someone, put an @ before their name!
Rex Schrader
@SaintPeter
Oct 15 2015 17:01
@emersonp NP
Aleksandar B.
@aleksandar-b
Oct 15 2015 17:02
@DixieDutchess put your code here
Rex Schrader
@SaintPeter
Oct 15 2015 17:02
@emersonp BTW, you can say "Thanks @Someone" to give them brownie points (Like I will have just given you)
CamperBot
@camperbot
Oct 15 2015 17:02
saintpeter sends brownie points to @emersonp and @someone :sparkles: :thumbsup: :sparkles:
:star: 227 | @someone | http://www.freecodecamp.com/someone
:warning: could not find receiver for emersonp
Rex Schrader
@SaintPeter
Oct 15 2015 17:02
@emersonp Also, you need to link your FCC account to your GitHub account
Aleksandar B.
@aleksandar-b
Oct 15 2015 17:03
@DixieDutchess this is how you write comments in html:
<!-- someText -->
Lacey Alford
@DixieDutchess
Oct 15 2015 17:05

1

2

<h1>Hello World</h1>

3

4

<h2>CatPhotoApp</h2>

5

!--<p></p>-->

6

<p>Hello Paragraph</p>

7

-->

8

Aleksandar B.
@aleksandar-b
Oct 15 2015 17:06
that's not right
if the task is to remove, then remove <!-- and -->
hi
all
there is a bug ...? what is the problem with this snippet ?

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

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

Lacey Alford
@DixieDutchess
Oct 15 2015 17:07
Oops. I copied it to the clip board. It didn't come out right. At the end is --> I deleted the comments in hello paragraph. It keeps saying to delete all trailing comments, texts, ..
Parker Harris Emerson
@emersonp
Oct 15 2015 17:08
@SaintPeter - Huh, I thought I did that. Thanks @SaintPeter for bringing that to my attention.
CamperBot
@camperbot
Oct 15 2015 17:08
emersonp sends brownie points to @saintpeter and @saintpeter :sparkles: :thumbsup: :sparkles:
:star: 1037 | @saintpeter | http://www.freecodecamp.com/saintpeter
:star: 1037 | @saintpeter | http://www.freecodecamp.com/saintpeter
Hans van Riet
@hansinla
Oct 15 2015 17:09
@velmuruganvelayutham Is your <p> tag still there?
Velmurugan Velayutham
@velmuruganvelayutham
Oct 15 2015 17:09
no... @hansinla
Aleksandar B.
@aleksandar-b
Oct 15 2015 17:10

@DixieDutchess then delete comments here:

!--<p></p>-->

and here

7
-->
Rex Schrader
@SaintPeter
Oct 15 2015 17:10
@velmuruganvelayutham Yes, you deleted part of the exercise. Reset your code and try again.
Aleksandar B.
@aleksandar-b
Oct 15 2015 17:10
dont delete number 7 and <p> tags
@DixieDutchess
Carolyn Leavitt
@HarmonyOaks
Oct 15 2015 17:11
I'm trying to override styles. What am I doing wrong?
Hans van Riet
@hansinla
Oct 15 2015 17:12
@velmuruganvelayutham Well it should be there. The problem description doesn’t say to delete the <p> elements.
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:12
Hey guys can you help me debug my zipline? Thanks to a fellow camper I just found out that my Random Quote machine is not working on Firefox. It seems to be working perfectly on Chrome on Mac OSX. Here's the link - http://codepen.io/thedigitalmonk/pen/JYWeRV
Please help.
CamperBot
@camperbot
Oct 15 2015 17:12
if you want to thank someone, put an @ before their name!
Becky
@martinbeks
Oct 15 2015 17:13
Does anyone else have trouble with JavaScript, or is it just me? It's if/then statements that are really throwing me off, and I cannot get the hang of them.
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:13
@martinbeks is there a particular challenge that you can't wrap your head around? If I have completed it I would be happy to help.
Hugo
@hugoender
Oct 15 2015 17:13
@martinbeks what is it that confuses you about them?
Hans van Riet
@hansinla
Oct 15 2015 17:13
@martinbeks What exactly is bothering you? Once you get what’s happening, it’s not that bad.
Becky
@martinbeks
Oct 15 2015 17:14
@thedigitalmonk Yes, please. I am working on Waypoint: Use Conditional Logic with If and Else Statements
Carolyn Leavitt
@HarmonyOaks
Oct 15 2015 17:14

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

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

Becky
@martinbeks
Oct 15 2015 17:14

I'm supposed to make a coin flip game. These are the instructions, and sometimes, there's an example to follow, but this time, nothing:
Let's use if and else statements to make a coin-flip game.

Create if and else statements to return the string "heads" if the flip variable is zero, or else return the string "tails" if the flip variable is not zero.

Hans van Riet
@hansinla
Oct 15 2015 17:15
@HarmonyOaks Only use one class declaration in your tag and combine multiple classes in between the ””
Velmurugan Velayutham
@velmuruganvelayutham
Oct 15 2015 17:16
Thanks @SaintPeter @hansinla .. The problem is, the previous completed contents is getting copied to the next waypoint... Two hour before I have completed my http://freecodecamp.com/challenges/waypoint-use-css-selectors-to-style-elements .. Now when I try to solve the next waypoint , I could not see any p element in the waypoint
CamperBot
@camperbot
Oct 15 2015 17:16
velmuruganvelayutham sends brownie points to @saintpeter and @hansinla :sparkles: :thumbsup: :sparkles:
:star: 534 | @hansinla | http://www.freecodecamp.com/hansinla
:star: 1038 | @saintpeter | http://www.freecodecamp.com/saintpeter
Carolyn Leavitt
@HarmonyOaks
Oct 15 2015 17:17
@hansinla Got it now.
Hans van Riet
@hansinla
Oct 15 2015 17:17
@martinbeks What is the code that you came up with so far?
Becky
@martinbeks
Oct 15 2015 17:18
@hansinla
if (flip = Math.floor(Math.random() * (1 - 0 + 1)) + 0;) {

  return true;

} else {

  return false;

}
@hansinla I'm sure that's nowhere near where it's supposed to be. That's how lost I am.
if (flip = Math.floor(Math.random() * (1 - 0 + 1)) + 0;) {

  return heads;

} else {

  return tails;

}
Aleksandar B.
@aleksandar-b
Oct 15 2015 17:19
@thedigitalmonk it works on my firefox. Maybe you have installed some extension that is blocking unsecured content. I always disable https everywhere when visiting codepen. Nice bck colors by the way. Where did you get that colors?
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:20
@martinbeks you just have to check if flip == 1 show heads and if not (else) show tails
no need to copy over the Math.floor part
michael2829
@michael2829
Oct 15 2015 17:20
hello to everyone
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:21
You just have to check the result of it.
michael2829
@michael2829
Oct 15 2015 17:21
some one can help me with this code:
var myArray = ["John", 23, ["dog", 3]];
// Only change code below this line.
var removed=myArray.shift(myArray[0]);
var myRemoved = myArray; // This should be ["John"] and myArray should now be [23, ["dog", 3]].
myRemoved.unshift("John");
Hans van Riet
@hansinla
Oct 15 2015 17:21

@martinbeks split ou your creation of the random variabkle like this:

var flip =  Math.floor(Math.random() * (1 - 0 + 1)) + 0;

Then test flip in the if statement

h4r1m4u
@h4r1m4u
Oct 15 2015 17:21
@martinbeks you're returning variables heads and tails. not strings "heads" and "tails"
Lacey Alford
@DixieDutchess
Oct 15 2015 17:22
@samosale I'm still not getting it. I reset my code. After line 7.. the --> this is kinda frustrating. I worked on it yesterday. So new at all this technology. Lol
Aleksandar B.
@aleksandar-b
Oct 15 2015 17:22
@DixieDutchess paste your link here
Becky
@martinbeks
Oct 15 2015 17:22
@thedigitalmonk like this? because it's still telling me that it's not working.
if flip == 1 {

  return heads;

} else {

  return tails;

}
Hans van Riet
@hansinla
Oct 15 2015 17:22
@michael2829 Look up the pop() function
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:23
@martinbeks just need to relax and read the requirement. A very important quality of a good developer is to interpret what is being asked. It will take you further than any amount of coding knowledge.
@martinbeks you forgot the brackets if (flip == 1)
Hans van Riet
@hansinla
Oct 15 2015 17:23
@martinbeks You’re returning variables, you need to return strings. “heads” is a string heads is a variable
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:25
@samosale I got the colors from flatuicolors.com but hey a lot of campers report back it isn't working. Can you try some more browsers and let me know? I think the tweet button is not working too. It doesn't even show in FF
Lacey Alford
@DixieDutchess
Oct 15 2015 17:25
@samosale I'm still not getting it. I reset my code. After line 7.. the --> this is kinda frustrating. I worked on it yesterday. So new at all this technology. Lol
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:26
@martinbeks this @hansinla also makes a valid point about strings.
Aleksandar B.
@aleksandar-b
Oct 15 2015 17:26
@DixieDutchess on the page where are you working, copy url and paste it here
Joshua Abu
@Absolutestunna
Oct 15 2015 17:26
@martinbeks you need brackets for the conditions
Becky
@martinbeks
Oct 15 2015 17:28
@hansinla @thedigitalmonk Thank you. I feel like there's a lot of reading between the lines here, which is what's really throwing me. I've never done this before. Thank you for your patience. That worked.
CamperBot
@camperbot
Oct 15 2015 17:28
martinbeks sends brownie points to @hansinla and @thedigitalmonk :sparkles: :thumbsup: :sparkles:
:star: 234 | @thedigitalmonk | http://www.freecodecamp.com/thedigitalmonk
:star: 535 | @hansinla | http://www.freecodecamp.com/hansinla
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:29
@martinbeks no problem. just keep on hustlin and if something doesn't work just take a break, walk around a bit, maybe sip coffee and come back. It will all come back to you. We're all here to help.
Aleksandar B.
@aleksandar-b
Oct 15 2015 17:30
@thedigitalmonk In firefox, opera and vivaldi it deletes the tweet button when I click on another quote button
Becky
@martinbeks
Oct 15 2015 17:31
It also doesn't help that I can't really see the reason for the code I'm writing in JS, like I could with HTML and CSS (they had that app to the side to show what you were building). I'm a visual learner.
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:32
@samosale oh man you know that twitter button was a pain to implement. It just wouldn't get the new quote. I think I'll let that go since it was a Bonus user story. Sigh.
Bill
@kirah1314
Oct 15 2015 17:34
@thedigitalmonk were you trying to use the twitter button? Did you try to create a bootstrap button and use that instead?
h4r1m4u
@h4r1m4u
Oct 15 2015 17:35
@thedigitalmonk what's the issue that you need to debug?
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:36
@martinbeks script works in a slightly different way. It's more like stories. You have be able to tell a story about what's happening to the variables. And then just write it. You could also a pen and paper to visually map that story. I do that sometimes when I really really can't work with my working memory.
Lacey Alford
@DixieDutchess
Oct 15 2015 17:36
@samosale Thank you!!! All this is very new to me. I'm learning it for quite a few reasons.
CamperBot
@camperbot
Oct 15 2015 17:36
dixiedutchess sends brownie points to @samosale :sparkles: :thumbsup: :sparkles:
:star: 357 | @samosale | http://www.freecodecamp.com/samosale
h4r1m4u
@h4r1m4u
Oct 15 2015 17:36
sorry if you had mentioned it above, it's getting lost among all the other chat
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:37
@martinbeks I am visually learner too. I work as an Interaction Designer.
@kirah1314 does that make a difference? actually adding the twitter widget JS converts the link into a twitter button.
@h4r1m4u my twitter button isn't working in browsers other than Chrome. Here's my project - http://codepen.io/thedigitalmonk/pen/JYWeRV
h4r1m4u
@h4r1m4u
Oct 15 2015 17:39
@thedigitalmonk it works for me in FF
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:40
@h4r1m4u does it show you the quote text?
or does it show you 'something'
h4r1m4u
@h4r1m4u
Oct 15 2015 17:40
ah, i see. the something text is the issue? i thought that it wouldn't do anything
Bill
@kirah1314
Oct 15 2015 17:40
@thedigitalmonk yes it makes a difference, much easier to modify a bootstrap button to do what you want
h4r1m4u
@h4r1m4u
Oct 15 2015 17:40
yeah, i get the 'something' bit too. let me check the code
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:41
@h4r1m4u it should automatically add the quote text instead of 'something'
@kirah1314 I am not sure what you are trying to imply actually. Can you elaborate? What modification can solve this issue?
From what I understand there are issues in my JS and not my HTML/CSS.
Justin Owings
@jrowings
Oct 15 2015 17:44

<style>

  .red-text {

    color: red;

  }

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

Hans van Riet
@hansinla
Oct 15 2015 17:44
@thedigitalmonk The Twitter button is not hard if you use Twitter intent. Look it up.
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:44
Dammit. Now the twitter button disappears in Chrome as well when you generate a new quote.
Justin Owings
@jrowings
Oct 15 2015 17:44
Instead of creating a new style element, try removing the h2 style declaration from your existing style element, then replace it with the class declaration for .red-text.
stuck on this one?
Hans van Riet
@hansinla
Oct 15 2015 17:44
@jrowings Your closing </style> tag is in the wrong place
Justin Owings
@jrowings
Oct 15 2015 17:46
@hansinla i figured that but when i move it down to the h2 it disappears
Hans van Riet
@hansinla
Oct 15 2015 17:46
@jrowings show what you have after you moved it
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:46
@hansinla looking it up now
Justin Owings
@jrowings
Oct 15 2015 17:46

<style>

  .red-text {

    color: red;

  }


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

<h2>CatPhotoApp</h2></style>

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

Ariel
@ArielLeslie
Oct 15 2015 17:46
explain format
CamperBot
@camperbot
Oct 15 2015 17:46

:point_right: code formatting [wiki]

Inline code

alt text

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

Code Block

``` ⇦ Type 3 backticks and then press [shift + enter ⏎]

<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

Ariel
@ArielLeslie
Oct 15 2015 17:47
@jrowings :point_up_2:
Bill
@kirah1314
Oct 15 2015 17:47
@thedigitalmonk sorry I was thinking of something else - styling the button. You can't customize and style the twitter button much
Daniel Fernandes
@danielpsf
Oct 15 2015 17:48
This message was deleted
This message was deleted
Hi folks, I'm following Waypoint (basejump) code camp tutorial, and I'm getting this error when trying to execute grunt serve
blob
Rex Schrader
@SaintPeter
Oct 15 2015 17:48
@danielpsf I encoruage you to ask over in /HelpBasejumps
Daniel Fernandes
@danielpsf
Oct 15 2015 17:48
wow, thanks @SaintPeter
CamperBot
@camperbot
Oct 15 2015 17:48
danielpsf sends brownie points to @saintpeter :sparkles: :thumbsup: :sparkles:
:star: 1040 | @saintpeter | http://www.freecodecamp.com/saintpeter
Hans van Riet
@hansinla
Oct 15 2015 17:49
@jrowings Your </style> tag should be enclosing your style elements. After that you’ll have <h2> and <p> tags
Rex Schrader
@SaintPeter
Oct 15 2015 17:49
@danielpsf I added you to the channel
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:49
@hansinla it worked! Thanks so much!
CamperBot
@camperbot
Oct 15 2015 17:49
thedigitalmonk sends brownie points to @hansinla :sparkles: :thumbsup: :sparkles:
:star: 536 | @hansinla | http://www.freecodecamp.com/hansinla
Hans van Riet
@hansinla
Oct 15 2015 17:52
@thedigitalmonk no prob
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 17:54
@kirah1314 no prob. I really don't mind if a twitter button looked like a twitter button. I feel it increases the chances of tweeting.
Justin Owings
@jrowings
Oct 15 2015 17:54

<style>

  .red-text {

    color: red;

  }

</style>

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

i dont understand what im doing wrong?
Hans van Riet
@hansinla
Oct 15 2015 17:55
@jrowings That’s correct, but don’t delete the <p> paragraph with all the text.
Justin Owings
@jrowings
Oct 15 2015 17:55
i didnt but it wont change the text red
Hans van Riet
@hansinla
Oct 15 2015 17:56
@jrowings Paste you complete code here, not just snippets.
Justin Owings
@jrowings
Oct 15 2015 17:56

<style>

  .red-text {

    color: red;

  }

</style>

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

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

Hans van Riet
@hansinla
Oct 15 2015 17:57
@jrowings Best to copy your code and use the reset button and try again.
Aleksandar B.
@aleksandar-b
Oct 15 2015 17:57

@thedigitalmonk remove

$(".buttonBox iframe").remove();

and it will work fine on firefox.

it works now on my firefox
Justin Owings
@jrowings
Oct 15 2015 18:01
thanks @hansinla
CamperBot
@camperbot
Oct 15 2015 18:01
jrowings sends brownie points to @hansinla :sparkles: :thumbsup: :sparkles:
:star: 537 | @hansinla | http://www.freecodecamp.com/hansinla
michael2829
@michael2829
Oct 15 2015 18:05
@hansinla is pop() function can add something?
Elizabeth Hatleli
@TheHighPriestess
Oct 15 2015 18:05
What is the best way to implement the shuffling effect you see here in this clip from the film Wargames:
Can it be done with CSS only?
I'm interested in a continual shuffling effect...not something that lasts for only a few seconds on hover, for example
I did find this...which seems to be what I want:
Natalka01
@natalka01
Oct 15 2015 18:08
I think I found a type in http://freecodecamp.com/challenges/waypoint-concatenate-strings-with-concat ...the directions in #1 say: "assert.deepEqual(array, [1,2,3,4,5,6], 'You should concat the two arrays together." I think it's just supposed to say 'You should concat the two arrays together." Anyone else think this is a typoo/bug?
Rex Schrader
@SaintPeter
Oct 15 2015 18:09
@TheHighPriestess Not with CSS, I don't think - JS, yes, though
Rex Schrader
@SaintPeter
Oct 15 2015 18:10
@TheHighPriestess The problem is there is no way to do anything randomly in CSS. Nor, I think, can you change the underlying content - IE: letters
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 18:12
@samosale when I remove that code it messes it up on Chrome!
Elizabeth Hatleli
@TheHighPriestess
Oct 15 2015 18:13
@SaintPeter OK....I will check this plugin out in that case. Thank you.
CamperBot
@camperbot
Oct 15 2015 18:13
thehighpriestess sends brownie points to @saintpeter :sparkles: :thumbsup: :sparkles:
:star: 1043 | @saintpeter | http://www.freecodecamp.com/saintpeter
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 18:14
Guys, any tips on how to get started with that Pomodoro timer Zipline? I am getting overwhelmed by the sheer number of edge cases and actions. Cc: @hansinla @samosale @SaintPeter
Rex Schrader
@SaintPeter
Oct 15 2015 18:14
@thedigitalmonk Ask in /HelpZiplines
h4r1m4u
@h4r1m4u
Oct 15 2015 18:15
@TheHighPriestess with CSS3 animations/transitions you might be able to achieve a similar effect basically by transitioning different elements initially hidden into the specified position. but it wouldn't be truly random, you'd predefine the way it's animated. it'd be a pain in the butt to do it though and browser support for the result would vary too
Rex Schrader
@SaintPeter
Oct 15 2015 18:15
wiki rooms
CamperBot
@camperbot
Oct 15 2015 18:15

:point_right: help rooms [wiki]

There are official help rooms for each major section of FCC content:

Chat Room Description
Help get help with our Waypoint challenges from your fellow campers
HelpBonfires get help with our Bonfire challenges from your fellow campers
HelpZiplines get help with our Zipline challenges from your fellow campers
HelpBasejumps get help with our Basejump challenges from your fellow campers
NonprofitProjects get help with your Nonprofit Projects from your fellow campers
CodeReview get constructive criticism and advice on finished code from your fellow campers
YouCanDoThis learning to code is hard - share your feelings and get moral support here

Choose the right room for your question!
:pencil: read more about help rooms on the FCC Wiki

Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 18:15
@SaintPeter oh I didn't know about that. Will check it out.
Elizabeth Hatleli
@TheHighPriestess
Oct 15 2015 18:15
@h4r1m4u ok....so it looks like it's javascript in that case. Thanks
CamperBot
@camperbot
Oct 15 2015 18:15
thehighpriestess sends brownie points to @h4r1m4u :sparkles: :thumbsup: :sparkles:
:star: 231 | @h4r1m4u | http://www.freecodecamp.com/h4r1m4u
h4r1m4u
@h4r1m4u
Oct 15 2015 18:16
yeah. much easier with js
Hans van Riet
@hansinla
Oct 15 2015 18:16
@thedigitalmonk It really boils down to a few lines of code when you use the built in JS timers. I coded the project using angular. It’s good to sketch out the problem first.
Justin Owings
@jrowings
Oct 15 2015 18:17

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

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

h2 {
font-family: Lobster, Monospace;
}

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


</style>

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

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

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

Create a class called smaller-image and use it to resize the image so that it's only 100 pixels wide?
michael2829
@michael2829
Oct 15 2015 18:18
someone know to solve this lesson:Waypoint: Manipulate Arrays With shift???
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 18:18
@hansinla I think I am going to end up writing too much. Just thinking about the actions that will have to be carried out when you click on a +/- button scares me - pause the clock, check if it's session or break, update the main timer, etc. so many events to handle.
Hans van Riet
@hansinla
Oct 15 2015 18:21
@thedigitalmonk Start/stop TimerUp/TimerDown Break/Work, that’s really all you need. I implemented and object to handle that.
Thomson Muriyadan
@thedigitalmonk
Oct 15 2015 18:25
You know from the markup of the example codepen FCC provides it looks like it was done using Angular. Isn't it?
Hans van Riet
@hansinla
Oct 15 2015 18:26
@thedigitalmonk No idea. I just wanted to get a project done using angular.
Dayne Wright
@daynewright
Oct 15 2015 18:26
Hey guys… I can’t figure out how to handle an API request that doesn’t return something…How do I check a property in it to not throw an error and kill everything if the JSON object is missing a property? (hope I am asking this correctly)
Hans van Riet
@hansinla
Oct 15 2015 18:27
@Daynewr What service are you calling?
Dayne Wright
@daynewright
Oct 15 2015 18:27
I thought I could hasOwnProperty but it doesn’t seem to be working correctly for me
Rex Schrader
@SaintPeter
Oct 15 2015 18:28
@Daynewr Got code?
Dayne Wright
@daynewright
Oct 15 2015 18:28
@hansinla echonest.com
Natalka01
@natalka01
Oct 15 2015 18:28
@michael2829 var myRemoved = myArray.shift()
Dayne Wright
@daynewright
Oct 15 2015 18:28
@SaintPeter I am doing it locally using http-server. Let me get it posted on git. Might take a moment because I haven’t before
as in I am not 100% sure on the steps :)
Natalka01
@natalka01
Oct 15 2015 18:29
@michael2829 Did that help?
Hans van Riet
@hansinla
Oct 15 2015 18:30
@Daynewr There’s always a response, otherwise there’s no use calling an API
From their docs:
    "response": {
        "status": {
            "version": "4.2",
            "code": 0,
            "message": "Success"
        },
Dayne Wright
@daynewright
Oct 15 2015 18:33
@hansinla Yes…but I am looping through and parts of the array don’t have the data so it says undefined and it seems everything else stops. Or I am just not understanding it
Hans van Riet
@hansinla
Oct 15 2015 18:35
@Daynewr Without exactly knowing which data you’re talking about, you may just be able to wrap it in an if statement:
if (expectedData) {}
DTing
@dting
Oct 15 2015 18:38
@natalka01 are you saying the assert part is a typo?
@natalka01 oh i got you. theres an extra '
ya that looks like a typo
Rex Schrader
@SaintPeter
Oct 15 2015 18:42
@Daynewr If you're looking through an array and you get undefined, you're possibly going out of bounds off the end of the array
Aleksandar B.
@aleksandar-b
Oct 15 2015 18:42
@thedigitalmonk that exercise was extremely hard for me . But I was using Date object, and instead should do setInterval. Basicaly you need to know how to create countdown numbers with row code. use stackoverflow.
noobstar
@namsir
Oct 15 2015 18:42
wow codepen is overloaded lol
Bill
@kirah1314
Oct 15 2015 18:42
@Daynewr you can do if (!data)
Sawredjet
@sawredjet
Oct 15 2015 18:43
What exactly is the code editor?
Bill
@kirah1314
Oct 15 2015 18:43
@Daynewr it's like the quotes API sometimes does not have an author
noobstar
@namsir
Oct 15 2015 18:43
@sawredjet notepad is consider a code editor
Sawredjet
@sawredjet
Oct 15 2015 18:44
how do you get there?
noobstar
@namsir
Oct 15 2015 18:44
or you can download different code editor such as Atom, bracket, or Sublime.
Matt Anderson
@MDAWebDev
Oct 15 2015 18:45
I've largely given up on the learnyounode tutorial. I can't even get the "official" solutions to work when I copy and paste them.
Bill
@kirah1314
Oct 15 2015 18:45
@sawredjet you can use this online one https://repl.it/
noobstar
@namsir
Oct 15 2015 18:45
@MDAWebDev what is learnyounode tutorial?
Matt Anderson
@MDAWebDev
Oct 15 2015 18:46
It's for the Node.js waypoints.
noobstar
@namsir
Oct 15 2015 18:46
oh from FCC?
Matt Anderson
@MDAWebDev
Oct 15 2015 18:46
yep, but the tutorial itself is not and it sucks.
noobstar
@namsir
Oct 15 2015 18:47
number 1 from Node.js and Express.js ?
Matt Anderson
@MDAWebDev
Oct 15 2015 18:47
number 1 is the NPM tutorial
2-4 is the learnyounode tutorial
noobstar
@namsir
Oct 15 2015 18:48
@MDAWebDev ahhh...i can't wait to get there :D
@MDAWebDev i think it is easier than advance algorithm scripting
Matt Anderson
@MDAWebDev
Oct 15 2015 18:49
how do you know if you haven't done it yet?
noobstar
@namsir
Oct 15 2015 18:49
because i know what node is
Jason Wood
@catapixel
Oct 15 2015 18:49
just as a heads up...learnyounode is dream compared to learnyoumongo
Matt Anderson
@MDAWebDev
Oct 15 2015 18:49
I gave up on that one too.
noobstar
@namsir
Oct 15 2015 18:49
not an advance user but i can handle basic stuff
i'm getting there slowly :D
i can't wait
Matt Anderson
@MDAWebDev
Oct 15 2015 18:54
I hope they redo the Node, Express, and Mongo waypoints.
I'm going to have to try and find better content elsewhere.
Jason Wood
@catapixel
Oct 15 2015 18:55
If you find something you like, especially if it's free, please share with the rest of us. I know there's paid stuff out there but I haven't found anything good that's free yet
Abhishek
@Abhi493
Oct 15 2015 18:55
is there anyone having problem with codepen.io?
the site is throwing an error thats its too busy to load as of now.
Jason Wood
@catapixel
Oct 15 2015 18:56
@Abhi493 I see people mentioning in the Ziplines chat that codepen.io is going up and down/having issues
noobstar
@namsir
Oct 15 2015 18:56
yeah i just lost my work ;x
codepen is back now but i've lost my codes :(
Hans van Riet
@hansinla
Oct 15 2015 18:57
@MDAWebDev I agree on that. It’s not very thorough, more paint by numbers
Abhishek
@Abhi493
Oct 15 2015 18:57
@catapixel my bad will care to post specifically from next time
Matt Anderson
@MDAWebDev
Oct 15 2015 18:58
yeah, they really don't do a got job at all at preparing people for the basejumps.
*good
I'll post in camper news if I find something better.
Natalka01
@natalka01
Oct 15 2015 19:02
@dting yep the assert part was what I meant; went away to finish rest of 'em. Now starting bonfires! Excited!! :smile:
noobstar
@namsir
Oct 15 2015 19:12
AGAIN......CODEPEN pisses me off.
Alec Rizor
@alecrizor
Oct 15 2015 19:13
How can I change this code so that it replaces non-alphanumeric values but still keeps numbers?
function palindrome(str) { 
   function upperToLower(match) {
      return match.toLowerCase();
  }
  var noCap = str.replace(/[A-Z]/g, upperToLower);
  var noCapNoSpace = noCap.replace(/\s/g, '');
  var noCapNoSpaceNoPunc = noCapNoSpace.replace(/[^a-zA-Z ]/g, "");
  var array = noCapNoSpaceNoPunc.split('').reverse().join('');
   // return noCapNoSpaceNoPunc;

 if (array != noCapNoSpaceNoPunc){
  return false
   }
    else {
   return true;
 }


}

palindrome("eye");
js-bone21
@js-bone21
Oct 15 2015 19:13
Duuuuude
Had this problem yesterday
DTing
@dting
Oct 15 2015 19:14
you can use the range 0-9
checkout www.regex101.com
js-bone21
@js-bone21
Oct 15 2015 19:14
Replace "/\s/" with "/\W/" I think it is
Yerp
"\W match any non-word character [^a-zA-Z0-9_]"
DTing
@dting
Oct 15 2015 19:15
\W is equivalent to [^A-Za-z0-9_]
js-bone21
@js-bone21
Oct 15 2015 19:15
(y)
Guess that doesn't work here
DTing
@dting
Oct 15 2015 19:15
so you gotta remove the underscore also
js-bone21
@js-bone21
Oct 15 2015 19:15
Ah right
/\W_/
noobstar
@namsir
Oct 15 2015 19:15
:clap:
js-bone21
@js-bone21
Oct 15 2015 19:15
Done
Alec Rizor
@alecrizor
Oct 15 2015 19:16
So using \W can replace both my \s and my [^a-zA-Z] lines?
noobstar
@namsir
Oct 15 2015 19:16
any other site similar to codepen?
js-bone21
@js-bone21
Oct 15 2015 19:16
@alecrizor, yerp
Yooooo, who knows the "filter" method?
I'm having an issue with Bonfire: Seek and Destroy
Singh Harpal
@harry9656
Oct 15 2015 19:17
@namsir tour editoriale and live-server(find it in github)
Your editor*
js-bone21
@js-bone21
Oct 15 2015 19:18
Works fine at removing the first argument (ie. "2" in [2 3 5] - chars to remove), but will not look through
Alec Rizor
@alecrizor
Oct 15 2015 19:18
Now I'm not getting the correct boolean value for the ("0_0 (: /-\ :) 0-0")
js-bone21
@js-bone21