These are chat archives for FreeCodeCamp/Help

19th
Jun 2018
Igor Silveira
@IgorSilveira00
Jun 19 2018 01:57
hi gang!
Anyone having problems lately with certificate claiming?
郭旭
@guoxiaoxu123
Jun 19 2018 03:12
hi
Ankit Tiwari
@anku255
Jun 19 2018 07:49
@IgorSilveira00 Yes! This is an on going freeCodeCamp/freeCodeCamp#17522.
Vladimir Rodríguez
@fizzvr
Jun 19 2018 09:36
Hi guys if someone help me about this question posted on Fcc Forum I'll really appreciated mention in advance :bell:
https://forum.freecodecamp.org/t/who-checks-projects-submits/201505
Ryan Malm
@Rybar
Jun 19 2018 17:08
hey Andy, how can I help?
Andy
@luandy64
Jun 19 2018 17:49
Is anyone here available to help me confirm a bug?
Kyle Holm
@thekholm80
Jun 19 2018 17:55
@luandy64 i can try
@thekholm80 there are two issues I see. The main one being that the test looks for "SENTENCE", but the editor has "sentence" on line 6. I worry people will have trouble with that one
Kyle Holm
@thekholm80
Jun 19 2018 17:57

the instructions state:

A common practice is to name your constants in all upper-cases and with an underscore to separate words

Ankit Tiwari
@anku255
Jun 19 2018 17:57
@luandy64 That might me intentional..
Andy
@luandy64
Jun 19 2018 17:58
Nice... I should read more haha
Kyle Holm
@thekholm80
Jun 19 2018 17:58

and also:

Also, rename variables declared with const to conform to common practices, meaning constants should be in all caps

so as Apple likes to say: It's not a bug, it's a feature
Andy
@luandy64
Jun 19 2018 17:58
The other issue I wanted to bring up was that the error message for failing the first test is misleading to me
Ankit Tiwari
@anku255
Jun 19 2018 17:59
I used to name const in all caps in C but not in javascript. Because I almost always use const and also JS const behaves differently.
Andy
@luandy64
Jun 19 2018 17:59
when 'var' exists in the code and fails that check it prints "var does not exist in code.". Confusing right?
Ankit Tiwari
@anku255
Jun 19 2018 18:00
@luandy64 var does not exist will have to be true to pass the test.
Kyle Holm
@thekholm80
Jun 19 2018 18:00
i only use all caps if my const is truly unchanging. I will use const on arrays and objects just so that the type can't change, but i will still manipulate their value
i guess what i'm saying is, I use all caps on const for strings or numbers, generally
Andy
@luandy64
Jun 19 2018 18:01
I understand @anku255, but the error message just tells you something confusing
Ankit Tiwari
@anku255
Jun 19 2018 18:01
@thekholm80 exactly! And in other languages const usually means the value will never change. So, I always used uppercase there.
Kyle Holm
@thekholm80
Jun 19 2018 18:02
oh and functions, i don't use caps for const functions
const myFunc = () => {}
Ankit Tiwari
@anku255
Jun 19 2018 18:02
@luandy64 Yeah, I see what you are trying to say. But if you think the other way then that test does make sense.
Andy
@luandy64
Jun 19 2018 18:03
@anku255 It just doesn't fit with the other test statement.
Ankit Tiwari
@anku255
Jun 19 2018 18:04
@luandy64 What would you name that test?
Andy
@luandy64
Jun 19 2018 18:04
// running test var does not exist in code. SENTENCE should be a constant variable (by using const). // tests completed
Poop, excuse my formatting there
I would name it var should not exist in code.
Kyle Holm
@thekholm80
Jun 19 2018 18:04
you can always open an issue on github, suggest new wording then make a PR to fix it in the seed
get those sweet, sweet OSS PRs going
Ankit Tiwari
@anku255
Jun 19 2018 18:05

you can always open an issue on github, suggest new wording then make a PR to fix it in the seed

Yes, feel free to create a PR. If maintainers think the same way as you do then they will merge it :smile:

Andy
@luandy64
Jun 19 2018 18:05
@thekholm80 I'm was doing that, but I wanted a second opinion on it before I opened the issue
@thekholm80 @anku255 , what do you guys think is better: var does not exist in code. or var should not exist in code.?
Ankit Tiwari
@anku255
Jun 19 2018 18:06
@luandy64 I agree with you. If the second test uses should then the first one should use should as well :smile:
Saying var should not exist in the codeis definitely more clear.
there's the challenge
Andy
@luandy64
Jun 19 2018 18:09
Thank you both :)
Ankit Tiwari
@anku255
Jun 19 2018 18:10
@thekholm80 Updating challenges file is a mess right now. Because learn doesn't directly use the challenges file present in freecodecamp repo.
Kyle Holm
@thekholm80
Jun 19 2018 18:10
ugh
Ankit Tiwari
@anku255
Jun 19 2018 18:10
@luandy64 :sparkles:
idris
@idris12
Jun 19 2018 19:06
color.PNG
why is that not changing the colors?
Kyle Holm
@thekholm80
Jun 19 2018 19:06
you have backgroud not background
idris
@idris12
Jun 19 2018 19:07
smh
thanks men
Aita Kane
@aita-kane
Jun 19 2018 19:44
hello can someone help me with my dropdown please. I code the menu and and the container and content of my dropdown, but the problem is when I hover on "Mon panier" , I want the dropdown to be visible . Can someone help me with please ? the codepen link : https://codepen.io/akane96/pen/qKxqWE