These are chat archives for FreeCodeCamp/Help

9th
Jul 2017
Rishabh Kashyap
@iamrkcheers
Jul 09 2017 00:05
@korzo you're a life saver. thanks a ton.
CamperBot
@camperbot
Jul 09 2017 00:05
:cookie: 231 | @korzo |http://www.freecodecamp.com/korzo
iamrkcheers sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
korzo
@korzo
Jul 09 2017 00:13
@iamrkcheers Glad to help
Alice Clark
@coderstravel
Jul 09 2017 00:24

Evening all hope all is well, can I get some help with this challenge plz.

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

  return "Change Me!";
}


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

can't get checkObj("house") should return "Not Found".

Joseph
@revisualize
Jul 09 2017 00:30
@coderstravel spelling
@coderstravel "Not found";
@coderstravel should return "Not Found".
@coderstravel F vs f
Alice Clark
@coderstravel
Jul 09 2017 00:32
@revisualize , thanks lol. I've looked over this code for the pass few hrs. SPELLING, SPELLING , SPELLING ... lol thanks
CamperBot
@camperbot
Jul 09 2017 00:32
:star2: 4331 | @revisualize |http://www.freecodecamp.com/revisualize
coderstravel sends brownie points to @revisualize :sparkles: :thumbsup: :sparkles:
Nick Cleary
@Hijerboa
Jul 09 2017 00:36
$.getJSON("https://api.darksky.net/forecast/ddb79a723468dc5748c73fd586408cdc/50,50", function(forcast) {
            console.log(forcast);
            //$(".precip").html(JSON.stringify(forcast));
        });
can anyone please explain to me why this won't work? I tried putting the url straight into my address bar, and that worked, but this outputs nothing. any help would be appreciated
Kyle Holm
@thekholm80
Jul 09 2017 00:37
are there any errors in your console?
Joseph
@revisualize
Jul 09 2017 00:37
@Hijerboa codepen?
Joseph
@revisualize
Jul 09 2017 00:38
@Hijerboa if youre using codepen youre violation Darkysky's TOS
@Hijerboa yup
@Hijerboa you need to use an api passthru
Nick Cleary
@Hijerboa
Jul 09 2017 00:38
@revisualize how would i do that?
@thekholm80 just noticed them.. thanks
CamperBot
@camperbot
Jul 09 2017 00:38
hijerboa sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1303 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Joseph
@revisualize
Jul 09 2017 00:39
@Hijerboa I don't know depends on the API Passthrough you choose
Nick Cleary
@Hijerboa
Jul 09 2017 00:40
@revisualize would i be better off just using a different editor or trying a different API....
Joseph
@revisualize
Jul 09 2017 00:41
Or find a simple passthru?
Nick Cleary
@Hijerboa
Jul 09 2017 00:42
is there anyone in particular you would recommend?
Frank McCroy
@fmccroy
Jul 09 2017 00:42
This one works for me: https://crossorigin.me/
Kyle Holm
@thekholm80
Jul 09 2017 00:43
that won't fix the problem
Nick Cleary
@Hijerboa
Jul 09 2017 00:43
@thekholm80 why not? and how would you best suggest fixing it? not using the dark sky api?
Kyle Holm
@thekholm80
Jul 09 2017 00:44
dark sky's ToS says your api keys can't be viewable by the public
appending the url isn't going to hide the api keys in your code
Nick Cleary
@Hijerboa
Jul 09 2017 00:45
the FCC challenge page said that this should work...
Joseph
@revisualize
Jul 09 2017 00:45
@Hijerboa ok?
Kyle Holm
@thekholm80
Jul 09 2017 00:45
freeCodeCamp/freeCodeCamp#15598
there's a masked api in there you can use
Joseph
@revisualize
Jul 09 2017 00:46
@Hijerboa If i say I can shit gold does that mean I can?
Nick Cleary
@Hijerboa
Jul 09 2017 00:46
@revisualize I'm just trying to say that's what the information page suggests...
Joseph
@revisualize
Jul 09 2017 00:47
@Hijerboa it also says stuff about: http://ip-api.com/docs/api:json
@Hijerboa soooooooo....
Frank McCroy
@fmccroy
Jul 09 2017 00:49
Interesting.. so the new solution came out in the past 2-3 days
Kyle Holm
@thekholm80
Jul 09 2017 00:49
yeah, he knocked it out fast
Joseph
@revisualize
Jul 09 2017 00:49
@Hijerboa this guy got it to work: https://codepen.io/tpham1620/pen/KmBoGv
Nick Cleary
@Hijerboa
Jul 09 2017 00:50
ah
Frank McCroy
@fmccroy
Jul 09 2017 00:51
@revisualize It works, but doesn’t answer @thekholm80 ’s problem of showing everyone their private key.
Using JSONP is considered the standard solution to the CORS problem?
Kyle Holm
@thekholm80
Jul 09 2017 00:53
as long as the server supports jsonp
Nick Cleary
@Hijerboa
Jul 09 2017 00:54
so would using the openweatherapp api be an acceptable way of completing this challenge?
Kyle Holm
@thekholm80
Jul 09 2017 00:54
did you not look at what i posted?

API requests:

/api/current
Required parameters:
lon is longitude
lat is latitude
Optional parameters:
callback can be set to JSON_CALLBACK
The temperature is returned in celsius. Do we need to add other units options as optional parameters?

Do any other types of API requests or request options need to be handled?

Examples:
https://fcc-weather-api.glitch.me/api/current?lat=35&lon=139
https://fcc-weather-api.glitch.me/api/current?lat=35&lon=139&callback=JSON_CALLBACK

Frank McCroy
@fmccroy
Jul 09 2017 00:55
Openweather by itself will not work right with CodePen because it uses http, when CodePen wants https. The link @thekholm80 gives us a different API to work with
Nick Cleary
@Hijerboa
Jul 09 2017 00:57
@thekholm80 ooohhh im sorry. I thought that the guy was refferencing using the open weather api here
my apologies
Kyle Holm
@thekholm80
Jul 09 2017 00:57
he used the open weather api to make an api service for FCC
Joseph
@revisualize
Jul 09 2017 00:57
@fmccroy I don't know how to solve the problem.
@fmccroy I don't care
Kyle Holm
@thekholm80
Jul 09 2017 00:57
you make a request to his server, his server calls open weather, he forwards the results back to you
Nick Cleary
@Hijerboa
Jul 09 2017 00:58
that makes sense then
I was confused
Kyle Holm
@thekholm80
Jul 09 2017 00:58
that way the keys are hidden on his server
no muss, no fuss
Nick Cleary
@Hijerboa
Jul 09 2017 00:58
@thekholm80 @fmccroy thanks for the help guys
CamperBot
@camperbot
Jul 09 2017 00:58
hijerboa sends brownie points to @thekholm80 and @fmccroy :sparkles: :thumbsup: :sparkles:
:cookie: 370 | @fmccroy |http://www.freecodecamp.com/fmccroy
:warning: hijerboa already gave thekholm80 points
Kyle Holm
@thekholm80
Jul 09 2017 00:58
np
Nick Cleary
@Hijerboa
Jul 09 2017 00:58
so this is all just a way to hide the keys?
Kyle Holm
@thekholm80
Jul 09 2017 00:58
and to get everyone using the same api, makes it simpler
Joseph
@revisualize
Jul 09 2017 00:58
@Hijerboa good luck
Nick Cleary
@Hijerboa
Jul 09 2017 00:58
@revisualize thanks mate
CamperBot
@camperbot
Jul 09 2017 00:58
hijerboa sends brownie points to @revisualize :sparkles: :thumbsup: :sparkles:
:star2: 4332 | @revisualize |http://www.freecodecamp.com/revisualize
Nick Cleary
@Hijerboa
Jul 09 2017 00:59
also: they mentioned that in the beta version the weather app will no longer be required. Do we have any idea of a timeline for when the beta version will become live?
Frank McCroy
@fmccroy
Jul 09 2017 00:59
@revisualize ROFL. I suppose the answer is using what @thekholm80 just showed us. The question may be, who’s key are we using, the person who made the work around? Either way.. my project is done, and it uses the pass through site, and blabs the private key out to the world, but I don’t normally show my code anyway.
Kyle Holm
@thekholm80
Jul 09 2017 00:59
I keep hearing "In a few weeks" but there's still a lot of work to be done
Nick Cleary
@Hijerboa
Jul 09 2017 01:00
ah. I was looking at it earlier and there seems that certain parts are no where near done
here's hoping its soon, because it seems to be a much better version of what we have now, mostly
Kyle Holm
@thekholm80
Jul 09 2017 01:00
i hope they wait until i finish my remaining projects
Nick Cleary
@Hijerboa
Jul 09 2017 01:01
what do you have left?
Kyle Holm
@thekholm80
Jul 09 2017 01:01
just 4 full stack apps
Nick Cleary
@Hijerboa
Jul 09 2017 01:01
the nonprofits?
Kyle Holm
@thekholm80
Jul 09 2017 01:01
no, back end projects
Nick Cleary
@Hijerboa
Jul 09 2017 01:01
oh.
well good luck to you then!
Kyle Holm
@thekholm80
Jul 09 2017 01:02
haha thanks @Hijerboa
CamperBot
@camperbot
Jul 09 2017 01:02
thekholm80 sends brownie points to @hijerboa :sparkles: :thumbsup: :sparkles:
:cookie: 264 | @hijerboa |http://www.freecodecamp.com/hijerboa
Joseph
@revisualize
Jul 09 2017 01:37
@Hijerboa I heard November
Margaret2 @Margaret2 wassup wassup :ocean:
Kyle Holm
@thekholm80
Jul 09 2017 02:08
@Margaret2 :wave:
Margaret
@Margaret2
Jul 09 2017 02:09
@Manish-Giri I'm using dark theme now FYI :eyes:
wow FCC goes to bed early, nothing has happened in the JS room for 25 minutes...
Dalton Terry
@gadget800
Jul 09 2017 02:47
Hey so I do not know where to start with the portfolio. Should I work backwards on one and then do it by myself or like. how should I complete this
Kyle Holm
@thekholm80
Jul 09 2017 02:48
read the user stories, figure out how you want it to look. then break the project into small pieces and tackle each piece
monkey coding
@dhn610018574
Jul 09 2017 02:50
click the Run tests ,no response
why
Dalton Terry
@gadget800
Jul 09 2017 02:50
alright thanks guy
s
monkey coding
@dhn610018574
Jul 09 2017 02:56
alright
Rishabh Kashyap
@iamrkcheers
Jul 09 2017 02:56
I have made this as my wikipedia viewer.
Any changes you people wd suggest ?
https://codepen.io/iamrkcheers/pen/QgZLep
Kamorudeen Nurudeen I. A.
@Nutech08186181915
Jul 09 2017 03:15

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

});
</script>

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

ahyang92
@ahyang92
Jul 09 2017 03:19

Hi guys, my navbar collapse toggle seems to be not working once i exported to my the page from codepen to github. Cant seem to find whats wrong with it. Help anyone?

https://codepen.io/ahYang92/pen/ZKRaOv?editors=1100 <-codepen link
https://github.com/ahyang92/ahyang92.github.io <-github link

