These are chat archives for FreeCodeCamp/Help

2nd
Jul 2017
Cirediallo
@Cirediallo
Jul 02 2017 00:03
can some on help me with the challenge "Stand in Line"
i do not understand where it's write Modify this line for test
githubfranko
@githubfranko
Jul 02 2017 00:07
Possible bug, as I changed the number 8 on the "example" part and it accepted it...
Cirediallo
@Cirediallo
Jul 02 2017 00:10
@githubfranko i don't know it doesn't work
Ellyria
@Ellyria
Jul 02 2017 00:18
You don't have to modify that line, @Cirediallo. That's there so you you can try different numbers to test out your code. If you leave it as is, your array should get a 6 at the end and lose the 1 from the beginning. If you change the 6 to an 8, then your array should get an 8 at the end and lose the 1 from the beginning. And so on.
What's the JavaScript or jQuery problem, @Mattperkinsee?
Cirediallo
@Cirediallo
Jul 02 2017 00:20
@Ellyria but normally the code must write because when i run the code i do not pass the challenge
Ellyria
@Ellyria
Jul 02 2017 00:20
I forgot to mention that you can see all the tests freeCodeCamp runs on the code by pressing the Run tests button, @Cirediallo.
Are you passing some of the tests and failing others, @Cirediallo?
Cirediallo
@Cirediallo
Jul 02 2017 00:22
@Ellyria yes and is it a bug because sometimes i have to reset my code and run again
Ellyria
@Ellyria
Jul 02 2017 00:23
Ah, did resetting it fix it for you? That happens sometimes.
Cirediallo
@Cirediallo
Jul 02 2017 00:24
yes sometimes since yesterday
Ellyria
@Ellyria
Jul 02 2017 00:24
Ah, good.
Cirediallo
@Cirediallo
Jul 02 2017 00:26
but this challenge i resetted it twice it works for the first verification but not for others
Ellyria
@Ellyria
Jul 02 2017 00:27
Ah, then something isn't finished yet. What does your code look like?
Cirediallo
@Cirediallo
Jul 02 2017 00:30
let me show you a pic
how do i download a picture
Kyle Holm
@thekholm80
Jul 02 2017 00:33
right click the picture and select 'Save image as'
Ellyria
@Ellyria
Jul 02 2017 00:37
You can also copy and paste the code into here, @Cirediallo, using the instructions the bot is about to post.
'''
CamperBot
@camperbot
Jul 02 2017 00:37
:bulb: to format code use backticks! ``` more info
Cirediallo
@Cirediallo
Jul 02 2017 00:39
@Ellyria i know but i just want to show you the picture and @thekholm80 don't understand how the right click can allow me to download the picture in this tchat
Ellyria
@Ellyria
Jul 02 2017 00:40
Ah, okay, @Cirediallo. Take a picture and then drag it into this chat and it will be uploaded for you.
Kyle Holm
@thekholm80
Jul 02 2017 00:40
you want to put a pic in the chat?
Cirediallo
@Cirediallo
Jul 02 2017 00:40
foru.PNG
@Ellyria you see the pic ? and thank you didn't know how to do it
CamperBot
@camperbot
Jul 02 2017 00:41
cirediallo sends brownie points to @ellyria :sparkles: :thumbsup: :sparkles:
:cookie: 483 | @ellyria |http://www.freecodecamp.com/ellyria
Ellyria
@Ellyria
Jul 02 2017 00:42
Yes. That worked perfectly.
Are you sure you want to use the pop() method, @Cirediallo? You want to remove the first element from the array.
Here's a page about the pop method: https://www.w3schools.com/jsref/jsref_pop.asp
You'll also want to store the removed item somehow, @Cirediallo, because the instructions want you to return that.
Cirediallo
@Cirediallo
Jul 02 2017 00:45
@Ellyria thanks you i red again the instruction and exactly it said that to remove the first element and i used arr.shift() now it works
CamperBot
@camperbot
Jul 02 2017 00:45
cirediallo sends brownie points to @ellyria :sparkles: :thumbsup: :sparkles:
:warning: cirediallo already gave ellyria points
Ellyria
@Ellyria
Jul 02 2017 00:46
Yay! Good job, @Cirediallo!
Cirediallo
@Cirediallo
Jul 02 2017 00:48
On it i tell you good night all of you the rest for tomorrow morning
Ardith Amar
@neelrama
Jul 02 2017 00:55

// Setup
var myArr = [ 2, 3, 4, 5, 6];

// Only change code below this line
var total = 0;
for (var i = 0; i < myArr.length; i++) {
total += myArr[i];
}

why is it < and not <=
?
in the for loop
Ellyria
@Ellyria
Jul 02 2017 00:56
Okay, sleep well, @Cirediallo! You did great.
If it were <= then it would add 1 twice, @neelrama. With < it just adds 1 once.
Ardith Amar
@neelrama
Jul 02 2017 00:58
what do you mean? add 1 twice to the total?
oh wait is myArr.length = 5 or 4??
lol it's 5, i was thinking that it started at 0 and counted up
Margaret
@Margaret2
Jul 02 2017 01:00
@neelrama you count through the array starting at 0, so 0 is the first position in the array, and the length of the array - 1 is the last position
Ardith Amar
@neelrama
Jul 02 2017 01:01
thanks @Margaret2 thanks @Ellyria
CamperBot
@camperbot
Jul 02 2017 01:01
neelrama sends brownie points to @margaret2 and @ellyria :sparkles: :thumbsup: :sparkles:
:cookie: 484 | @ellyria |http://www.freecodecamp.com/ellyria
:star2: 2820 | @margaret2 |http://www.freecodecamp.com/margaret2
Ardith Amar
@neelrama
Jul 02 2017 01:01
brain fart lmao
Ellyria
@Ellyria
Jul 02 2017 01:02
And as long as i is less than myArr.length, 1 gets added to it. But with the less than or equal to, it would add 1 to it twice.
Ah, I had a long one of those very recently, @neelrama.
Margaret
@Margaret2
Jul 02 2017 01:04
it's not really adding 1 to it, it's just counting from 0 to 4 rather than 1 to 5
Ellyria
@Ellyria
Jul 02 2017 01:08
My understanding is that i++ is the same as i + 1, Margaret, but I could be wrong.
Margaret
@Margaret2
Jul 02 2017 01:09
@Ellyria well yeah, i++ is the same as i += 1, but doing <= instead of < doesn't make i++ turn into i += 2
Ellyria
@Ellyria
Jul 02 2017 01:12
Okay, @Margaret2.
Dalton Terry
@gadget800
Jul 02 2017 01:18
what should I use as documentation as I write code? Where can I get a good list of stuff if I forget exactly how to write something
Margaret
@Margaret2
Jul 02 2017 01:19
Dalton Terry
@gadget800
Jul 02 2017 01:20
I see. I think I been here before. Thanks @Margaret2
CamperBot
@camperbot
Jul 02 2017 01:20
gadget800 sends brownie points to @margaret2 :sparkles: :thumbsup: :sparkles:
:star2: 2821 | @margaret2 |http://www.freecodecamp.com/margaret2
Kyle Holm
@thekholm80
Jul 02 2017 01:20
+1 for mozilla developer network
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 01:34
+2
Brianna
@brisourceful
Jul 02 2017 01:43
MDN woot woot
Is anyone familiar with testing in front-end? Particularly Karma
Kyle Holm
@thekholm80
Jul 02 2017 01:48
i got some reddit karma, does that count?
Charles Freeborn Eteure
@charlesfreeborn
Jul 02 2017 01:49
How do I center div in boostrap?For my FCC tribute page, the divs are all on the left side. I want to center the divs.
Brianna
@brisourceful
Jul 02 2017 01:53
reddit karma LOL
Charles Freeborn Eteure
@charlesfreeborn
Jul 02 2017 01:55
I mean how do I center grids in bootstrap?
Ellyria
@Ellyria
Jul 02 2017 01:56
You might find this page useful, @ceteure01: https://codepen.io/Ellyria/full/LLRpEm/
Charles Freeborn Eteure
@charlesfreeborn
Jul 02 2017 01:58
@Ellyria Thanks. I will look at it now
CamperBot
@camperbot
Jul 02 2017 01:58
ceteure01 sends brownie points to @ellyria :sparkles: :thumbsup: :sparkles:
:cookie: 487 | @ellyria |http://www.freecodecamp.com/ellyria
anyone know why my responsive dropdown function isn't working>?
on the navbar
Kyle Holm
@thekholm80
Jul 02 2017 02:03
change your bootstrap links to 3
and make sure you have jquery before bootstrap in the javascript settings
Ross Scarborough
@SourceHorse
Jul 02 2017 02:04
still not working :(
Kyle Holm
@thekholm80
Jul 02 2017 02:05
index.html:131 Uncaught ReferenceError: dropMenu is not defined
at HTMLAnchorElement.onclick
Ellyria
@Ellyria
Jul 02 2017 02:05
You've got a space in the class name in this line, @SourceHorse: x.className += " responsive";
Ross Scarborough
@SourceHorse
Jul 02 2017 02:06
changing the space doesn't help
what's witht he reference error?
Kyle Holm
@thekholm80
Jul 02 2017 02:08
here's a working navbar i did if you'd like to compare https://jsfiddle.net/Luvtxd6p/2/
Ross Scarborough
@SourceHorse
Jul 02 2017 02:09
thanks @thekholm80 @Ellyria
CamperBot
@camperbot
Jul 02 2017 02:09
sourcehorse sends brownie points to @thekholm80 and @ellyria :sparkles: :thumbsup: :sparkles:
:cookie: 488 | @ellyria |http://www.freecodecamp.com/ellyria
:star2: 1236 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Ross Scarborough
@SourceHorse
Jul 02 2017 02:09
It was working earlier, but i think i broke it when editing my @media sections
Ellyria
@Ellyria
Jul 02 2017 02:09
I break my code all the time, @SourceHorse. In fact, I kind of specialize in that.
Kyle Holm
@thekholm80
Jul 02 2017 02:10
i learn more from breaking things than from getting it right
Nathan
@clarken1996
Jul 02 2017 02:12
hey does anyone know why my append function is not working? https://codepen.io/ClarkeN/pen/pwWaoo
Ross Scarborough
@SourceHorse
Jul 02 2017 02:12
<!--<p id="about" class="text-center">About Me</p> this broke my menu bar
that
somehow that in the html section broke it
because it wasn't closed!
omg
--> problem solved
yeah breaking stuff is always a lesson
Ellyria
@Ellyria
Jul 02 2017 02:16
Me too, @thekholm80, which is why I often intentionally try to break things so I can understand them better.
Kyle Holm
@thekholm80
Jul 02 2017 02:17
i got lots of code you can break if you're bored
Ellyria
@Ellyria
Jul 02 2017 02:17
Ah, you got bitten by the brackets, @SourceHorse! I've been hit by that one a time or two.
Ross Scarborough
@SourceHorse
Jul 02 2017 02:17
yep
Ellyria
@Ellyria
Jul 02 2017 02:18
Oh, heck, no, @thekholm80. I'm just now in recovery from a three week steak of one piece of broken code that I just figured out how to fix this afternoon and I'm riding the cloud of satisfaction from having finally gotten it working (scope is a monster).
Kyle Holm
@thekholm80
Jul 02 2017 02:18
oh well if you don't want to break code, i have some that needs fixing!
Ross Scarborough
@SourceHorse
Jul 02 2017 02:18
anything wrong with using bootstrap 4?
Kyle Holm
@thekholm80
Jul 02 2017 02:19
it's still under development @SourceHorse
Ross Scarborough
@SourceHorse
Jul 02 2017 02:19
ah
Kyle Holm
@thekholm80
Jul 02 2017 02:19
what you use today may not be there tomorrow
Ross Scarborough
@SourceHorse
Jul 02 2017 02:19
i like the responsive columns
Kyle Holm
@thekholm80
Jul 02 2017 02:19
look into flexbox!
Ross Scarborough
@SourceHorse
Jul 02 2017 02:20
col-8 instead of col-xs-8 col-sm-8 col-md-8 col-lg-8
Kyle Holm
@thekholm80
Jul 02 2017 02:20
under the hood, bootstrap grid system is just flexbox
Ross Scarborough
@SourceHorse
Jul 02 2017 02:20
aha
thanks @thekholm80
CamperBot
@camperbot
Jul 02 2017 02:20
sourcehorse sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:warning: sourcehorse already gave thekholm80 points
Kyle Holm
@thekholm80
Jul 02 2017 02:20
I use it for everything
it's got native browser support so you don't have to import a huge library
Ross Scarborough
@SourceHorse
Jul 02 2017 02:21
oh that's nice
Kyle Holm
@thekholm80
Jul 02 2017 02:21
@Ellyria what library have you used that has the worst documentation?
or rather, of the libraries you've used which had the worst documentation?
Ellyria
@Ellyria
Jul 02 2017 02:22
I've only used Bootstrap and jQuery, and I'd say the jQuery documentation is worse than the Bootstrap one. How about you?
Kyle Holm
@thekholm80
Jul 02 2017 02:22
so many
i have to say mongoose just because i've been staring at it for 4 days now with no end in sight
Ellyria
@Ellyria
Jul 02 2017 02:23
I might be interested in helping figuring out the fixing, @thekholm80.
Heh, 4 days is nothing. I was stuck with my face planted squarely up against a wall for the past three weeks.
Kyle Holm
@thekholm80
Jul 02 2017 02:24
haha one of the data viz projects stumped me like that
Ellyria
@Ellyria
Jul 02 2017 02:24
I had to get data out of an if statement which was nestled nicely inside of a function. I then had to use that data from within another function in the same script.
I was completely unable to do so.
Kyle Holm
@thekholm80
Jul 02 2017 02:25
sounds like you could use a callback
Ellyria
@Ellyria
Jul 02 2017 02:25
I came up with a delicious hack that made me feel incredibly dirty. I could save the data as innerHTML values for hidden HTML elements and then extract it from anywhere. It was foolproof and would work perfectly, but it was so dirty.
Then I came in here and asked for advice (but not a solution!) for a direction to go in and someone mentioned callbacks.
I must have done some bad research because I wasn't able to make head nor tail out of what I saw of callbacks. They looked nothing like what I was trying to do.
Kyle Holm
@thekholm80
Jul 02 2017 02:26
i can show you an example
Ellyria
@Ellyria
Jul 02 2017 02:26
Then, today, I finally figured out how to work those slithery callbacks and I have a working piece of code!
Kyle Holm
@thekholm80
Jul 02 2017 02:26
oh, awesome
Ellyria
@Ellyria
Jul 02 2017 02:26
It's a thing of beauty and I keep grabbing it and admiring it. I'm beside myself with joy for having finally gotten this thing where I want it without that dirty hack.
I have a feeling freeCodeCamp wouldn't have passed my project if I'd used it. Heh.
Kyle Holm
@thekholm80
Jul 02 2017 02:27
I used a dirty trick in my last project. I'm not proud
Ellyria
@Ellyria
Jul 02 2017 02:27
It's air-tight, though. I tested it. If you save data to innerHTML in a hidden HTML element, you can extract it from anywhere else within your code without jumping through any hoops.
Kyle Holm
@thekholm80
Jul 02 2017 02:28
but storing data on the dom is not the best practice
Ellyria @Ellyria is a bad girl for even thinking of it, though.
Ellyria
@Ellyria
Jul 02 2017 02:28
Right. Heh.
It was desparation talking after weeks on that wall.
Kyle Holm
@thekholm80
Jul 02 2017 02:29
i think we've all been there
Ellyria
@Ellyria
Jul 02 2017 02:30
Yeah. I'm sure we'll all be there again, too. No doubt in my mind whatsoever. I'm closing in on the advanced JavaScript and I suspect it probably wouldn't be a stretch of the imagination for me to get stuck for a month or more in some of those challenges/projects.
Kyle Holm
@thekholm80
Jul 02 2017 02:30
the tic-tac-toe took me a while because i wanted to make it unbeatable
it beat me, but not the way i wanted
Ellyria
@Ellyria
Jul 02 2017 02:31
Did you succeed?
Kyle Holm
@thekholm80
Jul 02 2017 02:31
I could probably do it now, i have a better understanding of recursion
maybe i'll revise my code some day
Ellyria
@Ellyria
Jul 02 2017 02:32
Where are you in your learning? Did you get your certificate and are you on back end?
Kyle Holm
@thekholm80
Jul 02 2017 02:32
i have 2 / 3 certs, 4 projects left in back end
Ellyria
@Ellyria
Jul 02 2017 02:32
OMG, congratulations on how far you've gotten!
Kyle Holm
@thekholm80
Jul 02 2017 02:33
heh thanks
i still feel like a total noob
Ellyria
@Ellyria
Jul 02 2017 02:33
Oh, gosh, me, too, but I was hoping I wouldn't when I got further in. Apparently that feeling doesn't go away, eh?
Kyle Holm
@thekholm80
Jul 02 2017 02:33
well, some of it does
i can write html like a pro
Ellyria
@Ellyria
Jul 02 2017 02:34
Same. I had no problem with HTML, and I'm mostly good with CSS (although not so good at advanced CSS, but love it anyway). It's JavaScript that ties me up in knots.
Kyle Holm
@thekholm80
Jul 02 2017 02:34
and it's javascript that you need the most
Ellyria @Ellyria is a linear thinker
Kyle Holm
@thekholm80
Jul 02 2017 02:35
but JS is single threaded, so you only have to think linearly!
Ellyria
@Ellyria
Jul 02 2017 02:35
Yep, so I have to fight my inclinations and try to allow the way others think to penetrate my skull.
Ross Scarborough
@SourceHorse
Jul 02 2017 02:35
What do you think about my navbar now? Too much CSS?
your navbar code looks a lot more elegant
Ellyria
@Ellyria
Jul 02 2017 02:36
No, you have to bounce around. Even though it reads top to bottom, it doesn't always execute that way, and it runs around reading things like functions and variables and storing them, and then declarations and initializations can be read in a different order depending on where they show up, etc., making for a complete and utter mess for someone who wants to just work neatly down from the top. Heh.
Kyle Holm
@thekholm80
Jul 02 2017 02:36
@SourceHorse the hamburger menu isn't working for me
Ross Scarborough
@SourceHorse
Jul 02 2017 02:36
sorry refresh
oops
Kyle Holm
@thekholm80
Jul 02 2017 02:37
there it goes
Ross Scarborough
@SourceHorse
Jul 02 2017 02:37
there
Ellyria
@Ellyria
Jul 02 2017 02:37
Do you want the center part of the navbar to come down like that, @SourceHorse?
Nathan
@clarken1996
Jul 02 2017 02:38
hey can I change it so each link gets a jumbotron? or is that pointless?
Ross Scarborough
@SourceHorse
Jul 02 2017 02:38
i like the current function
need to add it closing when i click on a link though
Kyle Holm
@thekholm80
Jul 02 2017 02:38
@Ellyria i think you'll find a way to look at your JS that makes it all click for you
Ellyria
@Ellyria
Jul 02 2017 02:40
It's getting easier as time goes by, @thekholm80. The more I learn, the more it makes sense. I have trouble looking at some of the advanced code and making sense of it, though. I also have a feeling I'll always write less elegant code than some folks. My code will get the job done, but not as neatly as it, perhaps, could.
If that was a design decision, @SourceHorse, then it's working. It's in the down position when the page loads, and slowly slides up and away as the page scrolls. Is that what you intended?
Kyle Holm
@thekholm80
Jul 02 2017 02:41
that's a constant struggle for me. I use codewars to practice, and after i solve a problem i can look at others code. usually they're solving these things with a single line of code where i'm using 10 lines or so
Ross Scarborough
@SourceHorse
Jul 02 2017 02:42
oh, try reloading it sorry
Ellyria
@Ellyria
Jul 02 2017 02:42
It all depends on your design, @clarken1996. It may not be conventional to do that, but it may look really cool, depending on how you do it.
Ross Scarborough
@SourceHorse
Jul 02 2017 02:42
ah
yeah that blue part with my profile pic isn't part og the menu
that's the top of the page. It's meant to blend in at the top and the navbar follows when you scroll down
Ellyria
@Ellyria
Jul 02 2017 02:43
Then it's working perfectly, @SourceHorse, and the page is coming along nicely!
Ross Scarborough
@SourceHorse
Jul 02 2017 02:44
Thanks @Ellyria
CamperBot
@camperbot
Jul 02 2017 02:44
sourcehorse sends brownie points to @ellyria :sparkles: :thumbsup: :sparkles:
:warning: sourcehorse already gave ellyria points
Ross Scarborough
@SourceHorse
Jul 02 2017 02:44
just updated and removed the container around the blue background to fill the screen
Ellyria
@Ellyria
Jul 02 2017 02:45
I like your huge icons, @clarken1996.
I like that better, @SourceHorse. That makes for a very professional presentation.
Ross Scarborough
@SourceHorse
Jul 02 2017 02:47
Thanks
Nathan
@clarken1996
Jul 02 2017 02:48
@Ellyria cheers, yeah just looking for a way to do it atm
Ellyria
@Ellyria
Jul 02 2017 02:49
I know the feeling, @clarken1996. We're not UI - we're UX! But we still have to do some designing. I'm much better at making someone else's wish come true when it comes to design than thinking of a good one on my own.
Nathan
@clarken1996
Jul 02 2017 02:50
@Ellyria someone that gets me!ahahah
Ellyria
@Ellyria
Jul 02 2017 02:50
Heh.
vbaghdas
@vbaghdas
Jul 02 2017 02:55
I am trying to recreate an HTML page using JQuery. However, having trouble trying to create multiple <p> tags. This is what I have so far to create the text... $('<p>').text('paragraph1'); this works when I append it to my destination. However, $('<p>').text('paragraph2'); replaces the first paragraph when I append it.
Gulsvi
@gulsvi
Jul 02 2017 02:55
@clarken1996 You may be interested in using the well class? It's like a mini-jumbotron: http://getbootstrap.com/components/#wells
Amit Patel
@AmitP88
Jul 02 2017 02:56

hey guys, I need some help with the Diff Two Arrays algorithm. My strategy to solve this was to merge both arrays and filter out the duplicate pairs and return the filtered array. However, I've only managed to filter out the duplicate items, but not the item pairs. I can't seem to figure it out:
function diffArray(arr1, arr2) {
var newArr = [];
// Same, same; but different.

// Merged both arrays together into one (arr3);
var arr3 = arr1.concat(arr2);

// Filtered arr3 of duplicate items in merged array
var filteredArr = arr3.filter(function(item, pos, self) {
return self.indexOf(item) == pos;
});

return filteredArr;

}

diffArray([1, 2, 3, 5], [1, 2, 3, 4, 5]);

Ellyria
@Ellyria
Jul 02 2017 02:56
vbaghdas
@vbaghdas
Jul 02 2017 02:58
Thank you @Ellyria, i'll give w3 another try.
CamperBot
@camperbot
Jul 02 2017 02:58
vbaghdas sends brownie points to @ellyria :sparkles: :thumbsup: :sparkles:
:cookie: 489 | @ellyria |http://www.freecodecamp.com/ellyria
Ellyria
@Ellyria
Jul 02 2017 02:59
It should be a pretty quick syntax fix, @vbaghdas.
Sorry, @AmitP88. I can't look at it. That's ahead of me and I don't want to cheat.
Amit Patel
@AmitP88
Jul 02 2017 03:00
@Ellyria I understand. thanks anyways :)
CamperBot
@camperbot
Jul 02 2017 03:00
amitp88 sends brownie points to @ellyria :sparkles: :thumbsup: :sparkles:
:cookie: 490 | @ellyria |http://www.freecodecamp.com/ellyria
Ellyria
@Ellyria
Jul 02 2017 03:00
You might want to try the https://gitter.im/FreeCodeCamp/HelpJavaScript channel, @AmitP88.
Nathan
@clarken1996
Jul 02 2017 03:00
@SkyC0der can I append well without having to copy and paste 5 of them?
Amit Patel
@AmitP88
Jul 02 2017 03:00
@Ellyria thank you, I'll check it out :)
CamperBot
@camperbot
Jul 02 2017 03:00
amitp88 sends brownie points to @ellyria :sparkles: :thumbsup: :sparkles:
:warning: amitp88 already gave ellyria points
Gulsvi
@gulsvi
Jul 02 2017 03:01
@clarken1996 Yes, definitely, you can use the .append() method in your loop
Ellyria
@Ellyria
Jul 02 2017 03:01
More possibilities to find someone who knows their way around in the code. Heh.
Emeka Elo-Chukwuma
@BrunoElo
Jul 02 2017 03:03
have a little joke
what do you call a snake that is exactly 3.14 feet long?
Kavinda
@rupassara
Jul 02 2017 03:05
pithon
Ellyria
@Ellyria
Jul 02 2017 03:05
This is gonna be something to do with Pi...
Ellyria @Ellyria missed that. Must be tired.
shivam gupta
@shivamg11000
Jul 02 2017 03:09
can anybody explain me this
(function(){
   console.log('Hello');
})();
Emeka Elo-Chukwuma
@BrunoElo
Jul 02 2017 03:10
@rupassara nice
Darren
@DarrenfJ
Jul 02 2017 03:13
evening fCC helpRoom
Kyle Holm
@thekholm80
Jul 02 2017 03:13
@DarrenfJ hiya
Darren
@DarrenfJ
Jul 02 2017 03:14
@thekholm80 hey man :D
how goes it
Kyle Holm
@thekholm80
Jul 02 2017 03:15
not bad, pretty exciting Saturday night going on here lol. you?
Thomas
@teashton
Jul 02 2017 03:15
hey guys need some help here.
shivam gupta
@shivamg11000
Jul 02 2017 03:15
@thekholm80 here it is sunday
Thomas
@teashton
Jul 02 2017 03:16

Using bracket notation select an element from myArray such that myData is equal to 8.
// Setup
var myArray = [[1,2,3], [4,5,6], [7,8,9], [[10,11,12], 13, 14]];

// Only change code below this line.
var myData = myArray[0][0];

i dont know what its asking for.
Darren
@DarrenfJ
Jul 02 2017 03:16
mellow night but fireworks going off everywhere
Kyle Holm
@thekholm80
Jul 02 2017 03:16
oh right, Canada day
i had forgotten
Darren
@DarrenfJ
Jul 02 2017 03:16
@teashton it's asking you to find where the 8 is in a 2 dimensional array
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 03:16
I'm just playing with unity x)
Darren
@DarrenfJ
Jul 02 2017 03:17
@teashton which is an array of arrays
@teashton so counting from 0, which array is the 8 in?
Thomas
@teashton
Jul 02 2017 03:17
the problem is i dont know exactly how to do so.
Darren
@DarrenfJ
Jul 02 2017 03:17
see my Q right above ^^
Thomas
@teashton
Jul 02 2017 03:17
would it be [3] [2] ?
Darren
@DarrenfJ
Jul 02 2017 03:17
@teashton so counting from 0, which array is the 8 in?
@teashton very close
count from 0
tao
@Azerop
Jul 02 2017 03:18
Screen Shot 2017-07-02 at 11.17.11 AM.png
Kavinda
@rupassara
Jul 02 2017 03:18
0 1 2 3 4 5 6 7 8
so 8th is 7
Thomas
@teashton
Jul 02 2017 03:18
oh so its [2] [1]
Darren
@DarrenfJ
Jul 02 2017 03:18
@teashton try that out and see how it goes.
Ellyria
@Ellyria
Jul 02 2017 03:18
Since it wants you to select an element that's equal to 8, @teashton, you can't select any of the main array elements, since all of them equal either less than 8 or more than 8. So, what it wants you to do is to select an element within an element by using bracket notation.
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 03:18
@Azerop its "Hi World"
check the mayus
tao
@Azerop
Jul 02 2017 03:18
i am confused about Write Reusable JavaScript with Functions
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 03:19
you did well
Nathan
@clarken1996
Jul 02 2017 03:19
@SkyC0der any tips on how to do that? been checking out w3 schools and no luck
Thomas
@teashton
Jul 02 2017 03:19
@Ellyria @DarrenfJ you are fantastic. that makes way more sense than what they said.
Ellyria
@Ellyria
Jul 02 2017 03:19
Heh, you've got this, @teashton!
tao
@Azerop
Jul 02 2017 03:20
@NahuelOvejero thanks
CamperBot
@camperbot
Jul 02 2017 03:20
azerop sends brownie points to @nahuelovejero :sparkles: :thumbsup: :sparkles:
:cookie: 782 | @nahuelovejero |http://www.freecodecamp.com/nahuelovejero
Darren
@DarrenfJ
Jul 02 2017 03:20
@teashton with coding, they almost always start count from 0.. eventually you get used to it.. sorta anyway
Thomas
@teashton
Jul 02 2017 03:20
@DarrenfJ honestly i didnt understand what they were saying at all.
@DarrenfJ sometimes i get into a page and it doesnt really explain it very well.
Darren
@DarrenfJ
Jul 02 2017 03:21
:D you got it though... virtual high five

@teashton this is true:

@DarrenfJ sometimes i get into a page and it doesnt really explain it very well.

Thomas
@teashton
Jul 02 2017 03:21
@DarrenfJ thanks for the help!!! :D
CamperBot
@camperbot
Jul 02 2017 03:21
teashton sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1869 | @darrenfj |http://www.freecodecamp.com/darrenfj
Ellyria
@Ellyria
Jul 02 2017 03:21
Do you see the example they gave you, @Azerop? They want you to do the same thing, but with a different name and a different message.
Thomas
@teashton
Jul 02 2017 03:21
@Ellyria thank you!!!
CamperBot
@camperbot
Jul 02 2017 03:21
:cookie: 491 | @ellyria |http://www.freecodecamp.com/ellyria
teashton sends brownie points to @ellyria :sparkles: :thumbsup: :sparkles:
Darren
@DarrenfJ
Jul 02 2017 03:22
also thanks to those who also helped: @rupassara @Ellyria :D
CamperBot
@camperbot
Jul 02 2017 03:22
darrenfj sends brownie points to @rupassara and @ellyria :sparkles: :thumbsup: :sparkles:
:cookie: 124 | @rupassara |http://www.freecodecamp.com/rupassara
:cookie: 492 | @ellyria |http://www.freecodecamp.com/ellyria
Darren
@DarrenfJ
Jul 02 2017 03:22
and thanks for always being in here and helping out @thekholm80
CamperBot
@camperbot
Jul 02 2017 03:22
darrenfj sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1237 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Ellyria
@Ellyria
Jul 02 2017 03:22
I agree on how some of these challenges are written. Hopefully they'll be better in the beta.
Kyle Holm
@thekholm80
Jul 02 2017 03:22
@DarrenfJ lol thanks man
CamperBot
@camperbot
Jul 02 2017 03:22
thekholm80 sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1870 | @darrenfj |http://www.freecodecamp.com/darrenfj
Thomas
@teashton
Jul 02 2017 03:23
@rupassara thanks!!!
CamperBot
@camperbot
Jul 02 2017 03:23
teashton sends brownie points to @rupassara :sparkles: :thumbsup: :sparkles:
:cookie: 125 | @rupassara |http://www.freecodecamp.com/rupassara
Gulsvi
@gulsvi
Jul 02 2017 03:23

@clarken1996 In my javaScript, I think it helps to write HTML similar to how you would write it normally, so you could do something like:

$('#wikiResult').append(
  '<div class="well article-well">' + 
    '<a href=' + data[3][x] + 'class="article-link" target= "_blank">' + data[3][x] + '</a>' +
  '</div>'
);

Then in your css, you can define how your wells look with the .article-well call and how your links look with the .article-link class. You can add more HTML as needed for the article excerpts and titles.

Momozor
@momozor
Jul 02 2017 03:23
hello
tao
@Azerop
Jul 02 2017 03:23
@Ellyria thanks, i fixed it
CamperBot
@camperbot
Jul 02 2017 03:23
azerop sends brownie points to @ellyria :sparkles: :thumbsup: :sparkles:
:cookie: 493 | @ellyria |http://www.freecodecamp.com/ellyria
Ellyria
@Ellyria
Jul 02 2017 03:24
Good job, @Azerop!
Darren
@DarrenfJ
Jul 02 2017 03:24
@faraco hey buddy :wave:
Momozor
@momozor
Jul 02 2017 03:24
heya :wave:
Kyle Holm
@thekholm80
Jul 02 2017 03:24
@faraco :wave:
Momozor
@momozor
Jul 02 2017 03:24
:wave:
Ellyria
@Ellyria
Jul 02 2017 03:24
Hey there, @faraco.
Gulsvi
@gulsvi
Jul 02 2017 03:24
@clarken1996 So, given that example above, maybe try writing it in HTML first and get it to look the way you want with some fake data. After that, you can "translate" it into JavaScript.
Momozor
@momozor
Jul 02 2017 03:25
hey there too @Ellyria
Gulsvi
@gulsvi
Jul 02 2017 03:25
Hey everyone! :wave: :sunglasses: :wave:
Momozor
@momozor
Jul 02 2017 03:25
hi
Ellyria
@Ellyria
Jul 02 2017 03:25
Hey there, @SkyC0der.
Gulsvi
@gulsvi
Jul 02 2017 03:25
so many friendly people here, I should visit more often :p
Momozor
@momozor
Jul 02 2017 03:25
:D
Ellyria
@Ellyria
Jul 02 2017 03:26
I tend to litter my code with comment lines before I get it all written, and then do away with them if I manage to write my code well enough that it's obvious what it does so that it doesn't need the comments any more.
Darren
@DarrenfJ
Jul 02 2017 03:26
@SkyC0der skyCoder! :D
Ellyria
@Ellyria
Jul 02 2017 03:26
Go for it, @SkyC0der!
Gulsvi
@gulsvi
Jul 02 2017 03:27
@DarrenfJ Hello Darren, I saw you on the forums today!
Ellyria
@Ellyria
Jul 02 2017 03:27
My code and I often exchange dirty looks and mutter at each other before things get all polished.
Nathan
@clarken1996
Jul 02 2017 03:27
@SkyC0der you the real mvp you explain things so well, I am looking at jQuery in a new way and its so much easier. Thankyou so much
CamperBot
@camperbot
Jul 02 2017 03:27
clarken1996 sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:star2: 1903 | @skyc0der |http://www.freecodecamp.com/skyc0der
Momozor
@momozor
Jul 02 2017 03:27
@Ellyria I learnt from some guys where you should comment why instead of what. That helps me a lot actually.
Gulsvi
@gulsvi
Jul 02 2017 03:27
@clarken1996 Glad that helped!
Ellyria
@Ellyria
Jul 02 2017 03:28
Oh, I hadn't heard that one, @faraco! I might have to try that. I get all pretzel-ed up when I first start something half-ways big, and it takes a little while for it to settle down and make some sort of sense. Until then, it's loaded with comments, many of which get pretty long.
Darren
@DarrenfJ
Jul 02 2017 03:29
@SkyC0der i try to go in there and here once a day to help out
Gulsvi
@gulsvi
Jul 02 2017 03:29
Happy Canada Day!
Darren
@DarrenfJ
Jul 02 2017 03:29
oh thanks man
I'm not very patriotic by nature.. more of curmudgeon about national holidays
Ellyria
@Ellyria
Jul 02 2017 03:30
I've avoided the forums since it's a separate log-in. I wish All Things freeCodeCamp were under one log-in umbrella.
Darren
@DarrenfJ
Jul 02 2017 03:30
yah that would be schweet
Ellyria @Ellyria would twirl the umbrella
Darren
@DarrenfJ
Jul 02 2017 03:31
twirling twirling towards freedom!
iduvancho303
@iduvancho303
Jul 02 2017 03:32
:+1:
Ellyria
@Ellyria
Jul 02 2017 03:32
That's right!
Momozor
@momozor
Jul 02 2017 03:32

I found this project list ideas (and not too complex nor too easy, also useful) worth checking out if you currently don't know what to try. https://github.com/karan/Projects#web

:)

@faraco thanks brutha! I love lists even though I have a million now to get to
CamperBot
@camperbot
Jul 02 2017 03:33
darrenfj sends brownie points to @faraco :sparkles: :thumbsup: :sparkles:
:cookie: 350 | @faraco |http://www.freecodecamp.com/faraco
Ellyria
@Ellyria
Jul 02 2017 03:34
Nice, @faraco - bookmarked!
Ellyria @Ellyria dashes off to share it elsewhere as well.
DarrenfJ @DarrenfJ claps
Ellyria
@Ellyria
Jul 02 2017 03:36
That's really nice. We're all probably going to reach a point where we're not sure which direction to go in next. Something like that will be a valuable resource for such a time.
Dalton Terry
@gadget800
Jul 02 2017 03:36
hey to send a link from codepen do i just copy it from the bar or is there somewhere I get a link to where you can't edit lol
Ellyria
@Ellyria
Jul 02 2017 03:38
Other people can edit our CodePens?
Dalton Terry
@gadget800
Jul 02 2017 03:38
idk i was asking
Ellyria
@Ellyria
Jul 02 2017 03:38
😮
Kyle Holm
@thekholm80
Jul 02 2017 03:38
you can edit anyone's codepen, but if you save it it saves to your account as a fork not theirs
Nathan
@clarken1996
Jul 02 2017 03:38
they can but cant save the change
Dalton Terry
@gadget800
Jul 02 2017 03:38
oh okay lit
Darren
@DarrenfJ
Jul 02 2017 03:38
@Ellyria you've the p1xt guides right?
Ellyria
@Ellyria
Jul 02 2017 03:39
Oh, good.
Probably not. What's p1xt?
Darren
@DarrenfJ
Jul 02 2017 03:39
originally in the forum.. now on GitHub
used to be a frequent flyer here at fCC
Ellyria
@Ellyria
Jul 02 2017 03:39
Ah, what kind of guides?
have fun
see you in 2 years ;)
Ellyria @Ellyria goes and pokes around
Ellyria
@Ellyria
Jul 02 2017 03:40
Heh.
Darren
@DarrenfJ
Jul 02 2017 03:40
coding etc...
free links
advanced topics to supplment fCC
suggested projects
Nathan
@clarken1996
Jul 02 2017 03:41
@Ellyria @DarrenfJ hope you guys dont mind but I am just bookmarking the links..ahaha
Darren
@DarrenfJ
Jul 02 2017 03:41
ok my dogs are being wonky caussa all the explosion noises.. gotta go distract them
iduvancho303
@iduvancho303
Jul 02 2017 03:41
Is there a way I can access to this chat room from Mirc ?
Darren
@DarrenfJ
Jul 02 2017 03:41
@clarken1996 bookmark away brutha!
Ellyria
@Ellyria
Jul 02 2017 03:41
Nice! Bookmarked and shared!
No, @iduvancho303. They're two different kinds of platforms.
I wish, though. I prefer IRC, too.
Darren
@DarrenfJ
Jul 02 2017 03:42
i was at a big party in the desert and one of my fav overheard discussions was "humans, the only animals on the planet who run towards the exploding stuff"
later, roomies
Ellyria
@Ellyria
Jul 02 2017 03:42
OMG!
Is he the author of the books I am loving?!!!
The "You Don't Know JS" books?!
Those are breathtaking!
iduvancho303
@iduvancho303
Jul 02 2017 03:43
@Ellyria thank you I was just curious...I'm noob to this gitter git hub...thing... LOL
CamperBot
@camperbot
Jul 02 2017 03:43
iduvancho303 sends brownie points to @ellyria :sparkles: :thumbsup: :sparkles:
:cookie: 494 | @ellyria |http://www.freecodecamp.com/ellyria
Ellyria
@Ellyria
Jul 02 2017 03:43
I adore him. OMG, I adore him.
Yeah, it would have been nice, @iduvancho303, but nope. It's its own little thing, and it's mighty buggy.
Kyle Holm
@thekholm80
Jul 02 2017 03:44
I thought Kyle Simpson wrote the You Don't Know JS books?
oh, yeah he did
he's a smart dude
Ellyria
@Ellyria
Jul 02 2017 03:46
I am absolutely gobsmacked by those books. They're so very good.
He did, but maybe his handle is that P1xt guy @DarrenfJ linked.
Manish Giri
@Manish-Giri
Jul 02 2017 03:48
no P1xt is a she
Kyle is a he, different guy
Kyle Holm
@thekholm80
Jul 02 2017 03:49
@Manish-Giri is a smart dude too
Ellyria
@Ellyria
Jul 02 2017 03:49
Oh, heh. Whoops! 😮
Manish Giri
@Manish-Giri
Jul 02 2017 03:49
lol
Kyle Holm
@thekholm80
Jul 02 2017 03:49
he's probably the world's leading expert on Neo4j right now
Manish Giri
@Manish-Giri
Jul 02 2017 03:50
@thekholm80
(node:1222) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Promise Rejected.
such smartness
much error
Kyle Holm
@thekholm80
Jul 02 2017 03:50
promises promises
Ellyria
@Ellyria
Jul 02 2017 03:50
At least it's a pretty error.
@Manish-Giri So, they got rid of gitter recommendations so we could create a new account on the forums instead?
Manish Giri
@Manish-Giri
Jul 02 2017 03:51
@SkyC0der probably
Gulsvi
@gulsvi
Jul 02 2017 03:51
I'm not sure I understand - it's just a "sign in with github" link for both
Manish Giri
@Manish-Giri
Jul 02 2017 03:51
they were never very smart, anyway
Gulsvi
@gulsvi
Jul 02 2017 03:51
More hoops to jump through on the forums vs. here
Manish Giri
@Manish-Giri
Jul 02 2017 03:52
reason why p1xt left in the first place
the forum sucks
Gulsvi
@gulsvi
Jul 02 2017 03:52
They both have pros/cons, but I could see the admin overhead here being too much
banning/trolling/etc
Manish Giri
@Manish-Giri
Jul 02 2017 03:53
@Ellyria which chapter of YDKJS are you on?
Ellyria @Ellyria fetches her tablet to check...
Dalton Terry
@gadget800
Jul 02 2017 03:54
do yall think I should work on all projects on once and just knock them out or to learn some other stuff then go back and do the projects every now and then? I don't want to get burnt out
Kyle Holm
@thekholm80
Jul 02 2017 03:55
I pretty much followed the curriculum in order, except doing the intro back end lessons in the middle of Data Viz because I needed a break
Manish Giri
@Manish-Giri
Jul 02 2017 03:56
me tooo
I'm doing some node stuff atm
coz d3 + svg + rect + circle + tooltip is very annoying
Kyle Holm
@thekholm80
Jul 02 2017 03:56
lol
Manish Giri
@Manish-Giri
Jul 02 2017 03:56
rekt
Kyle Holm
@thekholm80
Jul 02 2017 03:56
does it specifically say you have to use D3? cause chart.js is pretty freaking easy
Ellyria
@Ellyria
Jul 02 2017 03:57
I'm on scope closures, and it's all just delicious.
Kyle Holm
@thekholm80
Jul 02 2017 03:57
const data = {
  datasets: [{
    data: [3, 7, 5],
    backgroundColor: [
      "rgb(255, 0, 0)",
      "rgb(255, 255, 0)",
      "rgb(0, 0, 255)"
    ]
  }],
  labels: [
    "Red",
    "Yellow",
    "Blue"
  ]
};

const context = document.getElementById("myChart").getContext("2d");

const exampleChart = new Chart(context, {
  type: "pie",
  data: data
});
Manish Giri
@Manish-Giri
Jul 02 2017 03:57

I remember Master Shifu saying

but then you won't get to learn D3

Kyle Holm
@thekholm80
Jul 02 2017 03:57
boom, there's a pie chart
Manish Giri
@Manish-Giri
Jul 02 2017 03:57
Master Shifu being @thekholm80
Kyle Holm
@thekholm80
Jul 02 2017 03:57
lol that guy is a dumbass, never listen to him
I'm sad you're not liking D3 though, i thought it was fun
Manish Giri
@Manish-Giri
Jul 02 2017 03:58
@Ellyria I was on Chapter 3 of Scope & Closures last time
found it pretty boring till then
@thekholm80 I'm not liking D3 coz I know I'll mostly never use it again
unlike react/node
Ellyria
@Ellyria
Jul 02 2017 03:59
Gosh, I've been hanging on his every word from the very beginning. I can't say enough good about it. I'm absolutely wallowing in the bliss that is what this guy puts out.
I could read him forever.
Manish Giri
@Manish-Giri
Jul 02 2017 03:59
you need to read CLRS then
you'll like it more
lol
Ellyria
@Ellyria
Jul 02 2017 03:59
What's that?
Not possible!
Kyle Holm
@thekholm80
Jul 02 2017 03:59
Can't Listen Really Softly
Ellyria
@Ellyria
Jul 02 2017 04:00
ʕ•ᴥ•ʔ
Kyle Holm
@thekholm80
Jul 02 2017 04:00
i was close
Ellyria
@Ellyria
Jul 02 2017 04:00
Heh.
Kyle Holm
@thekholm80
Jul 02 2017 04:01
I'm reading Professor Frisby's Mostly Adequate Guide to Functional Programming
Ellyria
@Ellyria
Jul 02 2017 04:02
I must be tired or not very bright, and I'm hoping I'm just tired. How do you read it?
Ellyria @Ellyria tries sneaking over to MIT...
Ellyria
@Ellyria
Jul 02 2017 04:05
I'm starting to think you have to buy it.
I will be buying the YDKJS series, but I began reading them electronically for free, and I think it's really cool that he did that. I want to buy it to support him and encourage him to write more.
Kavinda
@rupassara
Jul 02 2017 04:07
@Ellyria thats great!
Manish Giri
@Manish-Giri
Jul 02 2017 04:07
@Ellyria you could buy another set and Fedex me!
Would support him more :stuck_out_tongue:
Ellyria
@Ellyria
Jul 02 2017 04:08
Heh, I'll just bet we would!
Ellyria @Ellyria just got a new job after being unemployed for half a year.
Manish Giri
@Manish-Giri
Jul 02 2017 04:08
I've been asking @thekholm80 to buy me a mac
don't think that's going very well
Kyle Holm
@thekholm80
Jul 02 2017 04:08
i offered you a big mac and you laughed
Ellyria
@Ellyria
Jul 02 2017 04:08
Let me know if he does it, because I'll ask next. I don't own a Mac yet.
Kyle Holm
@thekholm80
Jul 02 2017 04:08
i think you're ungrateful
Manish Giri
@Manish-Giri
Jul 02 2017 04:09
:sweat:
Kavinda
@rupassara
Jul 02 2017 04:09
i've been askin my mother to buy me a new pair of shoes
Ellyria
@Ellyria
Jul 02 2017 04:09
You might want to ask @thekholm80, @rupassara.
Kyle Holm
@thekholm80
Jul 02 2017 04:09
I have a lot of shoes. It's my dirty secret
Kavinda
@rupassara
Jul 02 2017 04:10
:smile:
Ellyria
@Ellyria
Jul 02 2017 04:10
I'm probably the only woman on the planet who hasn't got even one pair of shoes.
Kavinda
@rupassara
Jul 02 2017 04:10
i had lot of shoes! until i got two dogs
Kyle Holm
@thekholm80
Jul 02 2017 04:10
@Ellyria i think you might be surprised
i've seen National Geographic
Kavinda
@rupassara
Jul 02 2017 04:11
we have some high quality beggars here.... they dont have a slipper or food to eat... bt surely they have smart phone
Nathan
@clarken1996
Jul 02 2017 04:11
is there a reason my autofocus does not work? dummie hour..
Nathan
@clarken1996
Jul 02 2017 04:11
<input type= "text" class= "form-control" placeholder= "Explore the world.." id= "searchInput" autofocus>
Ellyria
@Ellyria
Jul 02 2017 04:12
Heh, now that's just sad, @rupassara, when the phone is more important than food or slippers!
shivam gupta
@shivamg11000
Jul 02 2017 04:12
@rupassara no they have jio
Manish Giri
@Manish-Giri
Jul 02 2017 04:12
x
Ellyria
@Ellyria
Jul 02 2017 04:12
Did you press Ctrl and zero, @clarken1996?
Manish Giri
@Manish-Giri
Jul 02 2017 04:12
I want this sticker
iduvancho303
@iduvancho303
Jul 02 2017 04:12
help please

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

<style>
.thick-green-border {
border-color: green;
border-width: 5px;
border-style:
}
}
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

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

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

<h2 class="red-text thick-green-border">CatPhotoApp</h2>

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

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

Kyle Holm
@thekholm80
Jul 02 2017 04:12
lol
iduvancho303
@iduvancho303
Jul 02 2017 04:13
I am trying to apply multiple classes :/
Kavinda
@rupassara
Jul 02 2017 04:13
@Ellyria most of them worked as a corporation... they might earn twice as i do
Manish Giri
@Manish-Giri
Jul 02 2017 04:13
I dont think the classes go on h2
@iduvancho303
Nathan
@clarken1996
Jul 02 2017 04:13
@Ellyria wot ahahah
Manish Giri
@Manish-Giri
Jul 02 2017 04:13
also border-style: is incomplete
Kavinda
@rupassara
Jul 02 2017 04:14
@iduvancho303 add thick-green-border to image
iduvancho303
@iduvancho303
Jul 02 2017 04:14
@Manish-Giri you are right should be under <img thanks !
CamperBot
@camperbot
Jul 02 2017 04:14
iduvancho303 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6169 | @manish-giri |http://www.freecodecamp.com/manish-giri
Kavinda
@rupassara
Jul 02 2017 04:15
@Ellyria its almost $20....
isnt that bit much for a MUG?
Manish Giri
@Manish-Giri
Jul 02 2017 04:15
@thekholm80 app.get('/todos/:id', (req, res) => ...)
Ellyria
@Ellyria
Jul 02 2017 04:15
And too many closing brackets for the thick-green-border class.
Manish Giri
@Manish-Giri
Jul 02 2017 04:15
why is the : needed?
@thekholm80
is it an express syntax?
Ellyria
@Ellyria
Jul 02 2017 04:15
Yes, that's why I'm wishing for it instead of buying it, @rupassara.
Nathan
@clarken1996
Jul 02 2017 04:15
@Ellyria what did you mean by ctrl 0
Manish Giri
@Manish-Giri
Jul 02 2017 04:16
can't it be app.get('/todos/id', ...)
Kavinda
@rupassara
Jul 02 2017 04:16
@Ellyria its 10th of my salary
Ellyria
@Ellyria
Jul 02 2017 04:16
For auto-zoom reset, @clarken1996. Wasn't that what you were doing?
Oh, then it's not worth it, @rupassara.
Nathan
@clarken1996
Jul 02 2017 04:17
@Ellyria noooo I want it to auto focus on that input when is appears isnt that what autofocus does
Kyle Holm
@thekholm80
Jul 02 2017 04:17
@Manish-Giri :id will take everything after /todos/ and parse it into req.params.id
Kavinda
@rupassara
Jul 02 2017 04:17
try a custom one! they might be cheaper...
Ellyria
@Ellyria
Jul 02 2017 04:17
Oh, that! I think I have some code for that. Is it for a text input?
Kyle Holm
@thekholm80
Jul 02 2017 04:17
it's one way of passing arguments in urls
Nathan
@clarken1996
Jul 02 2017 04:17
@Ellyria yesss
Kyle Holm
@thekholm80
Jul 02 2017 04:18
@Manish-Giri app.get('/todos/id' this on the other hand becomes a static route
Ellyria
@Ellyria
Jul 02 2017 04:18
You can add the autofocus attribute to the HTML opening tag, @clarken1996. But there are other ways to do it as well.
Manish Giri
@Manish-Giri
Jul 02 2017 04:18
oh okay
got it
ty @thekholm80
CamperBot
@camperbot
Jul 02 2017 04:18
manish-giri sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1238 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Ellyria
@Ellyria
Jul 02 2017 04:19
I want to thank you for doing it, @clarken1996. I can't stand it when a page wants you to type something immediately, but doesn't focus the text box.
CamperBot
@camperbot
Jul 02 2017 04:19
ellyria sends brownie points to @clarken1996 :sparkles: :thumbsup: :sparkles:
:cookie: 270 | @clarken1996 |http://www.freecodecamp.com/clarken1996
Nathan
@clarken1996
Jul 02 2017 04:19
yeah thats what I did but I think because its hidden it doesnt auto
@Ellyria and thank you for your help!
CamperBot
@camperbot
Jul 02 2017 04:19
clarken1996 sends brownie points to @ellyria :sparkles: :thumbsup: :sparkles:
:cookie: 495 | @ellyria |http://www.freecodecamp.com/ellyria
Ellyria
@Ellyria
Jul 02 2017 04:19
You can also use the focus() method on the selector, @clarken1996.
That makes sense. It can't focus on something that isn't visible.
Any time.
Nathan
@clarken1996
Jul 02 2017 04:21
@Ellyria you the mvp it worked!
Ellyria
@Ellyria
Jul 02 2017 04:22
Yay, @clarken1996! Good job!
Nathan
@clarken1996
Jul 02 2017 04:23
okay I am going to get some coffee because I think I have been coding for too long, will probably be off for 20mins. Good luck to everyone
Ellyria
@Ellyria
Jul 02 2017 04:24
Good luck to you, too, @clarken1996. I think I should head to bed. It's after midnight. You all have fun.
wrustancodes
@wrustancodes
Jul 02 2017 04:24
Hey bot
Ross Scarborough
@SourceHorse
Jul 02 2017 04:26
So I set my name and picture to position: relative and z-index:1 so that they would pass over my navbar as you scroll down. What do you think? Neat design or looks like an accident? https://codepen.io/SourceHorse/full/VWQbyb/
Johnny
@JohnnyBizzel
Jul 02 2017 04:35
@SourceHorse So far so good.
Kyle Holm
@thekholm80
Jul 02 2017 04:44
@Manish-Giri x
Manish Giri
@Manish-Giri
Jul 02 2017 04:48
wow
:alien: :fish:
Kyle Holm
@thekholm80
Jul 02 2017 04:48
japan makes some cool stuff
Kyle Holm
@thekholm80
Jul 02 2017 05:03
image.png
I guess I write on a 3rd grade level
that's awesome
Manish Giri
@Manish-Giri
Jul 02 2017 05:05
lol
Kyle Holm
@thekholm80
Jul 02 2017 05:05
looks good, that's all that matters
Manish Giri
@Manish-Giri
Jul 02 2017 05:06
@thekholm80
Kyle Holm
@thekholm80
Jul 02 2017 05:06
that guy's commentary is funny
Manish Giri
@Manish-Giri
Jul 02 2017 05:07
hilarious
Kyle Holm
@thekholm80
Jul 02 2017 05:07
"Bring the fish a UFC contract"
Manish Giri
@Manish-Giri
Jul 02 2017 05:07
dragged away like a united airlines passenger
lol
Kyle Holm
@thekholm80
Jul 02 2017 05:08
lol
Alex
@upinsmok
Jul 02 2017 05:08
im stuck on "Style Text Inputs as Form Controls"
<i class="fa fa-paper-plane">
<button type="submit">Submit</button>
</i>
Kyle Holm
@thekholm80
Jul 02 2017 05:10
which one of those is a text input?
Alex
@upinsmok
Jul 02 2017 05:13
<i class="form-control"> <input type="text" placeholder="cat photo URL" required></i>
<i class="fa fa-paper-plane">
<button type="submit">Submit</button>
</i> is it the one 1st ?
Ravi Kishore Thella
@ravikishorethella
Jul 02 2017 05:14
@upinsmok this is the syntax <button class="...."><i class="....."></i></button>
Kyle Holm
@thekholm80
Jul 02 2017 05:15
the form-control class goes in your input element, not in a <i> tag
Ravi Kishore Thella
@ravikishorethella
Jul 02 2017 05:15
Oh, I didn't read the question properly :smile:
thekholm80 @thekholm80 shakes his head
Kyle Holm
@thekholm80
Jul 02 2017 05:15
@ravikishorethella you just waking up? or up late?
Ravi Kishore Thella
@ravikishorethella
Jul 02 2017 05:16
up late :smile:
Kyle Holm
@thekholm80
Jul 02 2017 05:16
oh wait, you're in the us right?
Indiana?
Ravi Kishore Thella
@ravikishorethella
Jul 02 2017 05:16
yes
Kyle Holm
@thekholm80
Jul 02 2017 05:16
so many people from so many places, it's hard to keep track
Ravi Kishore Thella
@ravikishorethella
Jul 02 2017 05:17
:smile:
Alex
@upinsmok
Jul 02 2017 05:17
<input class="form-control" type="text" placeholder="cat photo URL" required>
<i class="fa fa-paper-plane">
<button class="btn btn-primary" type="submit">Submit</button>
</i>
Kyle Holm
@thekholm80
Jul 02 2017 05:17
getting closer
Alex
@upinsmok
Jul 02 2017 05:17
ohh i put fa fa twice lmao
i just noticed
Ravi Kishore Thella
@ravikishorethella
Jul 02 2017 05:18
no
Kyle Holm
@thekholm80
Jul 02 2017 05:18
you should put your icon inside the button, instead of the button inside the icon
Ravi Kishore Thella
@ravikishorethella
Jul 02 2017 05:18
fa is different from fa-paper-plane
Alex
@upinsmok
Jul 02 2017 05:18
ohh
Ravi Kishore Thella
@ravikishorethella
Jul 02 2017 05:18
I am not wrong
:point_up: July 2, 2017 1:14 AM @upinsmok
Kyle Holm
@thekholm80
Jul 02 2017 05:18
yeah, font awesome requires fa then-the-name-of-the-icon
so like class='fa fa-facebook' or fa fa-twitter
Alex
@upinsmok
Jul 02 2017 05:19
<input class="form-control" type="text" placeholder="cat photo URL" required>
<button class="btn btn-primary" type="submit"><i class="fa fa-paper-plane">Submit</i></button>
Kyle Holm
@thekholm80
Jul 02 2017 05:20
that looks pretty good
i can't remember exactly what all the lesson calls for
Alex
@upinsmok
Jul 02 2017 05:21
my friend was telling me the other day i write code sloppy i dont understand
@thekholm80 thanks i completed the challenge :smile:
CamperBot
@camperbot
Jul 02 2017 05:21
upinsmok sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1239 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Manish Giri
@Manish-Giri
Jul 02 2017 05:21
@thekholm80 uh I hit ctrl-z instead of ctrl-c
Kyle Holm
@thekholm80
Jul 02 2017 05:21
a huge part of writing code is making sure other people can read it
Manish Giri
@Manish-Giri
Jul 02 2017 05:21
now I've got to do the whole px ax and kill thing
fml
Alex
@upinsmok
Jul 02 2017 05:21
@thekholm80 how do i do that
Kyle Holm
@thekholm80
Jul 02 2017 05:22
@Manish-Giri if there's an undo, surely there's a redo?
@upinsmok there are lots of style guides out there
Alex
@upinsmok
Jul 02 2017 05:22
ok il search up "style guides"
Kyle Holm
@thekholm80
Jul 02 2017 05:22
sorry i'd share one but i can't find it in my bookmarks
Alex
@upinsmok
Jul 02 2017 05:23
@thekholm80 no its fine i just wanted a reference point
Kyle Holm
@thekholm80
Jul 02 2017 05:23
@Manish-Giri ctrl y
is redo
Manish Giri
@Manish-Giri
Jul 02 2017 05:24
uh
I know that
but
Kyle Holm
@thekholm80
Jul 02 2017 05:24
oh in the terminal?
Manish Giri
@Manish-Giri
Jul 02 2017 05:24
how would you undo ctrl-z
terminal
yeah
Kyle Holm
@thekholm80
Jul 02 2017 05:24
oops
Control+Z (control character susp) sends SIGTSTP to a foreground application, effectively putting it in the background, suspended. This is useful if you need to break out of something like an editor to go and grab some data you needed. You can go back into the application by running fg (or %x where x is the job number as shown in jobs).
Manish Giri
@Manish-Giri
Jul 02 2017 05:25
yeah that effectively creates a zombie node process in port 3000
so next time you listen on that port
you get ERROR: EADDRESS IN USE
or sth like that
Kyle Holm
@thekholm80
Jul 02 2017 05:25
yikes
Manish Giri
@Manish-Giri
Jul 02 2017 05:26
learnt that the hard way
then you search for that node process
and kill it
px ax | grep node
gives you the process id
Kyle Holm
@thekholm80
Jul 02 2017 05:26
ax not aux?
Manish Giri
@Manish-Giri
Jul 02 2017 05:26
then kill pid
yeah aux sorry
must use nodemon
Kyle Holm
@thekholm80
Jul 02 2017 05:27
i love it
Manish Giri
@Manish-Giri
Jul 02 2017 05:27
why won't this guy use nodemon idk
Kyle Holm
@thekholm80
Jul 02 2017 05:27
install and forget it
i just set a script in my package.json for "start": "nodemon server.js"
no muss, no fuss
Manish Giri
@Manish-Giri
Jul 02 2017 05:29
for some reason
I have nodemon installed globally
dafuq
Kyle Holm
@thekholm80
Jul 02 2017 05:29
oh i do
it's not a requirement to run my app, it just makes my life easier. so i installed in globally
Manish Giri
@Manish-Giri
Jul 02 2017 05:32
I had made an array of 10 items by POST requests
all gone
:sob:
Kyle Holm
@thekholm80
Jul 02 2017 05:33
sorry
Manish Giri
@Manish-Giri
Jul 02 2017 05:34
meh
I guess it's better than undoing 95000 zombie nodes
@thekholm80 GSD
Kyle Holm
@thekholm80
Jul 02 2017 05:39
lol
Manish Giri
@Manish-Giri
Jul 02 2017 05:51
I remember gitter was being open sourced
or was about to be
it'd be nice to build some cool extensions to it
Kyle Holm
@thekholm80
Jul 02 2017 05:52
i want custom fonts and stuff
Manish Giri
@Manish-Giri
Jul 02 2017 05:55
I'd like to be able to block people
Kyle Holm
@thekholm80
Jul 02 2017 05:55
at first i thought you said stalk people
Manish Giri
@Manish-Giri
Jul 02 2017 05:55
lol
Darren
@DarrenfJ
Jul 02 2017 06:06
hey guys!
kust popping in to blanket you with kudos then off to sleep
thanks @Manish-Giri @thekholm80
CamperBot
@camperbot
Jul 02 2017 06:06
darrenfj sends brownie points to @manish-giri and @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1241 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:star2: 6170 | @manish-giri |http://www.freecodecamp.com/manish-giri
Manish Giri
@Manish-Giri
Jul 02 2017 06:06
:cookie:
ty @DarrenfJ
CamperBot
@camperbot
Jul 02 2017 06:06
manish-giri sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1871 | @darrenfj |http://www.freecodecamp.com/darrenfj
Ransike Randeni
@ransikerandeni
Jul 02 2017 06:23
Bla.JPG
???? Why can't I replace with j with H
??
CallMeOrange
@EgnaroDev
Jul 02 2017 06:25
@ransikerandeni Try refreshing
Well strings is immutable
So You have to do that way like in second exampe
Abdallah Ramadan Awwad
@arawwad
Jul 02 2017 06:26
hello free code camp i just finished show local weather challenge .. please tell me what you think https://codepen.io/arawwad/full/PjREjq/
CallMeOrange
@EgnaroDev
Jul 02 2017 06:27
var myStr = "Bob";

myStr = "Job";
This works because second variable overwrite it
Viktor Tiutiun
@vittorioVT
Jul 02 2017 06:28
hello everybody
Ransike Randeni
@ransikerandeni
Jul 02 2017 06:28
I think there is something wrong with that challenge. I had to remove the [0] and had to type again "Hello World" without replacing one letter @MCTwoDigitZero
??
CallMeOrange
@EgnaroDev
Jul 02 2017 06:28
@arawwad looks great, you could add designs
@ransikerandeni Like challenge said, strings is immutable meaning you cant change its value
Ransike Randeni
@ransikerandeni
Jul 02 2017 06:28
@MCTwoDigitZero Ahh ok got it Thanks :smile:
CamperBot
@camperbot
Jul 02 2017 06:28
ransikerandeni sends brownie points to @mctwodigitzero :sparkles: :thumbsup: :sparkles:
:cookie: 423 | @mctwodigitzero |http://www.freecodecamp.com/mctwodigitzero
CallMeOrange
@EgnaroDev
Jul 02 2017 06:28
But you can make another variable that overwrite it
No problem
Abdallah Ramadan Awwad
@arawwad
Jul 02 2017 06:29
@MCTwoDigitZero ok thank you i will try to improve the design
CamperBot
@camperbot
Jul 02 2017 06:29
arawwad sends brownie points to @mctwodigitzero :sparkles: :thumbsup: :sparkles:
:cookie: 424 | @mctwodigitzero |http://www.freecodecamp.com/mctwodigitzero
Viktor Tiutiun
@vittorioVT
Jul 02 2017 06:32
@arawwad Why shows only the weather, not the city and the country?
Abdallah Ramadan Awwad
@arawwad
Jul 02 2017 06:34
@vittorioVT thanks for your reply .. but should I add location . it didnt say so in the challenge
CamperBot
@camperbot
Jul 02 2017 06:34
arawwad sends brownie points to @vittoriovt :sparkles: :thumbsup: :sparkles:
:cookie: 756 | @vittoriovt |http://www.freecodecamp.com/vittoriovt
Abdallah Ramadan Awwad
@arawwad
Jul 02 2017 06:34
but i will see if i can add it
Viktor Tiutiun
@vittorioVT
Jul 02 2017 06:36
@arawwad better if you shall add
Viktor Tiutiun
@vittorioVT
Jul 02 2017 06:47
@arawwad you should add id="city" in html and this code:
var city = data.timezone;
$("#city").html(city);
Yonatan
@Yonatan1
Jul 02 2017 06:50
can anyone figure out why there is a space between my backgrounds??? https://codepen.io/YonatanG/pen/XgMOxQ?editors=1100
Abdallah Ramadan Awwad
@arawwad
Jul 02 2017 06:50
ok i will .. thanks again for taking care :D
Viktor Tiutiun
@vittorioVT
Jul 02 2017 06:50
@arawwad :+1:
ParadoxStephen
@StephenLover
Jul 02 2017 06:52

anyone can help me? how to set the font-size to 16px for the first paragraph and second paragraph?it requires me to not to add any attributes on the second paragraph

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

<h2 class="red-text">我家的猫咪</h2>

<p class="red-text">在大家心目中,猫是慵懒的可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,怎能不惹人怜爱。</p>

<p>养动物有的时候,就是介于爱与恨之间,当你钦羡别人萌宠这么可爱的时候,你一定没有想过,狗狗和猫猫会到处拉屎,甚至会屯老鼠,啃鞋子,用爪子爬门,你不理它,它就挠你,你要对它发脾气,它会比你更来劲。所以,狗猫慎入,没有一定的准备,切勿随便去侍养动物。它们一旦认定你了,你就是它们的主人,如果你抛弃它们,它们必定心中重创。</p>

Viktor Tiutiun
@vittorioVT
Jul 02 2017 06:54
@StephenLover .red-text {...;}
p {....;}
@Yonatan1 you need grid (container + rows + columns)
@Yonatan1 you should put all your code in div class="container" besides navbar.
Viktor Tiutiun
@vittorioVT
Jul 02 2017 07:00
@Yonatan1 for example: <div class="container">
<div class="row">
<div class="section1" id="about">
<h1>ABOUT<h1>
</div>
</div>
<div class="row">
/section 2/.....
</div>
ParadoxStephen
@StephenLover
Jul 02 2017 07:09
thanks bro
madhuri soni
@sonimadhuri
Jul 02 2017 07:10
@Yonatan1 the white space is appearing because its the margin for the h1 elements set margin:0px; for your h1 elemts and whenever you encounter any extra spaces like this inspecting the elements will clearly show the reason(like padding,margin) for the space .
Yonatan
@Yonatan1
Jul 02 2017 07:11
@vittorioVT It's still there... https://codepen.io/YonatanG/pen/XgMOxQ?editors=1100
@sonimadhuri Thanks so much!!
CamperBot
@camperbot
Jul 02 2017 07:12
yonatan1 sends brownie points to @sonimadhuri :sparkles: :thumbsup: :sparkles:
:cookie: 303 | @sonimadhuri |http://www.freecodecamp.com/sonimadhuri
madhuri soni
@sonimadhuri
Jul 02 2017 07:13
@Yonatan1 my pleasure :+1:
GeorgeII
@GeorgeII
Jul 02 2017 07:16
image.png
Hello guys. I've added comparison to my if condition and my page freezes all the time I open Freecodecamp. Help please
Manish Giri
@Manish-Giri
Jul 02 2017 07:24
@GeorgeII try to put braces around for
to indicate which lines should be in the loop
mankaa23
@mankaa23
Jul 02 2017 07:41
need help guys
dont know what am doing wrong
<script>
$(document).ready(function() {
$("button").addClass ("animated");
$(".btn").addClass ("shake ");
$("#target1").addClass ("btn-primary");

});
</script>
and this is the error I'm getting
Only add one class with each of your three selectors.
Viktor Tiutiun
@vittorioVT
Jul 02 2017 07:43
@mankaa23 it looks correct try refresh your browser
mankaa23
@mankaa23
Jul 02 2017 07:43
ok '
yea error is still there
Viktor Tiutiun
@vittorioVT
Jul 02 2017 07:47

@mankaa23 it's correct code:
<script>
$(document).ready(function() {

$("button").addClass("animated");
$(".btn").addClass("shake");
$("#target1").addClass("btn-primary");
});
</script>
find the differences :smile:

mankaa23
@mankaa23
Jul 02 2017 07:48
thanks @vittorioVT
CamperBot
@camperbot
Jul 02 2017 07:48
mankaa23 sends brownie points to @vittoriovt :sparkles: :thumbsup: :sparkles:
:cookie: 757 | @vittoriovt |http://www.freecodecamp.com/vittoriovt
Viktor Tiutiun
@vittorioVT
Jul 02 2017 07:48
@mankaa23 :+1:
Yonatan
@Yonatan1
Jul 02 2017 08:01
Can anyone help me understand why my data-scroll isn't working?? I tried everything.. https://codepen.io/YonatanG/pen/dRmdYo?editors=1000
madhuri soni
@sonimadhuri
Jul 02 2017 08:08
@Yonatan1
It is working
Yonatan
@Yonatan1
Jul 02 2017 08:09
@sonimadhuri I'm sorry not scrollspy I meant page-scroll. Where clicking the pills on top right will scroll to the corresponding page
Viktor Tiutiun
@vittorioVT
Jul 02 2017 08:10
@Yonatan1 you need ancors don't data-scroll
Yonatan
@Yonatan1
Jul 02 2017 08:13
@vittorioVT I have anchors
Viktor Tiutiun
@vittorioVT
Jul 02 2017 08:15
@Yonatan1 yes i see but they don't works
Yonatan
@Yonatan1
Jul 02 2017 08:15
@vittorioVT Why not
madhuri soni
@sonimadhuri
Jul 02 2017 08:15
@Yonatan1 removing data-toggle="pills"from anchor tag makes it work
Yonatan
@Yonatan1
Jul 02 2017 08:15
@sonimadhuri Yea I know but then it doesnt look good.. I dont understand why removing that makes it work...
Also its more of a jump then a scroll....
I want to have the pills toggle as well as it scroll, but not jump
It seems to me like all my code is correct I dont get it...
Viktor Tiutiun
@vittorioVT
Jul 02 2017 08:16
@Yonatan1 you need <section id="portfolio"> ..... </section>
Huỳnh Trần Khanh
@khanh2003
Jul 02 2017 08:20
Can you help me with this? When screen width <= 1024px the top nav bar disappears.
Viktor Tiutiun
@vittorioVT
Jul 02 2017 08:25
@khanh2003 you should add classes -lg- , -sm- and -xs- besides -md- to your div
Huỳnh Trần Khanh
@khanh2003
Jul 02 2017 08:26
@vittorioVT oh really? i am not using bootstrap :(
Viktor Tiutiun
@vittorioVT
Jul 02 2017 08:27
@khanh2003 sorry my bad
madhuri soni
@sonimadhuri
Jul 02 2017 08:29
@Yonatan1 see if this is what you want to acheive: https://codepen.io/madhurisoni12/pen/MoVQoZ?editors=1000 so that i can tell you the changes
Viktor Tiutiun
@vittorioVT
Jul 02 2017 08:30
@khanh2003 you should add 2-3 @media to your @media (min-width: 700px)
Jerard Delrosario
@jrardd
Jul 02 2017 08:36

Hi guys can you check if my project is functioning properly? Just want feedback from people in different locations lol

https://codepen.io/jrard/pen/ZyxQXr?editors=1100

Yonatan
@Yonatan1
Jul 02 2017 08:36
@sonimadhuri That's almost perfect, I see that you added the tab-pane to the actual sections, I didnt think you needed to do that. The only other thing is that its jumping to the page instead of smoothly scrolling. Here's an example of pretty much exactly what I want it to look like. https://blackrockdigital.github.io/startbootstrap-scrolling-nav/
Viktor Tiutiun
@vittorioVT
Jul 02 2017 08:39
@jrardd it's beautiful :smile:
Yonatan
@Yonatan1
Jul 02 2017 08:41
@sonimadhuri also the page you made now longer manually scrolls...
Loris Hanck
@Pouletcoq
Jul 02 2017 08:41
How do i change the brightness of the background-color only and not the brightness of borders ? :D
@jrardd It's cool, peraps you should make the F and C bigger :P
madhuri soni
@sonimadhuri
Jul 02 2017 08:45
@Yonatan1 this is how pills work there wont be any scroll
Jerard Delrosario
@jrardd
Jul 02 2017 08:47
@vittorioVT @Pouletcoq Thanks! and ok I will lol
CamperBot
@camperbot
Jul 02 2017 08:47
jrardd sends brownie points to @vittoriovt and @pouletcoq :sparkles: :thumbsup: :sparkles:
:cookie: 293 | @pouletcoq |http://www.freecodecamp.com/pouletcoq
:cookie: 758 | @vittoriovt |http://www.freecodecamp.com/vittoriovt
Yonatan
@Yonatan1
Jul 02 2017 08:48
@sonimadhuri Look at this page the pills are being toggled while scrolling https://blackrockdigital.github.io/startbootstrap-scrolling-nav/
madhuri soni
@sonimadhuri
Jul 02 2017 08:49
@Yonatan1 but why do you think they have used pills
Viktor Tiutiun
@vittorioVT
Jul 02 2017 08:50
@Yonatan1 @sonimadhuri why do you need so much "container-fluid" if you can put everything in one?
Yonatan
@Yonatan1
Jul 02 2017 08:53
@sonimadhuri Ok I took away the pills and everything is working except for it scrolling smoothly instead of jumping thats the last thing how do i fix that!? https://codepen.io/YonatanG/pen/dRmdYo?editors=1000
@vittorioVT So I can have different amount of rows on each page
pault
@angmar33
Jul 02 2017 08:56
@angmar33
hello
Use Font Awesome to add a thumbs-up icon to your like button by giving it an i element with the classes fa and fa-thumbs-up.
where i should place it?
Viktor Tiutiun
@vittorioVT
Jul 02 2017 08:58
@Yonatan1 you can add rows as much as you like in one container
Yonatan
@Yonatan1
Jul 02 2017 09:00
@vittorioVT idk i see other people do that maybe its just for organization
madhuri soni
@sonimadhuri
Jul 02 2017 09:01
@Yonatan1 you havent added those files that have the implementation of the page scroll class try googling about that.
Yonatan
@Yonatan1
Jul 02 2017 09:04
@sonimadhuri i did it didnt help... https://codepen.io/YonatanG/pen/dRmdYo?editors=1000
Viktor Tiutiun
@vittorioVT
Jul 02 2017 09:04
@Yonatan1 on page there should be one container, so the official documentation says, but as you wish http://getbootstrap.com/css/#grid
Yonatan
@Yonatan1
Jul 02 2017 09:04
@vittorioVT ok ill look into it
@sonimadhuri I really have no clue what the problem could be
madhuri soni
@sonimadhuri
Jul 02 2017 09:07
@Yonatan1 found it!!
Yonatan
@Yonatan1
Jul 02 2017 09:07
@sonimadhuri no way!?
madhuri soni
@sonimadhuri
Jul 02 2017 09:08
@Yonatan1 in the page that you sent they had specified some files to be included in order to make it work you havent added those
those files have the implementation of the page-scroll class
Yonatan
@Yonatan1
Jul 02 2017 09:08
@sonimadhuri but i added them check my last codepen
Basitomania
@Basitomania
Jul 02 2017 09:09

Please what's wrong with this js code? function convertToF(celsius) {
var fahrenheit (celsius*(9/5)) + 32;
// Only change code below this line
if ( type of fahrenheit! =='undefined' { return fahrenheit;}

// Only change code above this line
else { return 'fahrenheit not defined';}
}

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

madhuri soni
@sonimadhuri
Jul 02 2017 09:09
https://codepen.io/madhurisoni12/pen/wemyQX?editors=1010 the js section has that implementation .now it works perfectly
madhuri soni
@sonimadhuri
Jul 02 2017 09:14
@Yonatan1 is it working now??
Yonatan
@Yonatan1
Jul 02 2017 09:15
@sonimadhuri WOOOOOOHHHHHH!!!!!!!!!!
@sonimadhuri THANK YOU SO MUCH
CamperBot
@camperbot
Jul 02 2017 09:15
yonatan1 sends brownie points to @sonimadhuri :sparkles: :thumbsup: :sparkles:
:cookie: 304 | @sonimadhuri |http://www.freecodecamp.com/sonimadhuri
madhuri soni
@sonimadhuri
Jul 02 2017 09:16
@Yonatan1 i hope you understood why it wasnt working previously
Yonatan
@Yonatan1
Jul 02 2017 09:17
@sonimadhuri dont really understand lol :(
@sonimadhuri Im guessing that javascript code needed to be there for it to work but not sure why
madhuri soni
@sonimadhuri
Jul 02 2017 09:22
@Yonatan1 see when u used red-text class in your previous lessons on FCC you defined its behaviour like color:red but when you used the page-scroll class you did not specify what it has to do because its behaviour is already defined in a file.your pen did not have that file that is the reason it wasnt working previously .but later on in the js section the code that you added is nothing but the page scroll class definition.
@Basitomania you dont need the if else .just assign fahrenheit that equation and reurn fahrenheit
Yonatan
@Yonatan1
Jul 02 2017 09:24
@sonimadhuri wow thanks so much for helping me
CamperBot
@camperbot
Jul 02 2017 09:24
yonatan1 sends brownie points to @sonimadhuri :sparkles: :thumbsup: :sparkles:
:warning: yonatan1 already gave sonimadhuri points
madhuri soni
@sonimadhuri
Jul 02 2017 09:24
@Yonatan1 :smile:
Cameron
@BaconTheRabbit
Jul 02 2017 09:24
  if (navigator.geolocation) {
  navigator.geolocation.getCurrentPosition(function(position) {
    $.get("https://api.darksky.net/forecast/60cf11d75cffb69dd7dd6bb5bf290f42/37.8267,-122.4233", function( data ) {
  $( "#data" ).html( "test" );
});
  });

}/
am i missing something here?
Yonatan
@Yonatan1
Jul 02 2017 09:25
@sonimadhuri I just have to ask you one more little thing and then its really perfect. When clicking on the portfolio tab it scrolls down passed the portfolio text, how can I stop it before??
Tom Donegan
@tomdonegan
Jul 02 2017 09:25
Hi guys if I my for loop is
whoops
(var i=0; i < arr.length; i++)
do I check the length of that array using
(var j =0;j<arr.length[i]; j++)
or arr[i].length?
Cameron
@BaconTheRabbit
Jul 02 2017 09:28
@BaconTheRabbit it's pinging the api. but nothing inside the $.get() runs
Manish Giri
@Manish-Giri
Jul 02 2017 09:28
j < arr[i].length
@tomdonegan
Tom Donegan
@tomdonegan
Jul 02 2017 09:29
Thanks @Manish-Giri, on with the struggle.
CamperBot
@camperbot
Jul 02 2017 09:29
tomdonegan sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6172 | @manish-giri |http://www.freecodecamp.com/manish-giri
Manish Giri
@Manish-Giri
Jul 02 2017 09:29
:+1:
Basitomania
@Basitomania
Jul 02 2017 09:40
@sonimadhuri please I still don't get it
madhuri soni
@sonimadhuri
Jul 02 2017 09:43

@Basitomania

   fahrenheit =(celsius*(9/5)) + 32;
  return fahrenheit;

is enough because the 1st statement calculates fahrenheit value and the 2nd one returns the calculated value

Basitomania
@Basitomania
Jul 02 2017 09:47
Okay, i'll check
moatazelamen
@MoatazElamen
Jul 02 2017 09:47

hi guys .. i have a prob
var myObj = {
gift: "pony",
pet: "kitten",
bed: "sleigh" };

function checkObj(checkProp) {
// Your Code Here

if (myObj.hasOwnProperty("checkProp")=== true)
return myObj.checkProp;
else if (myObj.hasOwnProperty("checkProp")===false){
return "Not Found" ; }
}
// Test your code by modifying these values
checkObj("gift");
Instructions:

Modify the function checkObj to test myObj for checkProp. If the property is found, return that property's value. If not, return "Not Found".

where is my fault ?
mitron6
@mitron6
Jul 02 2017 09:49

@MoatazElamen

if (myObj.hasOwnProperty("checkProp")=== true)
return myObj.checkProp;

Problem above.

@MoatazElamen You are not checking for the property named "checkProp" but for the property having the value equal to the contents of the variable checkProp.
@MoatazElamen Does that answer your question or do you need more help?
moatazelamen
@MoatazElamen
Jul 02 2017 09:51
didnt got it
mitron6
@mitron6
Jul 02 2017 09:51
@MoatazElamen Do you know how to check for a value in a variable?
@MoatazElamen What is the name of this challenge?
moatazelamen
@MoatazElamen
Jul 02 2017 09:51
Testing Objects for Properties
mitron6
@mitron6
Jul 02 2017 09:53
@MoatazElamen Use myObj.hasOwnProperty(checkProp) instead of myObj.hasOwnProperty("checkProp")
Tom Donegan
@tomdonegan
Jul 02 2017 09:53
Because check prop is not a string
mitron6
@mitron6
Jul 02 2017 09:53
@MoatazElamen That solves half the problem.
@MoatazElamen You still need to fix return myObj.checkProp; Can you do that now?
moatazelamen
@MoatazElamen
Jul 02 2017 09:54
tried to do this :D .. after your 1st answer up there .. but still have the same prob
mitron6
@mitron6
Jul 02 2017 09:55
@MoatazElamen Right. You still need to fix return myObj.checkProp;
Tom Donegan
@tomdonegan
Jul 02 2017 09:55
@MoatazElamen remember you want to return the value of the proprty, not the property
mitron6
@mitron6
Jul 02 2017 09:56
@MoatazElamen If the variable checkProp was equal to middle, you'd get the answer if you said return myObj.middle but you can't do that. What can you do?
Abdallah Ramadan Awwad
@arawwad
Jul 02 2017 09:56
@MoatazElamen remove the quotes in checkProp
if (myObj.hasOwnProperty(checkProp)=== true)
mitron6
@mitron6
Jul 02 2017 09:58
@MoatazElamen I can give you the rest of the answer but I want you to understand the concept.
@MoatazElamen Imagine that a variable called checkProp has the value "middle".
You can either return myObj.middle or return myObj[checkProp]
Does that make sense?
moatazelamen
@MoatazElamen
Jul 02 2017 10:00
ahaaa
Tom Donegan
@tomdonegan
Jul 02 2017 10:00
I got stuck there too @MoatazElamen
Kicked myself when I saw it
mitron6
@mitron6
Jul 02 2017 10:00
@MoatazElamen So does it work now?
moatazelamen
@MoatazElamen
Jul 02 2017 10:00
@mitron6 thanks <3
CamperBot
@camperbot
Jul 02 2017 10:00
moatazelamen sends brownie points to @mitron6 :sparkles: :thumbsup: :sparkles:
:cookie: 758 | @mitron6 |http://www.freecodecamp.com/mitron6
mitron6
@mitron6
Jul 02 2017 10:01
@MoatazElamen The instructions on this challenge are a little unclear.
moatazelamen
@MoatazElamen
Jul 02 2017 10:05
its Done
thanks <3
Tom Donegan
@tomdonegan
Jul 02 2017 10:06
Also @MoatazElamen for future reference. As the return had to be either true or false, you did not need the else if.
var myObj = {
gift: "pony",
pet: "kitten",
bed: "sleigh" };
function checkObj(checkProp) {
// Your Code Here
if (myObj.hasOwnProperty(checkProp)=== true)
return myObj[checkProp];{
return "Not Found" ; }
}
// Test your code by modifying these values
checkObj("gift");
Tis is because the return can only be "Not Found" if it wasn't true
moatazelamen
@MoatazElamen
Jul 02 2017 10:08
aha .. i know this but
when im stuck .. i try useless ways :D
Tom Donegan
@tomdonegan
Jul 02 2017 10:08
I'm the same
I'm only a few tasks ahead of that one
mitron6
@mitron6
Jul 02 2017 10:08
@MoatazElamen These are not useless. Often you have to experiment to find the answer.
Pravin Mache
@pravinmache
Jul 02 2017 12:00
hi , Number to roman code my string (roman number) is getting truncated if length is more than 5 chars

function convertToRoman(num) {

var string = '';

while(num !== 0){
if(num >= 1000){

num = num - 1000;
string = string + 'M';

}
else if(num >= 900 && num < 1000){
num = num - 900;
string= string + 'CM';

}

else if(num >= 500 && num < 900){
num = num - 500;
string= string + 'D';

}
else if(num < 500 && num >=400) {

num = num - 400;
string = string + 'CD';

}

else if(num >= 100 && num <400){
num = num - 100;
string = string + 'C';

}

else if(num >=90 && num < 100){

num = num -90;
string = string = 'XC';

}

else if(num >= 50 && num < 90){

num = num - 50;
string = string + 'L';

}

else if(num >= 40 && num < 50){

num = num -40;
string = string + 'XL';

}

else if(num >= 10 && num < 40){

num = num - 10;
string = string + 'X';

}

else if(num == 9){

num = num - 9;
string = string + 'IX';

}

else if(num >=5 && num < 9){
num = num - 5;
string = string + 'V';

}
else if(num == 4){

num = num - 4;
string= string + 'IV';

}
else if(num ==3){

num = num - 3;
string = string + 'III';

}

else if(num == 2){

num = num - 2;
string = string + 'II';

}

else{

num = num - 1;
string = string + 'I';

}

}

return string;

}

convertToRoman(36);

KinderPreet Singh
@kindercappy
Jul 02 2017 12:13
What are the security risks if I make my twitch API key public on codepen?
korzo
@korzo
Jul 02 2017 12:13
@kindercappy That anybody can reuse your api key
KinderPreet Singh
@kindercappy
Jul 02 2017 12:14
@korzo but is it something to worry about?
korzo
@korzo
Jul 02 2017 12:16
@kindercappy I think worst case is that your keys will run out of quota
KinderPreet Singh
@kindercappy
Jul 02 2017 12:18
@korzo okay. nothing major. thanks
CamperBot
@camperbot
Jul 02 2017 12:18
kindercappy sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 206 | @korzo |http://www.freecodecamp.com/korzo
jzx
@lightforme
Jul 02 2017 12:33
where is Build a Simon Game 's audio?
Jonathan Cunanan
@jcunanan05
Jul 02 2017 12:34

hello newbie here just finished the truncate string.. i was just thinking on how can i improve my code here?

function truncateString(str, num) {
  if (num >= str.length) {
    return str;
  }

  var trimmedWord = str.slice(0,num).split(' ');
  var originalWord = str.split(' ');
  var result = [];
  for (var i = 0; i < trimmedWord.length; i++) {

    if (trimmedWord[i] === originalWord[i]) {
      result.push(trimmedWord[i]);
    }

  }

  if(trimmedWord.length === 1) {
    return str.slice(0,num) + '...';
  }

  return result.join(' ') + '...';
}

truncateString("A-tisket a-tasket A green and yellow basket", 11);

thanks campers

jzx
@lightforme
Jul 02 2017 12:35
where is Build a Simon Game project's audio ?somebody know?
@teevik OK ,thanks
CamperBot
@camperbot
Jul 02 2017 12:36
lightforme sends brownie points to @teevik :sparkles: :thumbsup: :sparkles:
:cookie: 188 | @teevik |http://www.freecodecamp.com/teevik
teevik
@teevik
Jul 02 2017 12:39
@jcunanan05 Don't think you need to use split and for loops
1 sec, i'll check what i did
korzo
@korzo
Jul 02 2017 12:40
@jcunanan05 You made it very complicated. In general, you have to eliminate border cases and the return sliced string
Abdenour
@AfroAbdEnour
Jul 02 2017 12:41
did freecodecamp.com changed to frecodecamp.org or is it a clone ?
teevik
@teevik
Jul 02 2017 12:41
Yeah, all you need is if statements
@AfroAbdEnour no idea, looks like it's the same site just different domain
Yeah, it's being changed
freeCodeCamp/freeCodeCamp#15523
Abdenour
@AfroAbdEnour
Jul 02 2017 12:45
yes it's thnx, my bad i forgot my password xD
Jonathan Cunanan
@jcunanan05
Jul 02 2017 12:50
thanks @korzo uhm how to eliminate border case?
CamperBot
@camperbot
Jul 02 2017 12:50
jcunanan05 sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 207 | @korzo |http://www.freecodecamp.com/korzo
Jonathan Cunanan
@jcunanan05
Jul 02 2017 12:50
thanks @teevik if statements and split only?
CamperBot
@camperbot
Jul 02 2017 12:50
jcunanan05 sends brownie points to @teevik :sparkles: :thumbsup: :sparkles:
:cookie: 189 | @teevik |http://www.freecodecamp.com/teevik
Jonathan Cunanan
@jcunanan05
Jul 02 2017 12:50
sorry slice
*slice :))
korzo
@korzo
Jul 02 2017 12:51
@jcunanan05
  if (str.length <= num) {
    return str;
  }  
  num = num > 4 ? num - 3 : num;
teevik
@teevik
Jul 02 2017 12:52
Yeah
mithun
@dmithun
Jul 02 2017 12:55

function confirmEnding(str, target) {
// "Never give up and good luck will find you."
// -- Fstalcor
var x=str.slice(-1);
return x===target;
}

confirmEnding("Bastian", "n");

mithun
@dmithun
Jul 02 2017 13:00
how am i going to compare between this two words("sesame" & "same") in this chellenge ?
BruceHa
@BruceHa
Jul 02 2017 13:06
somebody can help me>?
Oliver Webb
@Ollie15
Jul 02 2017 13:09
Anyone on profile lookup javascript challenge looking for someone to pair code with?
mithun
@dmithun
Jul 02 2017 13:10
have you stuck in this task @Ollie15 ?????
Oliver Webb
@Ollie15
Jul 02 2017 13:11
@dmithun haven't started it want to do it with someone looks tricky
Manish Giri
@Manish-Giri
Jul 02 2017 13:11
@dmithun how many characters is "same"
Jonathan Cunanan
@jcunanan05
Jul 02 2017 13:15
OHH! I get I now thanks so much @korzo
CamperBot
@camperbot
Jul 02 2017 13:15
jcunanan05 sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:warning: jcunanan05 already gave korzo points
korzo
@korzo
Jul 02 2017 13:16
@jcunanan05 Glad to help
Jonathan Cunanan
@jcunanan05
Jul 02 2017 13:18
@dmithun you'll have to use substr reversely
Greta Piliponytė
@gpiliponyte
Jul 02 2017 13:38
Sooo guys :D How do I set the text in a button to center (text-align : center does not work :/)
Dusan Sacha
@DusanSacha
Jul 02 2017 13:39
@gpiliponyte Hi, what do you mean by that? <button>some text</button> is not centered?
Greta Piliponytė
@gpiliponyte
Jul 02 2017 13:39
@DusanSacha I added custom width and height and yeah ... :D it's not centered anymore
May Kittens Devour Your Soul
@diomed
Jul 02 2017 13:40
@gpiliponyte give it a class center
and add to that class in css property
margin: 0 auto;
shivam gupta
@shivamg11000
Jul 02 2017 13:40
@gpiliponyte try with giving padding to it
May Kittens Devour Your Soul
@diomed
Jul 02 2017 13:40
what good will padding do? :unamused:
shivam gupta
@shivamg11000
Jul 02 2017 13:41
@diomed it can used to cetner text
horizontally / vetically both
May Kittens Devour Your Soul
@diomed
Jul 02 2017 13:42
don't call us, we'll call you
RickArora
@RickArora
Jul 02 2017 13:42
Guys for the random quote project do we have to use an API or just an onlclick function which goes through an array of quotes ?
shivam gupta
@shivamg11000
Jul 02 2017 13:43
@RickArora you can choose from both
james umali
@indefinite0212
Jul 02 2017 14:04
Hello World :earth_asia:
Altin Rrahmani
@DevKosov
Jul 02 2017 14:05
Hello James
Rafael
@ralph22
Jul 02 2017 14:06
hello James
Darren
@DarrenfJ
Jul 02 2017 14:11
morning fCC
Altin Rrahmani
@DevKosov
Jul 02 2017 14:12
Hey Darren
Darren
@DarrenfJ
Jul 02 2017 14:12
@diomed diomed buddy
@DevKosov slim shadey!
@indefinite0212 james! hello james
Kyle Holm
@thekholm80
Jul 02 2017 14:14
good morning folks
Altin Rrahmani
@DevKosov
Jul 02 2017 14:14
Morning Kyle
Darren
@DarrenfJ
Jul 02 2017 14:14
@thekholm80 hey buddy
quiet in the ole tumbleweed town...
kudos and thanks yous and the ever shrinking brownie to you all for volunteering and helping out.. imma go watch coding vids and drink :coffee:
james umali
@indefinite0212
Jul 02 2017 14:16
hey @DarrenfJ @DevKosov @thekholm80 :smile:
Kyle Holm
@thekholm80
Jul 02 2017 14:17
:wave:
Darren
@DarrenfJ
Jul 02 2017 14:17
thanks @thekholm80 @DevKosov @indefinite0212 @diomed @shivamg11000 @korzo @ralph22
CamperBot
@camperbot
Jul 02 2017 14:17
darrenfj sends brownie points to @thekholm80 and @devkosov and @indefinite0212 and @diomed and @shivamg11000 and @korzo and @ralph22 :sparkles: :thumbsup: :sparkles:
:warning: @ralph22's account is not linked with freeCodeCamp. Please visit the settings and link your GitHub account.
:cookie: 280 | @devkosov |http://www.freecodecamp.com/devkosov
:star2: 1725 | @indefinite0212 |http://www.freecodecamp.com/indefinite0212
:star2: 1242 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:cookie: 208 | @korzo |http://www.freecodecamp.com/korzo
:cookie: 344 | @shivamg11000 |http://www.freecodecamp.com/shivamg11000
:star2: 5134 | @diomed |http://www.freecodecamp.com/diomed
Darren
@DarrenfJ
Jul 02 2017 14:17
see in a bit
Kyle Holm
@thekholm80
Jul 02 2017 14:17
@DarrenfJ thank you!
CamperBot
@camperbot
Jul 02 2017 14:17
thekholm80 sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1872 | @darrenfj |http://www.freecodecamp.com/darrenfj
Altin Rrahmani
@DevKosov
Jul 02 2017 14:18
@DarrenfJ thank you :)
CamperBot
@camperbot
Jul 02 2017 14:18
devkosov sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1873 | @darrenfj |http://www.freecodecamp.com/darrenfj
james umali
@indefinite0212
Jul 02 2017 14:18
@DarrenfJ thanks!
CamperBot
@camperbot
Jul 02 2017 14:18
indefinite0212 sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1874 | @darrenfj |http://www.freecodecamp.com/darrenfj
james umali
@indefinite0212
Jul 02 2017 14:25
goodnight everyone
Altin Rrahmani
@DevKosov
Jul 02 2017 14:26
lol night
Kyle Holm
@thekholm80
Jul 02 2017 14:26
@indefinite0212 g'night
Mayank Gupta
@mayankgupta02
Jul 02 2017 14:27
Hello, I'm having problem with my random quote machine (twitter button). The button works the first time. However, when I generate a new quote without refreshing the page, twitter displays the initial quote and not the new one. Any help would be appreciated, thank you! Link to my project: https://codepen.io/mayankgupta02/pen/WOMBjK?editors=0010
korzo
@korzo
Jul 02 2017 14:33
@mayankgupta02 Because you are creating twitter buttons listeners on every quote change.
Move you twitter button function out of #getMessage event
Mayank Gupta
@mayankgupta02
Jul 02 2017 14:38
Thank you so much @korzo! But I don't fully understand why I had to do that
CamperBot
@camperbot
Jul 02 2017 14:38
mayankgupta02 sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 209 | @korzo |http://www.freecodecamp.com/korzo
May Kittens Devour Your Soul
@diomed
Jul 02 2017 14:41
.
korzo
@korzo
Jul 02 2017 14:42
@mayankgupta02
I forked your pen and modified it to see what I meant
https://codepen.io/korzo/pen/BZrVgV?editors=0010
Max Datsun
@datmax
Jul 02 2017 14:44
@thekholm80 thanks a lot!
CamperBot
@camperbot
Jul 02 2017 14:44
datmax sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1243 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Mayank Gupta
@mayankgupta02
Jul 02 2017 14:45
Okay I see what you mean! Thank you! @korzo
CamperBot
@camperbot
Jul 02 2017 14:45
mayankgupta02 sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:warning: mayankgupta02 already gave korzo points
Altin Rrahmani
@DevKosov
Jul 02 2017 14:45
@mayankgupta02 Winter is coming!
Kyle Holm
@thekholm80
Jul 02 2017 14:46
@datmax O.o you're welcome, not sure what I did though lol
Mile
@AuroraNorth
Jul 02 2017 14:49
任务:创建一个链接到http://freecatphotoapp.com的a元素,并用cat photos作为其anchor text(锚点文本)。
Ene Catalin
@EneCatalin
Jul 02 2017 14:54
@DevKosov it's the middle of summer
are you blind or some shit ?
highest temperatures in europe :D
Kyle Holm
@thekholm80
Jul 02 2017 14:54
that's how seasons work, if it's summer it means winter is coming
Ene Catalin
@EneCatalin
Jul 02 2017 14:55
autumn is coming
not winter
Kyle Holm
@thekholm80
Jul 02 2017 14:55
what comes after autumn?
I know you're a smart guy, you can do this
Ene Catalin
@EneCatalin
Jul 02 2017 14:55
after winter ?
we skipping seasons now ? :D
Kyle Holm
@thekholm80
Jul 02 2017 14:56
we have 2 seasons where i live, too hot and snow
Altin Rrahmani
@DevKosov
Jul 02 2017 14:56
@EneCatalin winter is here
Ene Catalin
@EneCatalin
Jul 02 2017 14:56
do you live in brazil ?
cause it's summer
Greta Piliponytė
@gpiliponyte
Jul 02 2017 14:56
what could be the issue if I cannot print anything in the console? Even when I place the console.log outside any function...
Ene Catalin
@EneCatalin
Jul 02 2017 14:57
@gpiliponyte show image
some of us are pc whisperers but images make it easier :D
Greta Piliponytė
@gpiliponyte
Jul 02 2017 14:57
console.log("help");
Altin Rrahmani
@DevKosov
Jul 02 2017 14:57
@EneCatalin winter is going to start in 16 july
Greta Piliponytė
@gpiliponyte
Jul 02 2017 14:58
@EneCatalin how about that lol
Ene Catalin
@EneCatalin
Jul 02 2017 14:58
how about you show us the console ?
Greta Piliponytė
@gpiliponyte
Jul 02 2017 14:59
image.png
@EneCatalin
Ene Catalin
@EneCatalin
Jul 02 2017 14:59
hmmmmmm
ja ja
Jevgenij Cchovrebov
@cchovrebov
Jul 02 2017 14:59
people help please
"Firstline\n\Secondline\\rThirdline"
Ene Catalin
@EneCatalin
Jul 02 2017 14:59
are you sure you're running it ?
Jevgenij Cchovrebov
@cchovrebov
Jul 02 2017 14:59
var myStr = "Firstline\n\Secondline\\rThirdline";
whats wrong?
Ene Catalin
@EneCatalin
Jul 02 2017 14:59
everything
learn about special characters
with \
like \n
you have a \n \S \r
Greta Piliponytė
@gpiliponyte
Jul 02 2017 15:00
@EneCatalin yup I am pretty sure
Ene Catalin
@EneCatalin
Jul 02 2017 15:00
learn the difference between \n and \n
@gpiliponyte be more than pretty sure :P
js right ?
Greta Piliponytė
@gpiliponyte
Jul 02 2017 15:00
@EneCatalin yea
Ene Catalin
@EneCatalin
Jul 02 2017 15:01
wait
ima try something
actually
in what env are you trying to run it ?
@gpiliponyte try this
<!DOCTYPE HTML>
<html>

<body>

  <p>Before the script...</p>

  <script>
    alert( 'Hello, world!' );
  </script>

  <p>...After the script.</p>

</body>

</html>
@gpiliponyte so, works ?
Greta Piliponytė
@gpiliponyte
Jul 02 2017 15:06
@EneCatalin I'm using codepen
Ene Catalin
@EneCatalin
Jul 02 2017 15:06
don't
codepen sucks
you a student ?
ostrich knows the best ides for students
Altin Rrahmani
@DevKosov
Jul 02 2017 15:08
ostrich god
plays dota -.-
Ene Catalin
@EneCatalin
Jul 02 2017 15:08
ostrich is going nuts
can't win a fucking match with leshrac
need for all hero challange
Altin Rrahmani
@DevKosov
Jul 02 2017 15:08
hahaha
just don't cry just like that guy
Ayush Mahajan
@ay2306
Jul 02 2017 15:15
Hey guys, I am unable to figure out what is wrong here in this code
//variable declaration
var board = [['_','_'],['_','_'],['_','_']];
//variable declaration

//AI code
var player = 'x';
var computer = 'o';
function isMoveLeft(b[3][3]){
    for(var i = 0; i < 3; i++){
        for(var j = 0; j < 3; j++){
            if(b[i][j]==='_')return (true);
        }
    }
    return false;
}

if(isMoveLeft(board)){
    console.log("YES");
}
else{
    console.log("NO");
}
Found error.
If anyone curious: its in function isMoveLeft(b[3][3]) should be function isMoveLeft(b)
Ene Catalin
@EneCatalin
Jul 02 2017 15:24
@gpiliponyte have you tried it in a desktop env ?
Adit
@adittyagi
Jul 02 2017 15:36
'wniter is here'
Waiting anxiously
Altin Rrahmani
@DevKosov
Jul 02 2017 15:37
16 July will technically start
Adit
@adittyagi
Jul 02 2017 15:37
Yes 😀
Ene Catalin
@EneCatalin
Jul 02 2017 15:38
I mean the books give it all already
what with tyrion dead in the latest book
Altin Rrahmani
@DevKosov
Jul 02 2017 15:38
don't spoil me
i'm a god killer
Adit
@adittyagi
Jul 02 2017 15:38
Exactly
Don't spoil the fun 😌
Yury
@Ajmdag
Jul 02 2017 16:02
<? include("blocks/lefttd.php"); ?>
<td valign="top">
<?php
if (isset($title) && isset($meta_d) && isset($meta_k) && isset($date) && isset($description) && isset($text) && isset($author))
{
$result = mysql_query("UPDATE lessons SET title = '$title', meta_d = '$meta_d', meta_k = '$meta_k', date = '$date', description = '$description', text = '$text', author = '$author' WHERE id = '$id'");
if ($result == true) {
echo "Your lesson updated!";
}
else {
echo "Your lesson have not been updated!!!";
}
} else {
echo "You didn't fill all the forms.Your lesson have not been updated!";
}
?>
hi guys what's wrong with my php code?
Ravi Kishore Thella
@ravikishorethella
Jul 02 2017 16:04
@Ajmdag this is not php help room
Yury
@Ajmdag
Jul 02 2017 16:04
okay, sorry. Where can I found php help room?
find*
CamperBot
@camperbot
Jul 02 2017 16:04
find undefined
nothing found
Andrew
@Isenorsen
Jul 02 2017 16:18

Hello guys, can u help me pls.
have some problem with firefox browser.
Its not loading css and i cant understand why and what i am doin wrong.

<head>

<link href="https://fonts.googleapis.com/css?family=Francois+One" rel="stylesheet">
<title>Black Metal</title>
<link rel="stylesheet" type="text/css" href="C:/Users/Andrew/Desktop/Projects/style3.css">
</head>

Altin Rrahmani
@DevKosov
Jul 02 2017 16:20
@Isenorsen if you have index.html in the same folder with style3.css you can just write href="sytle3.css"
John
@jchritton
Jul 02 2017 16:24
I feel like I'm missing something really obvious with the palindrome JS challenge...not sure if my regex isn't right or what though :/
function palindrome(str) {
  str.replace(/\W/gi, "");
  console.log("Replaced: " + str);

  str.toLowerCase();
  console.log("Lowercase: " + str);

  var strArray = str.split("");
  strArray.reverse();
  console.log("str after reversed: " + str);
  console.log("Reversed: " + strArray);

  strArray.join("");
  console.log("str after joined: " + str);
  console.log("Joined: " + strArray);

  if (strArray == str) {
    return true;
  }
  return false;
}

palindrome("_Eye");
Nothing happens at all to str
koder3
@koder3
Jul 02 2017 16:30
checkCashRegister(19.50, 20.00, [["PENNY", 1.01], ["NICKEL", 2.05], ["DIME", 3.10], ["QUARTER", 4.25], ["ONE", 90.00], ["FIVE", 55.00], ["TEN", 20.00], ["TWENTY", 60.00], ["ONE HUNDRED", 100.00]]) should return [["QUARTER", 0.50]]
i am in the exact change algorithm challenge. in should return [["QUARTER", 0.50]] i understand it should return 0.50 because 20.00 - 19.50. however why should it return QUARTER, in the cid QUARTER is equal to 4.25 which is not what im supposed to return. why is quarter included ?
Andrew
@Isenorsen
Jul 02 2017 16:30
@DevKosov thanks
CamperBot
@camperbot
Jul 02 2017 16:30
isenorsen sends brownie points to @devkosov :sparkles: :thumbsup: :sparkles:
:cookie: 281 | @devkosov |http://www.freecodecamp.com/devkosov
John
@jchritton
Jul 02 2017 16:44
Oh
Didn't put the regex as a character selection :laughing: Welp
Jo
@SJoCurtis
Jul 02 2017 17:10
Hi guys! so I honestly havent had to ask for a lot of help yet in this forum so I'm not sure if I'm doing it right or what. So essentially, I moved onto the Javascript portion of the challenges and im not very far. Only on "Storing Values with the Assignment Operator", which is a seemingly simple concept in theory, but I have been struggling to figure this specifc challenge out. In the challenge you have to set the variable a = 7 and the variable b = 7, and then a should be assigned to b with = . Thats where im having the issues I cant seem to set a = b correctly. I know its a simple problem but I'd love any sort of advice.
Kyle Holm
@thekholm80
Jul 02 2017 17:11
a = b assigns the value of b to a
Jo
@SJoCurtis
Jul 02 2017 17:14
Right. Except it does not matter how I enter it. Whether its a=b or b=a. It is an error. Im obviously doing something else wrong? I'm really not sure, because it seems like really simple, but I just cant get it.
Kyle Holm
@thekholm80
Jul 02 2017 17:15
paste your code in here
Altin Rrahmani
@DevKosov
Jul 02 2017 17:18
@SJoCurtis read this article maybe it can help you understand
Cameron
@BaconTheRabbit
Jul 02 2017 17:21

      var convertedIcon = "CLEAR_DAY";
  skycons.add("icon1", Skycons.$(convertedIcon));
anyone know how i can fix this?
the skycons.add function calls the Skycons.CLEAR_DAY and gives me icons
but when i try to use a variable instead of Skycons.CLEAR_DAY it doesn't work
RickArora
@RickArora
Jul 02 2017 17:24
any idea why I am getting the error cannot read property CharAt undefined
Cameron
@BaconTheRabbit
Jul 02 2017 17:24
@RickArora .charCodeAt()
RickArora
@RickArora
Jul 02 2017 17:26
@BaconTheRabbit why would I want the unicode value to compare ? I know it would accomplish the same thing but what is the issue with the code right now that it cant just directly compare the string/char value?
Cameron
@BaconTheRabbit
Jul 02 2017 17:27
oh wait. i see where you are
unless your arr[0] and arr[1] lengths are the same, you're gonna run into undefined vvalues
RickArora
@RickArora
Jul 02 2017 17:28
arr[0] is already greater than arr[1]
is what I am doing
Gulsvi
@gulsvi
Jul 02 2017 17:29

@BaconTheRabbit It's an object you're accessing, so the variable needs to be in brackets:

skycons.add("icon1", Skycons[convertedIcon]);

But, you should be able to do this instead if you want to match the current weather icon: skycons.add("icon1", data.currently.icon);

Cameron
@BaconTheRabbit
Jul 02 2017 17:34
@SkyC0der ... thank you. i can't believe i missed either of those.
CamperBot
@camperbot
Jul 02 2017 17:34
bacontherabbit sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:star2: 1909 | @skyc0der |http://www.freecodecamp.com/skyc0der
Cameron
@BaconTheRabbit
Jul 02 2017 17:35
the last especially. since i wrote a function just to capitalise and underscore any value in data.currently.icon to make it flush with the api's spec..
Cirediallo
@Cirediallo
Jul 02 2017 17:35
Hello
Sonali Sharma
@sharmasonali
Jul 02 2017 17:35
i have made two accounts on fcc by mistake. one through my mail id and another one through my github account...can anyone tell me whether i can merge both these together?
Cirediallo
@Cirediallo
Jul 02 2017 17:35
can someone help me with Golf Code
Jan Shah
@JanShah
Jul 02 2017 17:36
@sharmasonali copy paste will help you :)
Cameron
@BaconTheRabbit
Jul 02 2017 17:36
that's the functionality done x3 https://codepen.io/BaconTheRabbit/full/jwzLOr/
Siddhant Mishra
@isiddey
Jul 02 2017 17:38
@sharmasonali There is no possible way to merge. You can copy codes from one ID unto other. Then delete the one which you do not need.
Sonali Sharma
@sharmasonali
Jul 02 2017 17:38
thanks @isiddey
CamperBot
@camperbot
Jul 02 2017 17:38
sharmasonali sends brownie points to @isiddey :sparkles: :thumbsup: :sparkles:
:cookie: 316 | @isiddey |http://www.freecodecamp.com/isiddey
Altin Rrahmani
@DevKosov
Jul 02 2017 17:40
o man i miss naruto
Cirediallo
@Cirediallo
Jul 02 2017 18:04
can someone help me please i don't understand
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 18:06
@Cirediallo what is your problem?
Cirediallo
@Cirediallo
Jul 02 2017 18:08
@NahuelOvejero i have problem with the Golf Code i don't understand
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 18:08
@Cirediallo sure, what you don't understand?
Cirediallo
@Cirediallo
Jul 02 2017 18:10
@NahuelOvejero nothing my english level is low i do understand the function will have 2 arguments but what to do with ?
Albert Cardona II
@daddycardona
Jul 02 2017 18:10
just wanted to let everyone know I am a cheater LOL
I cheated on profile lookup so mad at mysefl I was almost there
Altin Rrahmani
@DevKosov
Jul 02 2017 18:11
@daddycardona everyone has cheated at least once
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 18:12
@Cirediallo well, a function with 2 arguments look like this:
function myFunc (args1, args2){
         console.log(args1 + " was the first args") ;
         console.log(args2 + " was the second args")  
}
Albert Cardona II
@daddycardona
Jul 02 2017 18:12
yes I know but mad I had it just had been a busy and tiring week and I spent like 4 days on it I hate when I cheat LOL
Tom Donegan
@tomdonegan
Jul 02 2017 18:12
@daddycardona but now you cheated, do you anderstand what the actual answer did and how it done it?
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 18:13
@daddycardona hw you cheated? ;P
Albert Cardona II
@daddycardona
Jul 02 2017 18:13
you missed the second semicolon @NahuelOvejero LOL
Cirediallo
@Cirediallo
Jul 02 2017 18:13
@NahuelOvejero i know but did u see the challenge ? what do i do with the arguments ?
Altin Rrahmani
@DevKosov
Jul 02 2017 18:13
@daddycardona no need for last semicolone
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 18:13
@daddycardona semi colons are optional tho x)
but I miss it
@Cirediallo what each argumment represent?
Albert Cardona II
@daddycardona
Jul 02 2017 18:14
yes and no @tomdonegan I have an understanding though but it's like I was able to understand it but why did I get so confused lol
@NahuelOvejero @DevKosov you have to be consistent so if you use one and you can use another you use the other too LOL
Cirediallo
@Cirediallo
Jul 02 2017 18:15
The challenge says Your function will be passed par and strokes arguments. Return the correct string according to this table which lists the strokes in order of priority; top (highest) to bottom (lowest):
and the table is ambiguous for me
Altin Rrahmani
@DevKosov
Jul 02 2017 18:16
@daddycardona i agree with you but still the code he wrote is ok.
Albert Cardona II
@daddycardona
Jul 02 2017 18:16
NOOOO LMAO
okay
thank God it was not java it would of crashed the program and computer lol
@DevKosov
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 18:18
@Cirediallo why is ambiguos?
Altin Rrahmani
@DevKosov
Jul 02 2017 18:19
maybe not the computer @daddycardona ;)
Albert Cardona II
@daddycardona
Jul 02 2017 18:19
I remember when I first started java that happend to me all the time. Damm cheap ass computer lol
Cirediallo
@Cirediallo
Jul 02 2017 18:19
@daddycardona with JS the semi-colon is not really an obligation but you are right if it was Java the compiler will be crying
Albert Cardona II
@daddycardona
Jul 02 2017 18:20
but my comptuer now is nice :)
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 18:20
@daddycardona you had a infinite loop for sure :P
Cirediallo
@Cirediallo
Jul 02 2017 18:20
@NahuelOvejero i want to know what to do with these two arguments for return something
Albert Cardona II
@daddycardona
Jul 02 2017 18:20
I also remember JS would crash IE3 if it didnt have that semicolon
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 18:20
@Cirediallo you have to calculate the score
Cirediallo
@Cirediallo
Jul 02 2017 18:21
@NahuelOvejero and how ?
Albert Cardona II
@daddycardona
Jul 02 2017 18:21
@Cirediallo you have to use what you learned so far sometimes it is not easy but they do show you enough to do it.
Cirediallo
@Cirediallo
Jul 02 2017 18:22
OMG if i use google translate for translate something i'm more confused
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 18:22
@Cirediallo well, the main problem is you don't know how golf works (and I don't remember it also ) , but the score in golf is calculated based on the ammount of shot you had, and the base ammount of shot you can do
Albert Cardona II
@daddycardona
Jul 02 2017 18:22
think outside the box lol
Cirediallo
@Cirediallo
Jul 02 2017 18:23
@NahuelOvejero i don't know nothing about golf
May Kittens Devour Your Soul
@diomed
Jul 02 2017 18:24
skip the task, then :smiling_imp:
Albert Cardona II
@daddycardona
Jul 02 2017 18:24
I am on constructors right now and was reading a compelling argument on something called factory functions vs constructor functions. The man had his own website and book named Elliot
Altin Rrahmani
@DevKosov
Jul 02 2017 18:24
@Cirediallo ikr same happens to me in french.. lol
Albert Cardona II
@daddycardona
Jul 02 2017 18:24
@Cirediallo is everything you reading your translating in spanish or something?
Altin Rrahmani
@DevKosov
Jul 02 2017 18:25
french
Albert Cardona II
@daddycardona
Jul 02 2017 18:25
So you from france @DevKosov
Cirediallo
@Cirediallo
Jul 02 2017 18:25
@daddycardona not everything i have some bases in english but if we speak the shakespear langage i'm lost
Altin Rrahmani
@DevKosov
Jul 02 2017 18:26
yes but i moved in last year i dont speak fluent french
Albert Cardona II
@daddycardona
Jul 02 2017 18:26
where you from
Altin Rrahmani
@DevKosov
Jul 02 2017 18:26
my name
remove dev
Albert Cardona II
@daddycardona
Jul 02 2017 18:27
Dude I speak mainly English and if we speak shakespear I am still lost LOL @Cirediallo
Cirediallo
@Cirediallo
Jul 02 2017 18:27
@DevKosov really it's hard to combine to learn foreign langage and learn in that langage
Altin Rrahmani
@DevKosov
Jul 02 2017 18:27
@Cirediallo yes i know really
Cirediallo
@Cirediallo
Jul 02 2017 18:28
ok explain me how to do that challenge and how to calculate the score
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 18:28
@Cirediallo I told you a bit
Cirediallo
@Cirediallo
Jul 02 2017 18:31
@NahuelOvejero you just told me i have to calculate but how i did not i think or i did not see
May Kittens Devour Your Soul
@diomed
Jul 02 2017 18:31
Albert Cardona II
@daddycardona
Jul 02 2017 18:31
LMAO
Altin Rrahmani
@DevKosov
Jul 02 2017 18:32
@diomed DUDE! Hahahah
Cirediallo
@Cirediallo
Jul 02 2017 18:33
@daddycardona what is LMAO ?
Albert Cardona II
@daddycardona
Jul 02 2017 18:33
try using if statements @Cirediallo and it means laughing my ass off ;)
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 18:33
@Cirediallo well, the main problem is you don't know how golf works (and I don't remember it also ) , but the score in golf is calculated based on the ammount of shot you had, and the base ammount of shot you can do
Altin Rrahmani
@DevKosov
Jul 02 2017 18:34
@diomed check this out
Nahuel Ovejero
@NahuelOvejero
Jul 02 2017 18:34
Sounds like snu snu @diomed
May Kittens Devour Your Soul
@diomed
Jul 02 2017 18:35
death by snu snu - best way to go
Cirediallo
@Cirediallo
Jul 02 2017 18:35
@diomed if statements just allow me to do verification not how to calculate the score
May Kittens Devour Your Soul
@diomed
Jul 02 2017 18:35
u are mixing me with someone who knows js
Cirediallo
@Cirediallo
Jul 02 2017 18:36
@NahuelOvejero based on the amount of shot you had and the base amount of shot you can do what's that man it means same thing. doesn't it ?
Albert Cardona II
@daddycardona
Jul 02 2017 18:38
@Cirediallo in golf you have par which means you have a number amount of hits to make it perfect score. if you get a par 3 it means you have 3 strokes to make this a perfect hole. if you hit a hole in one you subtract par - 2 because you only took one showt to get it in. So now use what you learned like a switch statements or if statements and try to figure it out. hint set par to 0 initially
leave out the hint my mistake lol
calin11
@calin11
Jul 02 2017 18:39