Manish Giri
@Manish-Giri
Jul 09 2017 03:20
@ahyang92 did you look at the browser console?
ahyang92
@ahyang92
Jul 09 2017 03:23
image.png
@Manish-Giri
Manish Giri
@Manish-Giri
Jul 09 2017 03:24
the CONSOLE tab
ahyang92
@ahyang92
Jul 09 2017 03:27
the console tab is blank
it just mentioned i had an insecure image served
Manish Giri
@Manish-Giri
Jul 09 2017 03:28
Screenshot 2017-07-08 23.28.23.png
you don't see that error?
ahyang92
@ahyang92
Jul 09 2017 03:31
image.png
mine appeared this way
ahyang92
@ahyang92
Jul 09 2017 03:45
thanks a lot mate! @Manish-Giri i added the bootstrap and jquery js. It worked. But would love to know about console and how to check the error like you did
CamperBot
@camperbot
Jul 09 2017 03:45
ahyang92 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6215 | @manish-giri |http://www.freecodecamp.com/manish-giri
davidlair
@davidlair
Jul 09 2017 04:00
woah, since when did they take the "Help" option out of the Challenges?
You used to be able to have a window pop-up in the same screen as your challenge
Now it says "get a hint" and takes you to the forum
Or did I mess a setting up?
Kyle Holm
@thekholm80
Jul 09 2017 04:05
they changed it about a week ago
davidlair
@davidlair
Jul 09 2017 04:06
Any idea what their thought process behind that was? Maybe to encourage more use of the forums?
Lemme rephrase, any idea why they didn't just add the "Hint" button instead of taking away the on-screen help chat?
Kyle Holm
@thekholm80
Jul 09 2017 04:08
driving traffic to the forums was part of it. instead of asking the same question 40x a day in chat, users can now see how others have been helped
I think it's good. if people want to become successful coders they need to get used to finding answers to their questions. I've seen a lot of people come into this room and say "i'm on number whatever, what do i do?" and after they get their answer they say "I'm on number whatever + 1, what do i do?"
davidlair
@davidlair
Jul 09 2017 04:21
That's actually a very good point.
:)
Kyle Holm
@thekholm80
Jul 09 2017 04:27
that's not to say that I think the chat should go away. I'm sure we've all googled like mad, read all the manuals and just not been able to figure something out. the chat is good for finding help when nothing else works.
davidlair
@davidlair
Jul 09 2017 04:29
Oh I agree, I think it was a smart idea to integrate the forum as the initial help option. The gitter chat is still very useful, it's just not the standard offered option. I think it's great to have both, and I actually now agree with not having the on-screen chat as an option to encourage forum use and learning to navigate.
I think I just said the same thing three times in one post.
Kyle Holm
@thekholm80
Jul 09 2017 04:29
:)
davidlair
@davidlair
Jul 09 2017 04:29
lol
davidlair
@davidlair
Jul 09 2017 05:20
Not very active in here :O
I guess I'll just help myself!
Anyone know how to nest an element?
Yeah! Just grab a bunch of sticks and twigs and loop them around each other
ba dun, tchhh
dreadfish1
@dreadfish1
Jul 09 2017 05:21
lol
davidlair
@davidlair
Jul 09 2017 05:21
Yay, my entire audience found it funny!
dreadfish1
@dreadfish1
Jul 09 2017 05:21
@davidlair whats the challenge?
davidlair
@davidlair
Jul 09 2017 05:22
Making a joke. I was actually kidding. I don't need help at the moment. Just came to see if anyone else did, and chat had been dead for some time.
Thanks for the offer!
dreadfish1
@dreadfish1
Jul 09 2017 05:23
thats cuz everyone is passed out. to much booz
davidlair
@davidlair
Jul 09 2017 05:23
I'm just working on formatting my google docs document with the information I'm learning so I can understand things better and reference my notes when my brain stops working.
Yeah, good point. I replaced booze with coffee :O
and heroin
jk
dreadfish1
@dreadfish1
Jul 09 2017 05:24
just go smoke some weed and you will be okay.
there are plenty of quick look up guides around the interwebs
madhuri soni
@sonimadhuri
Jul 09 2017 05:47
@Nutech08186181915 you had not added brackets for function
$(document).ready(function(){ $("button").addClass("animated bounce");});
dreadfish1
@dreadfish1
Jul 09 2017 05:48
@Nutech08186181915 what is the challenge?
madhuri soni
@sonimadhuri
Jul 09 2017 05:49
@dreadfish1 i guess its the challenge where you target html elements with jquery
Darren
@DarrenfJ
Jul 09 2017 05:54
evening fCC
dreadfish1
@dreadfish1
Jul 09 2017 05:54
o/
Manish Giri
@Manish-Giri
Jul 09 2017 06:02
@DarrenfJ :wave:
Darren
@DarrenfJ
Jul 09 2017 06:02
@Manish-Giri hey buddy..
lawd i forget how slow it is in here at night now
Manish Giri
@Manish-Giri
Jul 09 2017 06:03
tumbleweed town
!
Darren
@DarrenfJ
Jul 09 2017 06:03
seriously :D
Manish Giri
@Manish-Giri
Jul 09 2017 06:04
in a way, it's actually good..I'm now getting more time to get my own stuff done..
Darren
@DarrenfJ
Jul 09 2017 06:04
true dat...
Manish Giri
@Manish-Giri
Jul 09 2017 06:04
like the projects on fcc
I think I've got just 2 more for my data viz cert
but I do miss the fun times !
Darren
@DarrenfJ
Jul 09 2017 06:05
ha! cool man.. you'll get full fledged certified in time for the flipover to beat and restart ;)
Manish Giri
@Manish-Giri
Jul 09 2017 06:05
lol haha
how're things going your end?
Darren
@DarrenfJ
Jul 09 2017 06:05
miss the old day too
shrug
I'm good man, busy with the play
side note that was one of the complaints about here.. people saying 'people just come in and ask for an answer'
but you can't really coach in a static forum
you must be done school for the summer?
or are you in one of those program where it goes forever
Manish Giri
@Manish-Giri
Jul 09 2017 06:08
lol
in the last stages
need to finish writing my queries
and then I can defend
Darren
@DarrenfJ
Jul 09 2017 06:09
cool
then what's the plan?
Darren
@DarrenfJ
Jul 09 2017 06:10
job in Silcion Valley? ;)
Manish Giri
@Manish-Giri
Jul 09 2017 06:10
this is exactly what I thought would happen
Darren
@DarrenfJ
Jul 09 2017 06:10
yah no kidding
Manish Giri
@Manish-Giri
Jul 09 2017 06:10
post in forum..people post answers..move on..
no explanation, no learning
Darren
@DarrenfJ
Jul 09 2017 06:10
that would have been perfect to be all like 'well what have you tried'?
Manish Giri
@Manish-Giri
Jul 09 2017 06:10
yeah
Darren
@DarrenfJ
Jul 09 2017 06:11
oh, the grid works like this ... blah blah blah and the person learns as they go.. discovers it themselves...
that's just a spoonfed answer.. thanks man!
shrug
Manish Giri
@Manish-Giri
Jul 09 2017 06:11
:disappointed:
Darren
@DarrenfJ
Jul 09 2017 06:12
welp, thanks for your help in here anyway :D
thanks @Manish-Giri
CamperBot
@camperbot
Jul 09 2017 06:12
darrenfj sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6216 | @manish-giri |http://www.freecodecamp.com/manish-giri
Manish Giri
@Manish-Giri
Jul 09 2017 06:13
hehe
Darren
@DarrenfJ
Jul 09 2017 06:13
do diomed margaret CDrain etc still hang out during the day?
Manish Giri
@Manish-Giri
Jul 09 2017 06:13
ty @DarrenfJ
CamperBot
@camperbot
Jul 09 2017 06:13
manish-giri sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1890 | @darrenfj |http://www.freecodecamp.com/darrenfj
Manish Giri
@Manish-Giri
Jul 09 2017 06:13
no idea about cdrain
Darren
@DarrenfJ
Jul 09 2017 06:16
bts?
what stuff is that?
Manish Giri
@Manish-Giri
Jul 09 2017 06:16
one sec
BrewCoffeeSplash
@BrewCoffeeSplash
Jul 09 2017 06:16
Looking for constructive criticism on my portfolio. Yes, I know it's an ugly duckling. https://codepen.io/BrewCoffeeSplash/full/dRgVmq/
Darren
@DarrenfJ
Jul 09 2017 06:17
i used to love how i'd be in here for an hour and cdrain would appear to answer a question then dissappear again... like he'd been lurking for hours
@BrewCoffeeSplash will give it a quick look
BrewCoffeeSplash
@BrewCoffeeSplash
Jul 09 2017 06:17
thank you
Darren
@DarrenfJ
Jul 09 2017 06:17
oh gawd yes i remember the boy band she's in lerve with
Manish Giri
@Manish-Giri
Jul 09 2017 06:18
@DarrenfJ x
ugh
Darren
@DarrenfJ
Jul 09 2017 06:19
that is the defacto definition of those kinds of bands
:D
@BrewCoffeeSplash i take it you like doge's?
Manish Giri
@Manish-Giri
Jul 09 2017 06:19
lol
BrewCoffeeSplash
@BrewCoffeeSplash
Jul 09 2017 06:20
Just a bit lol @DarrenfJ
Manish Giri
@Manish-Giri
Jul 09 2017 06:20
whatever happened to Pink Floyd, or Nirvana or Linkin Park
@BrewCoffeeSplash doge rulz :v:
Chase
@Xzenergy
Jul 09 2017 06:20
Hey guys, just completed my first project. Is this an alright tribute page??
BrewCoffeeSplash
@BrewCoffeeSplash
Jul 09 2017 06:20
did a pepe tribute page a loooong time ago as well
Darren
@DarrenfJ
Jul 09 2017 06:21
whatever happened to Pink Floyd, or Nirvana or Linkin Park
seriously
BrewCoffeeSplash
@BrewCoffeeSplash
Jul 09 2017 06:21
@Xzenergy image isn't mobile responsive
Darren
@DarrenfJ
Jul 09 2017 06:21
@BrewCoffeeSplash it looks good.. the contacts doesn't really fake as a contacts...
BrewCoffeeSplash
@BrewCoffeeSplash
Jul 09 2017 06:21
@Xzenergy the rest works
@DarrenfJ yeah, I'll fill that later with icons-links
Darren
@DarrenfJ
Jul 09 2017 06:22
@BrewCoffeeSplash from a design perspective the colour (the blue specifically) makes the white font way harder to see..
Chase
@Xzenergy
Jul 09 2017 06:22
@BrewCoffeeSplash how would I make it mobile responsive?
Darren
@DarrenfJ
Jul 09 2017 06:22
@BrewCoffeeSplash but that's design.. but i'd go same colour just shade it darker
Chase
@Xzenergy
Jul 09 2017 06:23
@BrewCoffeeSplash how about now?
Darren
@DarrenfJ
Jul 09 2017 06:25
@BrewCoffeeSplash not related to doge's but wolves
madhuri soni
@sonimadhuri
Jul 09 2017 06:26
@Xzenergy it is img-responsive and not image-responsive
BrewCoffeeSplash
@BrewCoffeeSplash
Jul 09 2017 06:26
@Xzenergy also add bootstrap
Darren
@DarrenfJ
Jul 09 2017 06:26
@Manish-Giri jeebus... it's like that Simpson's joke
Chase
@Xzenergy
Jul 09 2017 06:26
yea, just fixed it. I have bootstrap 4 added
Manish Giri
@Manish-Giri
Jul 09 2017 06:26
sigh
Darren
@DarrenfJ
Jul 09 2017 06:26
something like Lisa subscribing to a mag called "completely non-threatening boys'
Chase
@Xzenergy
Jul 09 2017 06:26
@BrewCoffeeSplash should I add the other? Also it seems to have put the image to the left now
Manish Giri
@Manish-Giri
Jul 09 2017 06:27
yea lol
Darren
@DarrenfJ
Jul 09 2017 06:28
BrewCoffeeSplash
@BrewCoffeeSplash
Jul 09 2017 06:29
@Xzenergy just use one bootstrap
centering the pic....lemme find that challenge
@DarrenfJ thanks for the feedback
CamperBot
@camperbot
Jul 09 2017 06:30
brewcoffeesplash sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1891 | @darrenfj |http://www.freecodecamp.com/darrenfj
Darren
@DarrenfJ
Jul 09 2017 06:31
@Manish-Giri onla a wolf can say it like it is
Manish Giri
@Manish-Giri
Jul 09 2017 06:32
@DarrenfJ rofl
:smile:
Darren
@DarrenfJ
Jul 09 2017 06:37
anyway.. time for me to go zzzZZZzzZZzzzz
later
:D
thanks for hanging guys @Manish-Giri @Xzenergy @BrewCoffeeSplash
CamperBot
@camperbot
Jul 09 2017 06:38
darrenfj sends brownie points to @manish-giri and @xzenergy and @brewcoffeesplash :sparkles: :thumbsup: :sparkles:
:cookie: 120 | @xzenergy |http://www.freecodecamp.com/xzenergy
:warning: darrenfj already gave manish-giri points
:cookie: 302 | @brewcoffeesplash |http://www.freecodecamp.com/brewcoffeesplash
Manish Giri
@Manish-Giri
Jul 09 2017 06:38
lol tht last line
!
cya @DarrenfJ
Darren
@DarrenfJ
Jul 09 2017 06:38
i know right :D
it's a good twitter
Manish Giri
@Manish-Giri
Jul 09 2017 06:38
yeah
Chase
@Xzenergy
Jul 09 2017 07:19
Should I be following along with the challenges as they come, or is there a more preferred order to complete them in?
Ene Catalin
@EneCatalin
Jul 09 2017 07:22
you can do them in any order
ostrich says start with the back end to achieve a great state of despair
you'll love it
Manish Giri
@Manish-Giri
Jul 09 2017 07:23
hi ostrich
Ene Catalin
@EneCatalin
Jul 09 2017 07:24
hi
Manish Giri
@Manish-Giri
Jul 09 2017 07:24
where's cat
Ene Catalin
@EneCatalin
Jul 09 2017 07:24
no idea
cat isn't here that often anymore
Adish Jain
@Adishjain58
Jul 09 2017 07:25
hi guys
Pethaf
@Pethaf
Jul 09 2017 07:25
But ossifrage is here.
Ene Catalin
@EneCatalin
Jul 09 2017 07:26
ostrich isn't that often anymore either
Pethaf
@Pethaf
Jul 09 2017 07:27
But ossifrage is here now.
Momozor
@momozor
Jul 09 2017 07:29
?
madhuri soni
@sonimadhuri
Jul 09 2017 07:30
hello @Adishjain58
Ayush Kenhi
@AyushKenhi
Jul 09 2017 07:34
Hello
I don't know any place where i can get help in cpp so am asking here
Momozor
@momozor
Jul 09 2017 07:35
@AyushKenhi in #freenode IRC (##c++) is much better to ask specific language questions.
Ayush Kenhi
@AyushKenhi
Jul 09 2017 07:36
IS there a link?
Adish Jain
@Adishjain58
Jul 09 2017 07:36
what is your question//
??
about program of c++
Ayush Kenhi
@AyushKenhi
Jul 09 2017 07:37
@Adishjain58 At the end of the gist there is compiler error
Adish Jain
@Adishjain58
Jul 09 2017 07:37
firstly use include<iostream.h>
madhuri soni
@sonimadhuri
Jul 09 2017 07:38
@AyushKenhi char can only hold one byte data try using string
Momozor
@momozor
Jul 09 2017 07:38
@Adishjain58 firstly you are using character to represent string - https://webchat.quakenet.org/
use std::string instead
Adish Jain
@Adishjain58
Jul 09 2017 07:38
try after removing using namespace std;
yeah you are right@faraco
Ayush Kenhi
@AyushKenhi
Jul 09 2017 07:39
@Adishjain58 Am not using Turbo C++
string health, livin, gender;
Momozor
@momozor
Jul 09 2017 07:39
unless you want to use char type, you can use it via pointer, but remember it's is terminated like in ASCII encoding via '\0'. char *my_string = "string";
Adish Jain
@Adishjain58
Jul 09 2017 07:40
s is capital for String
@AyushKenhi
ok bye guy
*guys
Ayush Kenhi
@AyushKenhi
Jul 09 2017 07:41
#include <iostream>

using namespace std;

int main() {
  int age;
  std::string health, livin, gender;
  age = 27;
  health = "poor";
  livin = "village";
  gender = "male";

  if (age >= 25 && age <= 35) {
    if (health == "excellent" && gender == "male" && livin == "city") {
      cout << "Premium : Rs 4 per thousand\n Max policy amount is Rs 2 lakh\n";
    } else if (health == "excellent" && gender == "female" && livin == "city") {
      cout << "Premium : Rs 3 per thousand\n Max policy amount is Rs 1 lakh\n";
    } else if (health == "poor" && gender == "male" && livin == "village") {
      cout << "Premium : Rs 6 per thousand\n Max policy amount is Rs 10,000\n";
    } else {
      cout << "Not insurable" << endl ;
    }
  } else {
    cout << "Not insurable";
  }
  return 0;
}
somewhat like this?
Momozor
@momozor
Jul 09 2017 07:42
that should work
Ayush Kenhi
@AyushKenhi
Jul 09 2017 07:42
do i need to include string header?
Momozor
@momozor
Jul 09 2017 07:42
no..iostream provides std::string already.
Ayush Kenhi
@AyushKenhi
Jul 09 2017 07:43
Oh thanks
@faraco One more thing When i used
Momozor
@momozor
Jul 09 2017 07:43
<string.h> is for C 'string' (array of characters) manipulation (provides strcat, strncopy) etc
Ayush Kenhi
@AyushKenhi
Jul 09 2017 07:43
' ' this instead " " of these it gave warning
Does putting it in double quotes change something?
Momozor
@momozor
Jul 09 2017 07:44
you should use single quote for a character like 'a' and double quoted for like "word"
Ayush Kenhi
@AyushKenhi
Jul 09 2017 07:45
Okay thanks a lot @faraco
CamperBot
@camperbot
Jul 09 2017 07:45
ayushkenhi sends brownie points to @faraco :sparkles: :thumbsup: :sparkles:
:cookie: 351 | @faraco |http://www.freecodecamp.com/faraco
Momozor
@momozor
Jul 09 2017 07:45
Kwbena
@AoN85
Jul 09 2017 08:08

Hi I'm working on the Front End challenge to build a personal portfolio page. I've created a fixed nav bar, but the text I have is being overlapped by the nav bar. How do I get the test to shift downwards? Here is my code:
<!---Navigation Bar -->

<div>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">All Or Nothing 85 Portfolio Page</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</div>
<!---Home -->
<div>
<H1>Full Stack Developer, with practical experience in Sales, Operations and Recruting. Industry experience in Retail, Management Consulting, Investment Management and Saas</H1>
</div>

Viktor Tiutiun
@vittorioVT
Jul 09 2017 08:11
@allornothing85 you have 3 <div> and only 2 </div> in nav section
you missing one </div>
Kwbena
@AoN85
Jul 09 2017 08:15
@vittorioVT Unfortunately that didn't work .
Viktor Tiutiun
@vittorioVT
Jul 09 2017 08:17
@allornothing85 сarefully see what div to which it corresponds, and why do you have <div class="container-fluid"> in navbar?
Kwbena
@AoN85
Jul 09 2017 08:19
Yes. I removed that now
and I've added: \
<div style="margin-top:60px;">
<H1 >Full Stack Developer, with practical experience in Sales, Operations and Recruting. Industry experience in Retail, Management Consulting, Investment Management and Saas</H1>
</div>
This has worked
Viktor Tiutiun
@vittorioVT
Jul 09 2017 08:19
@allornothing85 <h1> don't <H1>
@allornothing85 all tags are written with a small letter
LuftAffe
@LuftAffe
Jul 09 2017 08:22
somebody know why is this challenge https://www.freecodecamp.org/challenges/exact-change in test case 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]]) answer is [["QUARTER", 0.50]]?
is think answer must be "Insufficient Funds"
ZenZate
@ZenZate
Jul 09 2017 08:24
@LuftAffe You don't need to change unless you are testing your function
That is your test
build your function near the top and then test it using that line of code
LuftAffe
@LuftAffe
Jul 09 2017 08:27
@ZenZate, what do you mean? This is not my test ... but a system test
I'm do not understand system logic
ZenZate
@ZenZate
Jul 09 2017 08:29
show me your entire code
like your funciton as well
LuftAffe
@LuftAffe
Jul 09 2017 08:31
The decision is not completed, in case of "closed", but the other thinks correctly ... as it seems to me
function checkCashRegister(price, cash, cid) {
  var delta = cash - price;
  if (delta === 0) {
    return 'Closed';
  }
  cid = cid.sort(function (a, b) {
    return b[1] - a[1];
  });
  var res = [];
  cid.map(function(cidItem) {
    if (delta >= cidItem[1]) {
      res.push(cidItem);
      delta -= cidItem;
    };
  })
  // console.log
  console.log(cid);
  console.log(res);
  if (delta !== 0) {
    return "Insufficient Funds";
  }
  return res;
}

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

var res = 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]]);
Viktor Tiutiun
@vittorioVT
Jul 09 2017 08:35
@LuftAffe at first you need to create object
LuftAffe
@LuftAffe
Jul 09 2017 08:36
@vittorioVT Why?
ZenZate
@ZenZate
Jul 09 2017 08:36
Ahh I see your problem
It wont map properly and will return insuffecient funds for everything
Viktor Tiutiun
@vittorioVT
Jul 09 2017 08:37
@LuftAffe to check it
LuftAffe
@LuftAffe
Jul 09 2017 08:37
@vittorioVT what check?
Viktor Tiutiun
@vittorioVT
Jul 09 2017 08:37
@LuftAffe for example: var denom = [
{ name: 'ONE HUNDRED', val: 100.00},
{ name: 'TWENTY', val: 20.00},
{ name: 'TEN', val: 10.00},
{ name: 'FIVE', val: 5.00},
{ name: 'ONE', val: 1.00},
{ name: 'QUARTER', val: 0.25},
{ name: 'DIME', val: 0.10},
{ name: 'NICKEL', val: 0.05},
{ name: 'PENNY', val: 0.01}
];
MandyArthur
@MandyArthur
Jul 09 2017 08:38
Hi guys, need some help. How do I link a part of my page to the menu button? I have sidenav menu buttons
ZenZate
@ZenZate
Jul 09 2017 08:38
why not try using a for loop and mapping throuogh that way
Im not sure if you can map through a 3d array
@LuftAffe
LuftAffe
@LuftAffe
Jul 09 2017 08:40
@ZenZate Map i think is more beautiful, i can use map for 3d, but if use map in map in map )))
you mean my map is not run
?
ZenZate
@ZenZate
Jul 09 2017 08:41
yeah it gets stuck in that area
Viktor Tiutiun
@vittorioVT
Jul 09 2017 08:41
@LuftAffe better reduce()
ZenZate
@ZenZate
Jul 09 2017 08:41
ayway i gtg
bye
LuftAffe
@LuftAffe
Jul 09 2017 08:41
bye
@vittorioVT Why?
Viktor Tiutiun
@vittorioVT
Jul 09 2017 08:43
@LuftAffe eventually, whatever you want. you can try this and this
LuftAffe
@LuftAffe
Jul 09 2017 08:46
I have to go, bye
Viktor Tiutiun
@vittorioVT
Jul 09 2017 08:46
@LuftAffe bye
Seah Eng Chye
@Seahchye
Jul 09 2017 08:49
Hi all, how do I centralise an image when using Bootstrap?
Jesse R Ezung
@JEzung
Jul 09 2017 08:50
Hi guys! I don't seem to find the help button at chrome. All I get is a hint button. Cannot find the help chat
Typing from app
Nevermind. Got it
Someone please help me
Between the style tags, give the p elements font-size of 16px. Browser and Text zoom should be at 100%.

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

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

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

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

Adish Jain
@Adishjain58
Jul 09 2017 08:55
actually i completed this challenge in pc.i didn't do anything about the Browser and Text zoom should be at 100%. i just changed the font size and run the test and it runs succesfully.
Jesse R Ezung
@JEzung
Jul 09 2017 08:55
@Adishjain58 I can't seem to find the answer. Can you tell me where Im doing wrong?
Adish Jain
@Adishjain58
Jul 09 2017 08:57
you didn't close the curly bracket of .red-text class
Seah Eng Chye
@Seahchye
Jul 09 2017 08:57
try this
p {
Seah Eng Chye
@Seahchye
Jul 09 2017 08:57
font-size:16px:
Jesse R Ezung
@JEzung
Jul 09 2017 08:58
@Adishjain58 !!!!!!! Thank you! I forgot to close the curly bracket. Thank you so much!
CamperBot
@camperbot
Jul 09 2017 08:58
jezung sends brownie points to @adishjain58 :sparkles: :thumbsup: :sparkles:
:cookie: 48 | @adishjain58 |http://www.freecodecamp.com/adishjain58
Viktor Tiutiun
@vittorioVT
Jul 09 2017 08:58
@Seahchye class="text-center"
Adish Jain
@Adishjain58
Jul 09 2017 08:59
@JEzung welcome
guys what is the benefit of brownie points.
heroiczero
@heroiczero
Jul 09 2017 09:00
@Seahchye try using class="center-block"
Seah Eng Chye
@Seahchye
Jul 09 2017 09:01
ah ha got it!
Momozor
@momozor
Jul 09 2017 09:01
@Adishjain58 just a show off points feature, nothing more nothing less.
heroiczero
@heroiczero
Jul 09 2017 09:01
@Seahchye :+1:
Adish Jain
@Adishjain58
Jul 09 2017 09:01
ok @faraco
Seah Eng Chye
@Seahchye
Jul 09 2017 09:02
thanks @faraco @vittorioVT @heroiczero
CamperBot
@camperbot
Jul 09 2017 09:02
seahchye sends brownie points to @faraco and @vittoriovt and @heroiczero :sparkles: :thumbsup: :sparkles:
:cookie: 770 | @vittoriovt |http://www.freecodecamp.com/vittoriovt
:cookie: 352 | @faraco |http://www.freecodecamp.com/faraco
:star2: 1470 | @heroiczero |http://www.freecodecamp.com/heroiczero
Viktor Tiutiun
@vittorioVT
Jul 09 2017 09:02
@Seahchye you're welcome
熊琪琳
@xiongqilin
Jul 09 2017 09:07
Hi all,where can I set font-size?
Adish Jain
@Adishjain58
Jul 09 2017 09:08
<style>
Viktor Tiutiun
@vittorioVT
Jul 09 2017 09:08
Adish Jain
@Adishjain58
Jul 09 2017 09:08
h1{
font-size:10px;
}
</style>
熊琪琳
@xiongqilin
Jul 09 2017 09:09
thank you
I got it
Adish Jain
@Adishjain58
Jul 09 2017 09:10
@xiongqilin welcome
any thoughts?
Mahdi Burhan
@Mahdi0123
Jul 09 2017 09:56
image.png
how do i get that design on my portefolio on codepen?
Ene Catalin
@EneCatalin
Jul 09 2017 09:56
idk, I'd probs hate those guys just because it seems like a bookworm who won't shut up about how good he is at C
or some beep like that
Mahdi Burhan
@Mahdi0123
Jul 09 2017 09:58
image.png
Ene Catalin
@EneCatalin
Jul 09 2017 09:59
???
Mahdi Burhan
@Mahdi0123
Jul 09 2017 09:59
the design on codepen bro...idk seems weird
can't figure it out
May Kittens Devour Your Soul
@diomed
Jul 09 2017 10:00
ostrich so famous, ostrich has font: https://www.theleagueofmoveabletype.com/ostrich-sans
Mahdi Burhan
@Mahdi0123
Jul 09 2017 10:01
@diomed i gotta download it?
Ene Catalin
@EneCatalin
Jul 09 2017 10:01
A gorgeous modern sans-serif with a very long neck
checks out
Bashir Harrell
@bookofbash
Jul 09 2017 10:01
if you are using the $.getJSON() method for the Twitch Viewer project. Is there no way to see if a user is online?
var streamers = ["ESL_SC2", "OgamingSC2", "cretetion", "freecodecamp", "storbeck", "habathcx", "RobotCaleb", "noobs2ninjas", "riotgamesjp","garenatw"];

for ( i = 0; i< streamers.length; i++){
    console.log (streamers[i]);
    $.getJSON("https://cors-anywhere.herokuapp.com/https://wind-bow.glitch.me/twitch-api/channels/"+ streamers[i], function(json){
    $("#name").append("<li><img src="+json.logo+"><a href="+json.url+">"+json.name+"</a></li>");
        console.log (json);
            //Check if Online

    if(json["partner"]==null){
        //I know "partner" is not right, but it at least gives me the appearance of a working app
        $("#status").append("<li><p id='offline'>Offline</p></li>")
    }    else{
        $("#status").append("<li><p id='online'><a href="+json.url+">Online</a></p></li>")
    }
    })
}
heres my pen, if that helps. Please help.
https://codepen.io/bookofbash/pen/qjJBLE
Mahdi Burhan
@Mahdi0123
Jul 09 2017 10:04
@bookofbash gonna check it out
Bashir Harrell
@bookofbash
Jul 09 2017 10:07
@Mahdi0123 The help is much appreciated
Manish Giri
@Manish-Giri
Jul 09 2017 10:13
@diomed :wave:
May Kittens Devour Your Soul
@diomed
Jul 09 2017 10:14
hi @Manish-Giri :cat:
SafatB
@SafatB
Jul 09 2017 10:20
Can someone clear my confusion? I just started with Freecodecamp and I don't understand the need of the name attribute when making a checkbox.
<label>
  <input type="checkbox" name="personality">Loving
</label>
Ene Catalin
@EneCatalin
Jul 09 2017 10:23
it's so you can refference it later
with js/node/php/whatevs
David Lower
@davidlower
Jul 09 2017 10:23
@SafatB atribute naming is there in case something goes with the site and does show images or what not correctly. Instead it will leave the attribute so you can see what it was suppose to be.
It is also good for SEO best practices.
Ene Catalin
@EneCatalin
Jul 09 2017 10:24
@davidlower
wait
so it's not for backend ?
David Lower
@davidlower
Jul 09 2017 10:24
oh sorry I may have read the question wrong. I thought he was asking what attributes are for
now I see is a name attribute - in the case I am not 100%
Ene Catalin
@EneCatalin
Jul 09 2017 10:25
again
pretty sure it's for back-end
but @diomed is the only php specialist here
only he can tell
May Kittens Devour Your Soul
@diomed
Jul 09 2017 10:26
:unamused:
Ene Catalin
@EneCatalin
Jul 09 2017 10:27
enlighten him cat
David Lower
@davidlower
Jul 09 2017 10:27
I think it is to do with javascript recognition
is it like a class thing but for javascript to read
Ene Catalin
@EneCatalin
Jul 09 2017 10:28
which is what ostrich said :P
SafatB
@SafatB
Jul 09 2017 10:28
Oh, I have yet to start Javascript and after some digging I found this post. https://teamtreehouse.com/community/why-do-we-need-the-name-attribute-for-html-checkbox
Ene Catalin
@EneCatalin
Jul 09 2017 10:29
you're gonna go far
you can google
a lot of people are allergic to google
David Lower
@davidlower
Jul 09 2017 10:30
Yep so it is a class but for back-end - well done birdie!!!
or ostrich or what ever you :)
May Kittens Devour Your Soul
@diomed
Jul 09 2017 10:30
he's emu
David Lower
@davidlower
Jul 09 2017 10:31
Ah so his special power is spitting. Nice :)
SafatB
@SafatB
Jul 09 2017 10:31
@EneCatalin Lol, well I didn't understand the terms that you guys were using because I just started. ;-)
Ene Catalin
@EneCatalin
Jul 09 2017 10:40
ostrich
only the serb calls me emu
David Lower
@davidlower
Jul 09 2017 10:43
haha
I have a quick question. I have a nav at the top with an icon in it. When I style that icon I write nav, i {….} yet for some strange reason it is styling all my icons for the whole page. Why is that.
I figured it out is the use of the comma
May Kittens Devour Your Soul
@diomed
Jul 09 2017 10:47
yup
don't use ,
David Lower
@davidlower
Jul 09 2017 10:50
ok so this is where I get confused. Sometimes you need to use a comma and sometimes you don;t
But I think I have figured it out. If you have 2 or more classes that you want to style specific for all class. Then you separate all those classes with a comma. If you want to style a child of a class then you don’t separate with a comma is that correct.
so in my example I want to style the icon only in my nav. So that parent (nav) is selected and then the child without a comma.
Is that the right thinking
by using the nav and i with a comma, i am saying style the all nav elements and all i elements with this style etc
AJ
@ajoshi2733
Jul 09 2017 10:59
@diomed you there bro?
David Lower
@davidlower
Jul 09 2017 10:59
@diomed btw thanks :)
CamperBot
@camperbot
Jul 09 2017 10:59
davidlower sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:star2: 5157 | @diomed |http://www.freecodecamp.com/diomed
Ene Catalin
@EneCatalin
Jul 09 2017 10:59
cat is always here
Robert Robbins
@rwrobbins
Jul 09 2017 11:02
Good morning all
Ene Catalin
@EneCatalin
Jul 09 2017 11:02
it's afternoon
anyway, hi
AJ
@ajoshi2733
Jul 09 2017 11:03
hmm afternoon here as well
David Lower
@davidlower
Jul 09 2017 11:03
Good afternoon :)
Robert Robbins
@rwrobbins
Jul 09 2017 11:04
Sorry..... guess the greeting could be a little more "Aussie" like, and just say "G'day" :)
Ene Catalin
@EneCatalin
Jul 09 2017 11:04
are you from the land where everything tries to kill you ?
even the air since 90% of that place is desert
and you can just die cause of the heat
Robert Robbins
@rwrobbins
Jul 09 2017 11:05
Yes..... even the food
David Lower
@davidlower
Jul 09 2017 11:05
hahaha
Ostriches live there though
Robert Robbins
@rwrobbins
Jul 09 2017 11:05
Oh.... the heat.......coupled with high humidity
Ene Catalin
@EneCatalin
Jul 09 2017 11:06
ostriches can live anywhere
they're ostriches
David Lower
@davidlower
Jul 09 2017 11:07
Isn’t it that Australia has the top 9 poisonous snakes in the world and spiders for the matter
I would like to see an Ostrich live where I am haha
Robert Robbins
@rwrobbins
Jul 09 2017 11:09
I'd like to see the Ostrich races in the Arctic Circle
David Lower
@davidlower
Jul 09 2017 11:09
Yeah me too. I can’t see them burying their head in the snow too quickly :)
Robert Robbins
@rwrobbins
Jul 09 2017 11:12
An eye opener for any animal, to be sure
David Lower
@davidlower
Jul 09 2017 11:13
haha
Ene Catalin
@EneCatalin
Jul 09 2017 11:14
you do realize that's a myth
David Lower
@davidlower
Jul 09 2017 11:14
Head burying?
Ene Catalin
@EneCatalin
Jul 09 2017 11:14
yeah
David Lower
@davidlower
Jul 09 2017 11:14
No it’s true - 100% fact
David Lower
@davidlower
Jul 09 2017 11:17
I am only joking - but they do put eggs in the ground - so they do put their heads in the ground
why an ostrich anyway?
Ene Catalin
@EneCatalin
Jul 09 2017 11:18
why not an ostrich ?
2nd best birds after ravens
Robert Robbins
@rwrobbins
Jul 09 2017 11:19
I think I might like a buzzard for a pet
David Lower
@davidlower
Jul 09 2017 11:19
Yeah but why. There is nothing wrong with it? Just mere curiosity
Robert Robbins
@rwrobbins
Jul 09 2017 11:19
Easier feed.... they're not too picky
Ene Catalin
@EneCatalin
Jul 09 2017 11:20
because ostriches are just great
it was either this or a llama
David Lower
@davidlower
Jul 09 2017 11:20
I owned a few owls in my time (barn owl and a turkmenian eagle owl)
forget that link
David Lower
@davidlower
Jul 09 2017 11:21
why can’t I show an image
David Lower
@davidlower
Jul 09 2017 11:21
haha
Looks like he got hit by a car
lol
Oh that made me chuckle
Santosh Vijapure
@santoshvijapure
Jul 09 2017 11:26
ny suggestions
Robert Robbins
@rwrobbins
Jul 09 2017 11:26
Could be he's checking under the car for leaks
Santosh Vijapure
@santoshvijapure
Jul 09 2017 11:27
what\
David Lower
@davidlower
Jul 09 2017 11:29
@rwrobbins Oh I only just got that. It took me a while. Lol that made me chuckle
@santosh62 we are laughing at the owl pics above
Santosh Vijapure
@santoshvijapure
Jul 09 2017 11:30
huh>???
kk
madhuri soni
@sonimadhuri
Jul 09 2017 11:39
@santosh62 maybe the social buttons are repetitive .let them be in only any of the section
David Lower
@davidlower
Jul 09 2017 11:40
@santosh62 I great effort on the portfolio page btw. A few recommendations. Improve the padding around the main text. Perhaps make that a little small. When repsonsive and shrinking it down in size it hugs the edges a lot and that doesn’t look good. Finally that images are a little busy - distracting. Perhaps cover them in a opacity
Can someone help me format my portfolio page?
i suck at div and formatting
any feedback would be greatly appreciated
David Lower
@davidlower
Jul 09 2017 11:51
@ajoshi2733 I don’t want to sound like a complete dick but it is a vital part of coding being able to design. You should practice. Again not trying to be annoying. Honestly the best way to learn CSS.styling etc is watch someone build a site. Forget all the tutorials. Just want them live code on a website and style the page. Udemy has a lot of videos regarding this for only $10. I would strongly recommend that. I hope it helps
AJ
@ajoshi2733
Jul 09 2017 11:51
@davidlower thanks what else should i do?
CamperBot
@camperbot
Jul 09 2017 11:51
ajoshi2733 sends brownie points to @davidlower :sparkles: :thumbsup: :sparkles:
:cookie: 136 | @davidlower |http://www.freecodecamp.com/davidlower
AJ
@ajoshi2733
Jul 09 2017 11:52
any youtube styling videos?
David Lower
@davidlower
Jul 09 2017 11:52
@aj just try that and see how you go. Keep it simple
yeah try youtube
Ene Catalin
@EneCatalin
Jul 09 2017 11:52
@davidlower maybe he's in it for the back end ?
David Lower
@davidlower
Jul 09 2017 11:52
@EneCatalin true but everyone should have a basic grasp of styling
AJ
@ajoshi2733
Jul 09 2017 11:52
@EneCatalin i'm trying to learn from scratch....never touched code in my life
Ene Catalin
@EneCatalin
Jul 09 2017 11:52
but yeah that looks wonky
oke get rid of all that whitespace near the navbar
center the image
get rid of that title
because it looks like beep with the image under it
AJ
@ajoshi2733
Jul 09 2017 11:54
@EneCatalin i used img-responsive but i dont think it worked like i wanted it to
Ene Catalin
@EneCatalin
Jul 09 2017 11:54
that just looks bad
image.png
maybe provide a screenshot of the homepage but on a small scale so to say
the msg body is way too small
AJ
@ajoshi2733
Jul 09 2017 11:55
@EneCatalin msg body?
Ene Catalin
@EneCatalin
Jul 09 2017 11:56
over submit
messages are usually long
or at least longer than a mail address
why not just list your mail and contact
AJ
@ajoshi2733
Jul 09 2017 11:57
@EneCatalin gotcha
Ene Catalin
@EneCatalin
Jul 09 2017 11:57
instead of even bothering with that submit stuff ?
AJ
@ajoshi2733
Jul 09 2017 11:57
how do i style the div element?
Ene Catalin
@EneCatalin
Jul 09 2017 11:57
doesn't really fit the page
AJ
@ajoshi2733
Jul 09 2017 11:57
in css?
Ene Catalin
@EneCatalin
Jul 09 2017 11:57
which of them ?
AJ
@ajoshi2733
Jul 09 2017 11:57
all
Ene Catalin
@EneCatalin
Jul 09 2017 11:57
div {
background-color:blue;
}
AJ
@ajoshi2733
Jul 09 2017 11:59
@EneCatalin can i screenshot the tribute page and insert it?
Ene Catalin
@EneCatalin
Jul 09 2017 12:00
sure
post the img to imgur
and just link that
AJ
@ajoshi2733
Jul 09 2017 12:00
@EneCatalin how do i size the image to fit the page?
Ene Catalin
@EneCatalin
Jul 09 2017 12:01
I've no idea
I suck at css
AJ
@ajoshi2733
Jul 09 2017 12:01
@EneCatalin thanks
CamperBot
@camperbot
Jul 09 2017 12:01
ajoshi2733 sends brownie points to @enecatalin :sparkles: :thumbsup: :sparkles:
:cookie: 433 | @enecatalin |http://www.freecodecamp.com/enecatalin
Robert Robbins
@rwrobbins
Jul 09 2017 12:06
I'm not sure how widely broadcast it is, but Freecodecamp has a channel on Youtube
You can find a lot of published lesson videos there
AJ
@ajoshi2733
Jul 09 2017 12:08
@rwrobbins i'm building the portfolio page right after what i learned in the fcc syllabus so I might be missing some knowledge here and there
@rwrobbins but i'll check it out
@rwrobbins i'm really struggling at formatting right now...can't remember the syntax
madhuri soni
@sonimadhuri
Jul 09 2017 12:09
hey @ajoshi2733 you had added botstrap 4 under quick adds that is the reason img-responsive class wasnt working use img-fluid instead and remove the width bacause the image will itself scale to the width of container
DrGianPHD
@DrGianPHD
Jul 09 2017 12:09
I've just written my first page, could anyone give me a bit of feedback please? https://codepen.io/DrGianPHD/full/KqxexW/
AJ
@ajoshi2733
Jul 09 2017 12:10
@sonimadhuri no wonder, thanks a lot!!!
CamperBot
@camperbot
Jul 09 2017 12:10
ajoshi2733 sends brownie points to @sonimadhuri :sparkles: :thumbsup: :sparkles:
:cookie: 318 | @sonimadhuri |http://www.freecodecamp.com/sonimadhuri
Robert Robbins
@rwrobbins
Jul 09 2017 12:16
I wrote my first batch file this week
I needed a utility to remove an app from several PCs I was working on.... it was pretty cool
I know it's not quite the same as coding HTML, but it was fun
Ravi Kishore Thella
@ravikishorethella
Jul 09 2017 12:23
@DrGianPHD good work :clap:
DrGianPHD
@DrGianPHD
Jul 09 2017 12:24
@ravikishorethella Thank you! Is there anything I could improve on?
CamperBot
@camperbot
Jul 09 2017 12:24
drgianphd sends brownie points to @ravikishorethella :sparkles: :thumbsup: :sparkles:
:cookie: 926 | @ravikishorethella |http://www.freecodecamp.com/ravikishorethella
Ravi Kishore Thella
@ravikishorethella
Jul 09 2017 12:25
@DrGianPHD that's okay for a tribute page. Provide a wiki link
Momozor
@momozor
Jul 09 2017 12:44
@rwrobbins wonderful. :+1:
Gautamdhruv
@Gautamdhruv
Jul 09 2017 13:10
fnds i need help i stucked in target html elements with selecting jquery
Abdullah Ali
@aali21
Jul 09 2017 13:12
@Gautamdhruv show me a screenshot
aidanlearnscode
@aidanlearnscode
Jul 09 2017 13:19

Hey everyone. Am I able to get some feedback for my tribute page? Heres the link, appreciate any feedback:

https://codepen.io/aidanlearnscode/full/pwxgjq/

SaiChand Duppala
@saichandd
Jul 09 2017 13:22
@aidanlearnscode looks great, open the wiki link in a new tab on click
Abdullah Ali
@aali21
Jul 09 2017 13:22
yep what he said
Adish Jain
@Adishjain58
Jul 09 2017 13:23
i agree with you guys.
aidanlearnscode
@aidanlearnscode
Jul 09 2017 13:24
@DrGianPHD Good job. I'd try and make the page look a bit more inviting by using a bit more colour and different fonts. I would also say to look up harder things and spruce it up a bit. I'd also add a link in it as that is what is asked for by FCC. It's a website and it works though! Congrats! We are both on this journey together!
Ravi Kishore Thella
@ravikishorethella
Jul 09 2017 13:24
@aidanlearnscode looks good :clap: but, why is there a space in between the timeline ?
Abdullah Ali
@aali21
Jul 09 2017 13:25
Guys where should I make my personal portfolio page on
aidanlearnscode
@aidanlearnscode
Jul 09 2017 13:25
@ravikishorethella Thanks for the feedback. What do you mean about the space?
CamperBot
@camperbot
Jul 09 2017 13:25
aidanlearnscode sends brownie points to @ravikishorethella :sparkles: :thumbsup: :sparkles:
:cookie: 928 | @ravikishorethella |http://www.freecodecamp.com/ravikishorethella
Ravi Kishore Thella
@ravikishorethella
Jul 09 2017 13:26
blob
@aidanlearnscode between 1978 and 1978-1988
aidanlearnscode
@aidanlearnscode
Jul 09 2017 13:27
@imradioactive Thanks. Able to have a second look and test out the link. It should open in a new tab now.
CamperBot
@camperbot
Jul 09 2017 13:27
aidanlearnscode sends brownie points to @imradioactive :sparkles: :thumbsup: :sparkles:
:cookie: 319 | @imradioactive |http://www.freecodecamp.com/imradioactive
aidanlearnscode
@aidanlearnscode
Jul 09 2017 13:28

@ravikishorethella Not sure. My view shows up as this:
World Hockey Association (WHA)
1978 -- Indianapolis Racers

National Hockey League (NHL)
1978-1988 --Edmonton Oilers

Ravi Kishore Thella
@ravikishorethella
Jul 09 2017 13:29
blob
@aidanlearnscode
SaiChand Duppala
@saichandd
Jul 09 2017 13:31
@aidanlearnscode maybe it was intentional but you can increase the font of this line to say, 12px atleast "Gretzky holding up the ultimate price in ice hockey, the Stanley Cup!"
aidanlearnscode
@aidanlearnscode
Jul 09 2017 13:32
Its supposed to look like that. The WHA and NHL are two different leagues. I wanted to seperate them, that is why there is one team under WHA and then the rest under NHL. Is that any clearer? Although I should chnge the font size of the NHL and WHA which divides the list. @ravikishorethella
Ravi Kishore Thella
@ravikishorethella
Jul 09 2017 13:33
@aidanlearnscode that makes sense :smile:
aidanlearnscode
@aidanlearnscode
Jul 09 2017 13:34
@imradioactive Thanks for checking out the web page. Why do you think I should change it? Not arguing, just any insight as to why I should? Does it look too small?
CamperBot
@camperbot
Jul 09 2017 13:34
aidanlearnscode sends brownie points to @imradioactive :sparkles: :thumbsup: :sparkles:
:warning: aidanlearnscode already gave imradioactive points
SaiChand Duppala
@saichandd
Jul 09 2017 13:36
@aidanlearnscode yeah, may be you are using a big monitor on my 13 inch screen it looks small. its good anyway though
Abdullah Ali
@aali21
Jul 09 2017 13:37
Should I make my personal portfolio page as a pen or as a project?
SaiChand Duppala
@saichandd
Jul 09 2017 13:38
@aali21 pen, I suggest you make it locally and then add it to codepen
Abdullah Ali
@aali21
Jul 09 2017 13:38
what. how do you make it locally
aidanlearnscode
@aidanlearnscode
Jul 09 2017 13:41
@imradioactive Thats fine. It did look small so I've changed it. Its now set at 13.5px
SaiChand Duppala
@saichandd
Jul 09 2017 13:41
use a text editor to create the html file locally, add the css and js, and add to codepen after competing the whole page @aali21
Abdullah Ali
@aali21
Jul 09 2017 13:42
https://www.youtube.com/watch?v=2klCZXwfvLs because the tutorials on youtube make them on codepen
image.png
i wouldnt know how to do all this
SaiChand Duppala
@saichandd
Jul 09 2017 13:43
for the first one you may use codepen, but it'll be faster to do it locally
Abdullah Ali
@aali21
Jul 09 2017 13:44
Lol im just a beginner i dont even know js
SaiChand Duppala
@saichandd
Jul 09 2017 13:44
just google, u'll be able to find, if you couldn't ask here again
May Kittens Devour Your Soul
@diomed
Jul 09 2017 13:49
.
Ene Catalin
@EneCatalin
Jul 09 2017 13:50
cat
May Kittens Devour Your Soul
@diomed
Jul 09 2017 13:50
what?
Ene Catalin
@EneCatalin
Jul 09 2017 13:50
nothing
May Kittens Devour Your Soul
@diomed
Jul 09 2017 13:50
thought so
Ansuuv
@Ansuuv
Jul 09 2017 13:51
Anyone want to go thru the modules together?
If so, message me
But, note that I only started
May Kittens Devour Your Soul
@diomed
Jul 09 2017 13:52
Ah yes, Rushmore. Scariest president
Ansuuv
@Ansuuv
Jul 09 2017 13:52
I am continuing today, but I found this site out just 2 weeks ago
May Kittens Devour Your Soul
@diomed
Jul 09 2017 13:52
1 with 4 heads
james umali
@indefinite0212
Jul 09 2017 13:55
hello @diomed :goat: :cat:
May Kittens Devour Your Soul
@diomed
Jul 09 2017 13:56
hello :cookie: monstr @indefinite0212 :cat:
Mahdi Burhan
@Mahdi0123
Jul 09 2017 14:00
What should i do so the header dosen't go behind the texts as i scroll down?
Nick Ross
@codecampNick
Jul 09 2017 14:41
@Mahdi0123 you might look into "z-index"
shivam gupta
@shivamg11000
Jul 09 2017 14:53
hey all
Mahdi Burhan
@Mahdi0123
Jul 09 2017 14:56
@codecampNick thanks
CamperBot
@camperbot
Jul 09 2017 14:56
mahdi0123 sends brownie points to @codecampnick :sparkles: :thumbsup: :sparkles:
:cookie: 262 | @codecampnick |http://www.freecodecamp.com/codecampnick
Nick Ross
@codecampNick
Jul 09 2017 14:56
you're welcome @Mahdi0123 !
hey @shivamg11000 !
Speakey Shey
@MoonCodeing
Jul 09 2017 15:09
// Setup
function abTest(a, b) {
  // Only change code below this line



  // Only change code above this line

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

// Change values below to test your code
abTest(2,2);
Modify the function abTest so that if a or b are less than 0 the function will immediately exit with a value of undefined.
can anyone plz help me?
shivam gupta
@shivamg11000
Jul 09 2017 15:11
@MoonCodeing
function abTest(a , b){
      if ( a<0 || b<0)
          return undefined;

     return Math.round(Math.pow(Math.sqrt(a) + Math.sqrt(b), 2));
}
abTest(2, 2,);
Speakey Shey
@MoonCodeing
Jul 09 2017 15:11
oh now i remember thx @shivamg11000
CamperBot
@camperbot
Jul 09 2017 15:11
mooncodeing sends brownie points to @shivamg11000 :sparkles: :thumbsup: :sparkles:
:cookie: 374 | @shivamg11000 |http://www.freecodecamp.com/shivamg11000
Speakey Shey
@MoonCodeing
Jul 09 2017 15:20
var count = 0;

function cc(card) {
  // Only change code below this line
  if (card = 2,3,4,5,6 + 1) {
    return "?"
  }

  return "Change Me";
  // Only change code above this line
}

// Add/remove calls to test your function.
// Note: Only the last will display
cc(2); cc(3); cc(7); cc('K'); cc('A');
umm this is like the golf thingy but except with different stuff
Speakey Shey
@MoonCodeing
Jul 09 2017 15:27
can someone plz help me?
Ene Catalin
@EneCatalin
Jul 09 2017 15:27
hmm, js, cat is a god at js
@diomed
Nick Ross
@codecampNick
Jul 09 2017 15:33
@MoonCodeing I think I might tackle this using if and else if's. assigning the value you want to return with "="
actually "+="
you can compare with card <= or >=. I thought about using a switch but couldn't get around the "return" part of the switch, you need to go through all of the "cc" values in order for this to work
Speakey Shey
@MoonCodeing
Jul 09 2017 15:36
var count = 0;

function cc(card) {
  // Only change code below this line
  if (card = 2,3,4,5,6) {
    return "+=";
  } else if (card = 7,8,9) {
    return "=";
  } else if (card = 10, 'J', 'Q', 'K', 'A')
  return "-=";
  // Only change code above this line
}

// Add/remove calls to test your function.
// Note: Only the last will display
cc(2); cc(3); cc(7); cc('K'); cc('A');
@codecampNick i tried this
Momozor
@momozor
Jul 09 2017 15:37
talking about js, GNOME+ project has officially supported Javascript binding for GTK+3.0 via gjs. Not sure about the glib or the pango ecosystem, but it is wonderful for anybody want to try developing gtk applications on Linux with Javascript.
madhuri soni
@sonimadhuri
Jul 09 2017 15:38
hey @MoonCodeing first check for the conditions using if else and based on condition increment/decrement the count value. at the end of the function if count>0 then add "Bet" to count else "Hold"
Speakey Shey
@MoonCodeing
Jul 09 2017 15:38
sorry i don't understand exact language like that it needs to be in code form for me plz
Kyle Holm
@thekholm80
Jul 09 2017 15:38
@faraco that's pretty cool
Nick Ross
@codecampNick
Jul 09 2017 15:38
that is a pretty good start @MoonCodeing ! Yep, see @sonimadhuri suggestion
Peter Cruckshank
@petercr
Jul 09 2017 15:39
@MoonCodeing There's nothing there tho increment the count variable. Wasn't that the question
Momozor
@momozor
Jul 09 2017 15:41
@thekholm80 well, it's great for anybody who knows Javascript. aww not for me :(
Kyle Holm
@thekholm80
Jul 09 2017 15:41
lol
madhuri soni
@sonimadhuri
Jul 09 2017 15:47
hey @codecampNick if(x==1,2,3) isnt that wrong
Alexandar B
@ace1122sp
Jul 09 2017 15:48
hello :wave:
Nick Ross
@codecampNick
Jul 09 2017 15:48
@sonimadhuri yes, it would be better if it was "if (x >= 2 && x<=6)" to find a range
Speakey Shey
@MoonCodeing
Jul 09 2017 15:49
@sonimadhuri how would that work?
madhuri soni
@sonimadhuri
Jul 09 2017 15:49
@MoonCodeing which one?
levani452000
@levani452000
Jul 09 2017 15:49
how can i make image same width as div or less ?just to not be larger than div
Speakey Shey
@MoonCodeing
Jul 09 2017 15:50
like that last one you tagged me on @sonimadhuri
counting-cards
madhuri soni
@sonimadhuri
Jul 09 2017 15:53
@MoonCodeing you need an if to check range between 2 and 6 and an else to check if it was 10, 'J', 'Q', 'K', 'A' (we can ignore checking 7,8,9 coz you only add 0 to count if thats the case) .then after checking it use an if to check ifcount>0
@MoonCodeing try converting what i have typed to code and it should work .
Nick Ross
@codecampNick
Jul 09 2017 15:53
how are your guys getting the screen shots? is is something built into the challanges?
Speakey Shey
@MoonCodeing
Jul 09 2017 15:53
ok i'm getting more confused @sonimadhuri
madhuri soni
@sonimadhuri
Jul 09 2017 15:54
@MoonCodeing alright paste your code
Speakey Shey
@MoonCodeing
Jul 09 2017 15:54
var count = 0;

function cc(card) {
  // Only change code below this line
  if (card = 2,3,4,5,6) {
    return "+=";
  } else if (card = 7,8,9) {
    return "=";
  } else if (card = 10, 'J', 'Q', 'K', 'A')
  return "-=";
  // Only change code above this line
}

// Add/remove calls to test your function.
// Note: Only the last will display
cc(2); cc(3); cc(7); cc('K'); cc('A');
Nick Ross
@codecampNick
Jul 09 2017 15:55

var count = 0;

function cc(card) {
// Only change code below this line
var value = 0;
if (card >= 2 && card <= 6) {
value += 1;
}
else if (card <= 7 && card >= 9){
value += 0;
}
else{
value -= 1;
}

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

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

theclayster
@theclayster
Jul 09 2017 15:55
whats up code fam
madhuri soni
@sonimadhuri
Jul 09 2017 15:57
@MoonCodeing firstly you cant use if in this way if (card = 2,3,4,5,6)
Nick Ross
@codecampNick
Jul 09 2017 15:57
@here how are you pasting the code?
Speakey Shey
@MoonCodeing
Jul 09 2017 15:57
oh k
Alexandar B
@ace1122sp
Jul 09 2017 15:57
'''
CamperBot
@camperbot
Jul 09 2017 15:57
:bulb: to format code use backticks! ``` more info
Nick Ross
@codecampNick
Jul 09 2017 15:58

```var count = 0;

function cc(card) {
// Only change code below this line
var value = 0;
if (card >= 2 && card <= 6) {
value += 1;
}
else if (card <= 7 && card >= 9){
value += 0;
}
else{
value -= 1;
}

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

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

'''var count = 0;

function cc(card) {
// Only change code below this line
var value = 0;
if (card >= 2 && card <= 6) {
value += 1;
}
else if (card <= 7 && card >= 9){
value += 0;
}
else{
value -= 1;
}

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

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

CamperBot
@camperbot
Jul 09 2017 15:59
:bulb: to format code use backticks! ``` more info
Alexandar B
@ace1122sp
Jul 09 2017 15:59
3 backticks in first row alone, then your code, then 3 backticks in the last row alone
madhuri soni
@sonimadhuri
Jul 09 2017 16:00
@MoonCodeing you remeber using the && operator in the previous fcc lessons
Speakey Shey
@MoonCodeing
Jul 09 2017 16:02
@sonimadhuri what's does && operator mean?
madhuri soni
@sonimadhuri
Jul 09 2017 16:02
@MoonCodeing it checks if the conditions at either side of && are true
Nick Ross
@codecampNick
Jul 09 2017 16:03
```
var count = 0;

function cc(card) {
  // Only change code below this line
  var value = 0;
  if (card >= 2 && card <= 6) {
    value += 1;
  }
  else if (card <= 7 && card >= 9){
    value += 0;
  }
  else{
    value -= 1;
  }


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

// Add/remove calls to test your function.
// Note: Only the last will display
cc(2); cc(3); cc(7); cc('K'); cc('A');
madhuri soni
@sonimadhuri
Jul 09 2017 16:04
suppose if(num>1 && num<5) only when num is greater than 1 and num is lesser than 5 the if block will be executed
Nick Ross
@codecampNick
Jul 09 2017 16:04
or better yet
var count = 0;

function cc(card) {
  // Only change code below this line
  if (card >= 2 && card <= 6) {
    count += 1;
  }
  else if (card <= 7 && card >= 9){
    count += 0;
  }
  else{
    count -= 1;
  }


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

// Add/remove calls to test your function.
// Note: Only the last will display
cc(2); cc(3); cc(7); cc('K'); cc('A');
sorry for the spam! just couldn't get the hang of pasting this. pretty simple once you figure it out.
@MoonCodeing hopefully the last example makes sense?
Speakey Shey
@MoonCodeing
Jul 09 2017 16:10
oh i get it now
so && is like if it's um kind of or and || is between?
teevik
@teevik
Jul 09 2017 16:11
&& checks if both are true, || checks if one of them is true
Nick Ross
@codecampNick
Jul 09 2017 16:12
@MoonCodeing see @teevik 's response.
&& is good for checking a range or if you want two conditions to be evaluated for "truethy"
Darren
@DarrenfJ
Jul 09 2017 16:16
morning fCC
Nick Ross
@codecampNick
Jul 09 2017 16:16
"||" is good if you need one or another condition to be true. In this challenge "&&" would be best because you are looking for cards that are in a range.
morning @DarrenfJ
Darren
@DarrenfJ
Jul 09 2017 16:17
@codecampNick hey buddy
Kyle Holm
@thekholm80
Jul 09 2017 16:18
@DarrenfJ :wave:
Darren
@DarrenfJ
Jul 09 2017 16:18
@thekholm80 buddy!
how goes it?
Kyle Holm
@thekholm80
Jul 09 2017 16:18
no complaints, you?
Darren
@DarrenfJ
Jul 09 2017 16:19
just popping in to thank the hard working volunteers.. Don't feel the need to thank me back.. got my brownies for today (from being online for hours last night... sooo slow) ;)
Kyle Holm
@thekholm80
Jul 09 2017 16:20
i think the forum is the new cookie factory
Darren
@DarrenfJ
Jul 09 2017 16:20
thanks @thekholm80 @codecampNick @teevik @ace1122sp @faraco @sonimadhuri
CamperBot
@camperbot
Jul 09 2017 16:20
darrenfj sends brownie points to @thekholm80 and @codecampnick and @teevik and @ace1122sp and @faraco and @sonimadhuri :sparkles: :thumbsup: :sparkles:
:cookie: 198 | @teevik |http://www.freecodecamp.com/teevik
:star2: 1304 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:cookie: 263 | @codecampnick |http://www.freecodecamp.com/codecampnick
:cookie: 383 | @ace1122sp |http://www.freecodecamp.com/ace1122sp
:cookie: 353 | @faraco |http://www.freecodecamp.com/faraco
:cookie: 319 | @sonimadhuri |http://www.freecodecamp.com/sonimadhuri
Nick Ross
@codecampNick
Jul 09 2017 16:38
@MoonCodeing just for practice I worked on that challenge. There is a small flaw in my example.
should be
else if (card >= 7 && card <= 9)
@MoonCodeing I used a switch statement to return the values requested.
catapulto
@catapulto
Jul 09 2017 16:43
output += global: +myglobal; what this line of code mean
?
Nick Ross
@codecampNick
Jul 09 2017 16:46
@catapulto does that line of code even work?
catapulto
@catapulto
Jul 09 2017 16:47
i passed the challenge with that line so it should be working i think @codecampNick
Nick Ross
@codecampNick
Jul 09 2017 16:48
@catapulto looks like it is trying to assign a global variable + another global variable to a variable named output.
catapulto
@catapulto
Jul 09 2017 16:48
sorry i see it now correctly
its this
Nick Ross
@codecampNick
Jul 09 2017 16:48
cool! what challenge were you working?
catapulto
@catapulto
Jul 09 2017 16:49
output += "myglobal : " + oopsglobal;
Nick Ross
@codecampNick
Jul 09 2017 16:49
ahhh
catapulto
@catapulto
Jul 09 2017 16:49
what this mean?
@codecampNick
Nick Ross
@codecampNick
Jul 09 2017 16:50
okay so what it is doing is assigning the text "myglobal:" and adding (appendiing) the value of the global variable to it
so, if your global variable = 2;
output would equal "myglobal: 2"
Output would be a string at this point.
catapulto
@catapulto
Jul 09 2017 16:54
thanks @codecampNick
CamperBot
@camperbot
Jul 09 2017 16:54
catapulto sends brownie points to @codecampnick :sparkles: :thumbsup: :sparkles:
:cookie: 264 | @codecampnick |http://www.freecodecamp.com/codecampnick
catapulto
@catapulto
Jul 09 2017 16:54
hey
Nick Ross
@codecampNick
Jul 09 2017 16:54
if this line of code was in a loop, you would be creating a longer and longer "output" variable as you are using "+=". I would try the same code with "output ="
You're welcome @catapulto
@catapulto hey
catapulto
@catapulto
Jul 09 2017 16:57
did claim your fr
Alice Clark
@coderstravel
Jul 09 2017 17:08
Afternoon all, can someone help with this challange plz.
var myPlants = [
  { 
    type: "flowers",
    list: [
      "rose",
      "tulip",
      "dandelion"
    ]
  },
  {
    type: "trees",
    list: [
      "fir",
      "pine",
      "birch"
    ]
  }  
];

// Only change code below this line

var secondTree = myPlants[1].trees[1]; // Change this line
my error reads "can't read property '1' of undefind
Luis Felipe López G.
@luishendrix92
Jul 09 2017 17:13
there's no 'trees' property
only type and list
maybe you meant 'list'
Alexander Køpke
@alexanderkopke
Jul 09 2017 17:14
@coderstravel "trees" is a value not a property name. To access values in objects, use property names. So to get "trees" access type, to access the list array, use list[number]
Alice Clark
@coderstravel
Jul 09 2017 17:19
@alexanderkopke Thanks, that was it . :+1:
CamperBot
@camperbot
Jul 09 2017 17:19
coderstravel sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:star2: 1601 | @alexanderkopke |http://www.freecodecamp.com/alexanderkopke
theclayster
@theclayster
Jul 09 2017 17:32
i hate this javascript section smh
Momozor
@momozor
Jul 09 2017 17:32
why?
Nick Ross
@codecampNick
Jul 09 2017 17:35
@alexanderkopke I've tried about everything but cant get the above code to work. What would the var "secondTree" =?
Momozor
@momozor
Jul 09 2017 17:38
@alexanderkopke So to get "trees" access type, to access the list array, use list[number] @coderstravel
basically, var secondTree = myPlants[1].list[1] instead of var secondTree = myPlants[1].trees[1] @coderstravel
Momozor
@momozor
Jul 09 2017 17:43
wait what...oh wow..nevermind. The newer messages just loaded..forget above comments.
will
@WillBeatteay
Jul 09 2017 17:48
How do I add an h4 element to a <div class="col-xs-6"> element?
Nick Ross
@codecampNick
Jul 09 2017 17:48
@faraco thanks! is there a way to access trees without using the index?
CamperBot
@camperbot
Jul 09 2017 17:48
codecampnick sends brownie points to @faraco :sparkles: :thumbsup: :sparkles:
:cookie: 354 | @faraco |http://www.freecodecamp.com/faraco
Nick Ross
@codecampNick
Jul 09 2017 17:49
@WillBeatteay <div class="col-xs-6><h4>your text</h4></div>
will
@WillBeatteay
Jul 09 2017 17:50
@codecampNick thanks for the help!
CamperBot
@camperbot
Jul 09 2017 17:50
willbeatteay sends brownie points to @codecampnick :sparkles: :thumbsup: :sparkles:
:cookie: 265 | @codecampnick |http://www.freecodecamp.com/codecampnick
Nick Ross
@codecampNick
Jul 09 2017 17:50
you're welcome @WillBeatteay
Alexander Køpke
@alexanderkopke
Jul 09 2017 17:52
@codecampNick since list is an array, you'll have to use array methods to access its values
Alexandar B
@ace1122sp
Jul 09 2017 17:52
been out for a running and now fresh to resume coding :fire:
Momozor
@momozor
Jul 09 2017 18:02
@codecampNick As a bonus, this documentation has enough array methods usage examples for you to experiment.
Sam Goldberg
@sgoldber61
Jul 09 2017 18:08
Hi, I am doing the weather viewer challenge. I was able to get the data from the dark sky api, but as of a few minutes ago it has suddenly stopped working. I have used nowhere even remotely near the free 10,000 api calls. Has this happened to anyone before?
Kyle Holm
@thekholm80
Jul 09 2017 18:11
@sgoldber61 using codepen?
Sam Goldberg
@sgoldber61
Jul 09 2017 18:11
yeah
Kyle Holm
@thekholm80
Jul 09 2017 18:11
using dark sky in codepen violates the dark sky ToS
Nick Ross
@codecampNick
Jul 09 2017 18:12
Excellent @faraco ! I stepped away for a bit and figured away to do what I was thinking would be a for loop and looking for hasOwnProperty. Then loop through what you happen to be looking for.
Sam Goldberg
@sgoldber61
Jul 09 2017 18:12
is there a different api that doesn't consider using codepen a ToS violation?
Kyle Holm
@thekholm80
Jul 09 2017 18:12
@sgoldber61 freeCodeCamp/freeCodeCamp#15598 there's an api that has been created for this challenge, you can find it in this thread
Alexandar B
@ace1122sp
Jul 09 2017 18:13
@sgoldber61 that was happening to me from time to time.. it's not you, it's them :D
though i'm using open weather api
Sam Goldberg
@sgoldber61
Jul 09 2017 18:14
ok it looks like i'll use the fcc weather api. thanks!
Momozor
@momozor
Jul 09 2017 18:17
Do you guys use Zeal?
The software is great when there's no internet connection to search for language/framework/library documentations. The term finder is just wonderful.
Vishal Nagda
@vishalnagda1
Jul 09 2017 18:20

Hello everyone!!!
Currently I’m working on this exercise.
So, as a solution for my problem I wrote the following code :

function bouncer(arr) {
  // Don't show a false ID to this bouncer.
  return arr.filter(function(index){
    return !isNaN(index) && index !== false && index !== null && index !== 0 && index !== "" && index !== undefined;
  });
}

bouncer([7, "ate", "", false, 9]);

which is not working as I want, because of !isNaN.
Can anyone here explain me why is it not working ?

Uriel Guzmán
@Burinson
Jul 09 2017 18:21
var myMusic = [
  {
    "artist": "Billy Joel",
    "title": "Piano Man",
    "release_year": 1973,
    "formats": [ 
      "CS", 
      "8T", 
      "LP" ],
    "gold": true
  }
  // Add record here
,{
   "artist": "My Bloody Valentine",
  "title": "Loveless",
  "release_year": 1991,
  "formats": [
    "CS",
    "8T",
    "LP" ],
  "gold": false
}


];
Why am I getting a comma warning and is it something to worry about?
Momozor
@momozor
Jul 09 2017 18:22
@Burinson what the test case tells you? Can you please post the literal warnings here?
connor-5
@connor-5
Jul 09 2017 18:23
@vishalnagda1 it's not working because you can't test out NaN individually like that
Ravi Kishore Thella
@ravikishorethella
Jul 09 2017 18:23
@Burinson why is , in,{
, should be after the first object
{......},
{......}
Momozor
@momozor
Jul 09 2017 18:25
@ravikishorethella Does the test case also test the code style?
Ravi Kishore Thella
@ravikishorethella
Jul 09 2017 18:25
@faraco no, I don't think so
Momozor
@momozor
Jul 09 2017 18:26
hmm...
Uriel Guzmán
@Burinson
Jul 09 2017 18:28
@ravikishorethella Oh, I thought the order didn't matter, thanks
CamperBot
@camperbot
Jul 09 2017 18:28
burinson sends brownie points to @ravikishorethella :sparkles: :thumbsup: :sparkles:
:cookie: 929 | @ravikishorethella |http://www.freecodecamp.com/ravikishorethella
connor-5
@connor-5
Jul 09 2017 18:29
@vishalnagda1 also, if you test for isNaN, you'll filter out non-number strings, which need to be kept in there. A better method here is to try only checking for the things that you want to keep, rather than removing what you don't want. Does that make sense?
Vishal Nagda
@vishalnagda1
Jul 09 2017 18:30
@connor-5 thanks buddy got the idea. thanks for the help. :smile:
CamperBot
@camperbot
Jul 09 2017 18:30
vishalnagda1 sends brownie points to @connor-5 :sparkles: :thumbsup: :sparkles:
:cookie: 282 | @connor-5 |http://www.freecodecamp.com/connor-5
Kevin
@kevinwr
Jul 09 2017 18:56
Anyone know which editors have a live load/preview feature, besides brackets? Besides that, do you know if brackets has a plugin to edit several occurrences of a tag,variable, etc?; I've found myself in several situations where I have several variables or tags in a document that I either want to change the name of at the same time without having to try to find each occurrence and change it, or delete a tag without affecting the inner content.
Alexandar B
@ace1122sp
Jul 09 2017 19:00
which editor do you use? try atom, i use it and it's very good and it's free :D ...
Kevin
@kevinwr
Jul 09 2017 19:01
I have atom installed and tried it, but couldn't really figure out how to use it. Didn't seem intuitive to me...also seemed to take more of my computer resources compared to brackets
right now I use brackets
but really want the ability to edit multiple occurrences of a tag/variable/etc.
Alexandar B
@ace1122sp
Jul 09 2017 19:02
ctrl + d is a command in atom for that
Kyle Holm
@thekholm80
Jul 09 2017 19:02
lots of folks really like vs code, you might take a look at that
Kevin
@kevinwr
Jul 09 2017 19:02
vs code?
never heard of that
Manish Giri
@Manish-Giri
Jul 09 2017 19:03
@kevinwr all editors have find and replace feature..
Kyle Holm
@thekholm80
Jul 09 2017 19:03
@Manish-Giri loves the jetbrains stuff, worth looking at as well
Manish Giri
@Manish-Giri
Jul 09 2017 19:03
:smiling_imp:
Kevin
@kevinwr
Jul 09 2017 19:04
i'll check that out too.
Kyle Holm
@thekholm80
Jul 09 2017 19:04
webstorm, that's the one you use for web @Manish-Giri ?
Manish Giri
@Manish-Giri
Jul 09 2017 19:04
yeah
Kevin
@kevinwr
Jul 09 2017 19:05
@Manish-Giri they might, but I need something simple. For instance, if I double click on a variable, it allows me to edit every occurrence of that variable
Manish Giri
@Manish-Giri
Jul 09 2017 19:05
Screenshot 2017-07-09 15.04.44.png
Kevin
@kevinwr
Jul 09 2017 19:05
not having to do a whole find...replace...etc
Kyle Holm
@thekholm80
Jul 09 2017 19:06
I've had good luck with Atom, figure i'll stick with that until i have a reason to change
Nick Ross
@codecampNick
Jul 09 2017 19:06
@vishalnagda1 I found this example that works pretty sweet
```
function bouncer(arr) {
  return arr.filter(Boolean);
}

bouncer([0, 1, 2, 3, 'ate', '', false, NaN]);
Manish Giri
@Manish-Giri
Jul 09 2017 19:09
@thekholm80 stroke
Kyle Holm
@thekholm80
Jul 09 2017 19:10
@Manish-Giri i gained 2 lbs just watching that
render() {
    return null;
  }
think it will work?
Manish Giri
@Manish-Giri
Jul 09 2017 19:12
yup
you can either return valid JSX or null
Kyle Holm
@thekholm80
Jul 09 2017 19:13
super
think last time i just had an empty div there
Alexander Køpke
@alexanderkopke
Jul 09 2017 19:14
@kevinwr a find and replace is pretty simple. You can make it find all occurrences of a variable and replace them with whichever variable name you'd want.
Eric Miller
@ericmiller777
Jul 09 2017 19:21
hey guys in the Stand in Line how is the array [1,2,3,4,5] should the array just be empty because i never set it?
I tryed actully making the array [1,2,3,4,5] that causes the test to fail
Nick Ross
@codecampNick
Jul 09 2017 19:22
@ericmiller777 can you paste your code?
Eric Miller
@ericmiller777
Jul 09 2017 19:22
function nextInLine(Arr, item) {
// Your code here
Arr.push(item);
return Arr.shift(); // Change this line
}
thjis works
actully i understand now
Nick Ross
@codecampNick
Jul 09 2017 19:23
cool
Eric Miller
@ericmiller777
Jul 09 2017 19:23
it uses the example code in the console.log
but
i dont really get how I was supposed to understand that
why not let us define the array
Nick Ross
@codecampNick
Jul 09 2017 19:24
you are supposed to manipulate the array. an example of how to work with a simpler "object"
later on when you're developing, you don't want to define every array you're working with.
__mifflin__
@cdrainxv
Jul 09 2017 19:39
@Manish-Giri: postman, postman, postman… them boys up to something. :smile:
Manish Giri
@Manish-Giri
Jul 09 2017 19:40
:smiling_imp:
Jose C Villegas
@jvillegas0831
Jul 09 2017 19:43
hi is anyone can help me I'm in the Ditch Costum CSS for Bootsrap challenge I need to. Your h2 element should no longer have the class red-text.
Your h2 element should now have the class text-primary.

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

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

h2 {
font-family: Lobster, Monospace;
}

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

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

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

<div class="container-fluid">
<h2 class="red-text text-center">CatPhotoApp</h2>

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

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

<img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary">Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info">Info</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger">Delete</button>
</div>
</div>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>

__mifflin__
@cdrainxv
Jul 09 2017 19:47

@jvillegas0831: Remove this:

.text-primary {
color: red;
}

All you need to do is add the class to the h2 element like: <h2 class=". . .">Text Here</h2>. The text-primary class is already predefined with styles added to it. Also note: Your h2 element should no longer have the class red-text. Remove that class from your element as well.

Kyle Holm
@thekholm80
Jul 09 2017 19:51
i love it when stuff works
Jose C Villegas
@jvillegas0831
Jul 09 2017 19:51
thanks I was lookin the wrong thing @cdrainxv
CamperBot
@camperbot
Jul 09 2017 19:51
jvillegas0831 sends brownie points to @cdrainxv :sparkles: :thumbsup: :sparkles:
:star2: 2754 | @cdrainxv |http://www.freecodecamp.com/cdrainxv
Kyle Holm
@thekholm80
Jul 09 2017 19:51
it's sad that i'm always surprised when my code works, though
Manish Giri
@Manish-Giri
Jul 09 2017 19:52
@thekholm80 freeCodeCamp/freeCodeCamp#15613
time to leave gitter permanently
Kyle Holm
@thekholm80
Jul 09 2017 19:54
at least they're not merging the main room into help, too?
__mifflin__
@cdrainxv
Jul 09 2017 19:54
ugh….
Manish Giri
@Manish-Giri
Jul 09 2017 19:54
lol that will be merged into casual
Kyle Holm
@thekholm80
Jul 09 2017 19:54
on the plus side, it would encourage me to spend more time on slack and discord
Manish Giri
@Manish-Giri
Jul 09 2017 19:54
such a shame
Greta Piliponytė
@gpiliponyte
Jul 09 2017 20:18
Hi guys :D I am so stuck with the pomodoro clock project.. How can I make a timer that starts by pressing a button and pauses by pressing it again without any delay?
Kyle Holm
@thekholm80
Jul 09 2017 20:19
javascript setInterval() and clearInterval()
Greta Piliponytė
@gpiliponyte
Jul 09 2017 20:19
@thekholm80 yea but...
@thekholm80 the way I did it it just makes a 3 second delay..
Kyle Holm
@thekholm80
Jul 09 2017 20:19
then don't do it that way
Greta Piliponytė
@gpiliponyte
Jul 09 2017 20:20
alrighty then
Ayush Mahajan
@ay2306
Jul 09 2017 20:34
anyone here completed simon game challenge?
Kyle Holm
@thekholm80
Jul 09 2017 20:35
yep
Ayush Mahajan
@ay2306
Jul 09 2017 20:35
Hey guys I am making simon game. and need some help.. How can I wait till user click color-button n times
my codepen: https://codepen.io/ayush2306/pen/PjyWpz?editors=1011
@thekholm80
@thekholm80 how to make JS wait for user input?
Kyle Holm
@thekholm80
Jul 09 2017 20:35
add an event listener
Ayush Mahajan
@ay2306
Jul 09 2017 20:36
I get that but wont my code below that will start running if I dont click that button?
Kyle Holm
@thekholm80
Jul 09 2017 20:36
the event listener should trigger code in response to an event
Ayush Mahajan
@ay2306
Jul 09 2017 20:37
@thekholm80 Hey I thought of a way. let me try that. sorry for wasting your time...
Kyle Holm
@thekholm80
Jul 09 2017 20:38
for example, using jQuery:
$('#myButton').on('click', function() {
  // whatever is here only gets executed when the element with the id 'myButton' is clicked
});
Ryan Draves
@RyanDraves
Jul 09 2017 21:24
hello, I'm having issues on the "map the debris" challenge. the keys in each object-like array value return with " " around them, and the answer specifically expects a return without them. any idea on what's going on?
Here's my work so far:
function orbitalPeriod(arr) {
  var GM = 398600.4418;
  var earthRadius = 6367.4447;
  for (i=0; i<arr.length; i++) {
    var aCubed = Math.pow(earthRadius + arr[i].avgAlt, 3);
    var sqrt = Math.pow(aCubed / 398600.4418, 0.5);
    var orbital = Math.PI * 2 * sqrt;
    var finalNum = Math.round(orbital);
    arr[i].orbitalPeriod = finalNum;
    delete arr[i].avgAlt;
  }
  return arr[0].orbitalPeriod;
}

orbitalPeriod([{name : "sputnik", avgAlt : 35873.5553}]);
levani452000
@levani452000
Jul 09 2017 21:28
https://codepen.io/clevani/pen/eRLxrG how make background image's opacity in div ?
Ryan Draves
@RyanDraves
Jul 09 2017 21:30
nevermind, I solved it by using bracket notation
Ryan Draves
@RyanDraves
Jul 09 2017 21:36
@levani452000 the css for that is "opacity." this will target the whole div, so the text will also become faded too
levani452000
@levani452000
Jul 09 2017 21:39
i know and i want only to change background image opacity
MykhailoAntoshchuk
@MykhailoAntoshchuk
Jul 09 2017 22:45
What`s up guys. Does anybody know how to deal with it Mixed Content: The page was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://quotes.stormconsultancy.co.uk/random.json'. This request has been blocked; the content must be served over HTTPS.
Manish Giri
@Manish-Giri
Jul 09 2017 23:00
@MykhailoAntoshchuk use an HTTPS api
Janice He
@Janicekwing
Jul 09 2017 23:01
helloo I am on the Javascript challenge that involves capitalizing the first character of each word in a string. I'm not sure why, as a result, the string all returns lowercase.. can someone take a look at my code?
function titleCase(str) {
str = str.toLowerCase();
var arr = str.split(' ');
for (i = 0; i < arr.length; i++){
arr[i].charAt(0).toUpperCase();
}
arr = arr.join(" ");
return arr;
}
titleCase("I'm a little tea pot");
Manish Giri
@Manish-Giri
Jul 09 2017 23:09
@Janicekwing arr[i].charAt(0).toUpperCase(); - what do you think this does?
Janice He
@Janicekwing
Jul 09 2017 23:10
@Manish-Giri it takes the first letter of each word and capitalizes it
Manish Giri
@Manish-Giri
Jul 09 2017 23:10
nope
it returns you the capitalized value, but it does not change the letter itself.
@Janicekwing
Janice He
@Janicekwing
Jul 09 2017 23:11
is that because of the charAt method or the toUpperCase method?
Manish Giri
@Manish-Giri
Jul 09 2017 23:11
arr[i].charAt(0).toUpperCase(); - to the JS engine, this is like saying - okay here's the capitalized value, but since you never told me what do with it now, I guess I'll just throw it away..
Janice He
@Janicekwing
Jul 09 2017 23:11
oh
I tried arr[i][0].toUpperCase() earlier but I'm not sure why that didn't work either
Kyle Holm
@thekholm80
Jul 09 2017 23:12
Poor letters, just getting thrown away
Manish Giri
@Manish-Giri
Jul 09 2017 23:12
@Janicekwing both would work, but both have the same problem. They return a value to you, and you're not using it anywhere..
teach m e mongo @thekholm80
Kyle Holm
@thekholm80
Jul 09 2017 23:13
okay
Janice He
@Janicekwing
Jul 09 2017 23:13
I tried to save it by doing arr[i][0] = arr[i][0].toUpperCase();
Kyle Holm
@thekholm80
Jul 09 2017 23:13
npm install -g mongod
Manish Giri
@Manish-Giri
Jul 09 2017 23:14
@Janicekwing remember strings are immutable? You can't modify individual letters of a string..
Kyle Holm
@thekholm80
Jul 09 2017 23:15
you can split a string with String.split('') and then you have an array, which IS mutable
Manish Giri
@Manish-Giri
Jul 09 2017 23:16
Tiggy is on FCC github but not here...
Kyle Holm
@thekholm80
Jul 09 2017 23:16
doing tiggy things
Margaret
@Margaret2
Jul 09 2017 23:17
I haz much opinions :yum:
Kyle Holm
@thekholm80
Jul 09 2017 23:18
much lurking
Margaret
@Margaret2
Jul 09 2017 23:18
@Manish-Giri what do you think the purpose of the Profile Lookup challenge is
Manish Giri
@Manish-Giri
Jul 09 2017 23:18
such opinionating
@Margaret2 I think it teaches how to stalk profile of @Margaret2
Margaret
@Margaret2
Jul 09 2017 23:18
because that one is screwed up, everyone has problems with it, it needs to be fixed
Kyle Holm
@thekholm80
Jul 09 2017 23:18
pretty sure that's where i learned
Manish Giri
@Manish-Giri
Jul 09 2017 23:18
that's what I did
Margaret
@Margaret2
Jul 09 2017 23:23
@Manish-Giri go like my comments on GH :P
so i can feel validated :smile:
Kyle Holm
@thekholm80
Jul 09 2017 23:24
you complete me
Manish Giri
@Manish-Giri
Jul 09 2017 23:24
@Margaret2 Hai okusama
Margaret
@Margaret2
Jul 09 2017 23:25
@Manish-Giri arigatou
CamperBot
@camperbot
Jul 09 2017 23:25
margaret2 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6220 | @manish-giri |http://www.freecodecamp.com/manish-giri
Kevin
@kevinwr
Jul 09 2017 23:31
can anyone tell me what the difference between a code editor and IDE is?
right now I use brackets, but found out I can get webstorm for free through my school.
sorry i'm too lazy to try to type it all out
MykhailoAntoshchuk
@MykhailoAntoshchuk
Jul 09 2017 23:36
@kevinwr ide includes a bunch of sweet features such a build in compiler, debugging mode, project managing and so on
Kevin
@kevinwr
Jul 09 2017 23:40
so it seems like an IDE is really a "total development solution" for developing in a particular language or type of project, whereas a code editor is just more of a basic tool that can be used to edit a bunch of different languages, but doesn't have a lot of the more sophisticated tools to be able to fully develop in a particular language. right?
Manish Giri
@Manish-Giri
Jul 09 2017 23:41
you can install additional packages on an editor to make it emulate an IDE
that's what I do with Atom
Kyle Holm
@thekholm80
Jul 09 2017 23:43
i was going to say something about not needing the compiler and all that, but then i remembered webpack so ...
Joseph
@revisualize
Jul 09 2017 23:47
Hello.
Thami Memel
@ThamiMemel
Jul 09 2017 23:48
hello guys i'm in the json / api lesson now and i feel really lost i don't get anything from it . you have any suggestions .? pleasz