These are chat archives for FreeCodeCamp/Help

12th
Jul 2017
Coy Sanders
@coymeetsworld
Jul 12 2017 00:23
junit isn't terribly hard
if its an interview im sure they care more about how you test rather than getting the syntax perfect too
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 00:29
@coymeetsworld well, thats encourage me x) can you enligth me a bit more? I just know concepts about testing, but I have some questions x)
Coy Sanders
@coymeetsworld
Jul 12 2017 00:29
like?
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 00:33
Like, I have 3 classes, a Buyer, a Seller and Product. Also a Bill . What unitest I can make with them?
Let's say, I have a condition if a bill is going to be generated, and the stock of the product is less than the required quantity, It will print the error msg
I should create a unitest for when the stock is greater /equal, or when is less? or it's already controlled
Coy Sanders
@coymeetsworld
Jul 12 2017 00:34
i would start with how the program should work logically
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 00:34
My problem is I don't know what to test x)
Coy Sanders
@coymeetsworld
Jul 12 2017 00:34
a seller has a certain amount of some product
when a transaction occurs with the buyer, the product amount should change
so you can test that that's true
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 00:35
It's kinda like a super-market, but instead of taking the products, they ask for them at a vendor
Coy Sanders
@coymeetsworld
Jul 12 2017 00:35
like if a Seller had 5 apples, and a buyer bought 2 of them there should be 3
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 00:35
all share the same stock
yeah, ALL apples then will be at 3
Coy Sanders
@coymeetsworld
Jul 12 2017 00:35
you can run a test on the seller to verify they have 3 apples left after the buyer makes the purchase
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 00:36
there are somo silly stuff behind that (like vendor points on consecutives sells, and fidelity costumers, but I have that math stuff cover)
Oh...
I see, I see
Seems like I was overthinking a lot
@coymeetsworld ty
CamperBot
@camperbot
Jul 12 2017 00:36
nahuelovejero sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star2: 2962 | @coymeetsworld |http://www.freecodecamp.com/coymeetsworld
Coy Sanders
@coymeetsworld
Jul 12 2017 00:37
yeah unit tests are small tests that test parts of the code
or at least that's what it should aim to do
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 00:37
It's like test the state of everything
playingwithinfinity
@playingwithinfinity
Jul 12 2017 00:37
How do professional companies/startups make their frontends? I suck at CSS and it seems like a nightmare to me.
Coy Sanders
@coymeetsworld
Jul 12 2017 00:37
you test them individually, that way its easier to figure out where a problem may be
the idea is you have tests for every method for every class, where appropriate
if a method is really simple then you don't need to test it really
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 00:39
yeah, that is functional testing, rigth?
Coy Sanders
@coymeetsworld
Jul 12 2017 00:40
no those are unit tests
Kyle Holm
@thekholm80
Jul 12 2017 00:40
@playingwithinfinity css isn't so bad once you learn it
Coy Sanders
@coymeetsworld
Jul 12 2017 00:40
functional testing is more general, like your application or whatever does what its supposed to do at a high level, I think
Brandon Benefield
@bbenefield89
Jul 12 2017 00:41
Hey everyone, would there happen to be any JavaScript gurus here?
Coy Sanders
@coymeetsworld
Jul 12 2017 00:41
sure @bbenefield89
Brandon Benefield
@bbenefield89
Jul 12 2017 00:42
@coymeetsworld Alright, so I am doing the "ES6: Write Higher Order Arrow Functions" http://beta.freecodecamp.com/en/challenges/es6/write-higher-order-arrow-functions
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 00:42
seems like beta it's more in depth
Brandon Benefield
@bbenefield89
Jul 12 2017 00:42
In dev-console I am meeting all the conditions, but its not satisfying the page
const REAL_NUMBER_ARRAY = [4, 5.6, -9.8, 3.14, 42, 6, 8.34];
// change code below this line
const TEMP = [];
const squaredIntegers = [];
const FUN_TIMES = () => {
  REAL_NUMBER_ARRAY.filter(function(x) {
    if (x % 1 === 0) {
      TEMP.push(x);
    }
  });
  TEMP.map(function(y) {
    squaredIntegers.push(Math.pow(y, 2));
  });
};
// change code above this line
// test your code
console.log(squaredIntegers);
Coy Sanders
@coymeetsworld
Jul 12 2017 00:42
what tests fail?
hmmm thats alot of code
Brandon Benefield
@bbenefield89
Jul 12 2017 00:43
only squaredIntegers should be [16, 1764, 36]
but as i said, if copy and pasted into your dev console, it should come out correctly
Anthony DeSordi
@desordi3
Jul 12 2017 00:44
The div element is probably the most commonly used HTML element of all. It's useful for passing the CSS of its own class declarations down to all the elements that it contains. ~~ Can someone break down that second sentence for me?
Coy Sanders
@coymeetsworld
Jul 12 2017 00:44
well, kind of @bbenefield89
playingwithinfinity
@playingwithinfinity
Jul 12 2017 00:44
@thekholm80 Done with the CSS on FCC but still hate it
Coy Sanders
@coymeetsworld
Jul 12 2017 00:44
how does FUN_TIMES get called?
also thats not the way the code should be written
Brandon Benefield
@bbenefield89
Jul 12 2017 00:45
...
Coy Sanders
@coymeetsworld
Jul 12 2017 00:45
functions map and filter return arrays
Brandon Benefield
@bbenefield89
Jul 12 2017 00:45
I guess i did forget to call it, you are correct.
Coy Sanders
@coymeetsworld
Jul 12 2017 00:46
while that would fix it, you're not really doing what they want you to
Frank McCroy
@fmccroy
Jul 12 2017 00:46
@desordi3 You can use a div to break up code into sections, and assign formatting to that code using CSS. Like you could make a section have a red background and blue text, by changing the formatting for that particular div.
Brandon Benefield
@bbenefield89
Jul 12 2017 00:47
@coymeetsworld are you suggesting i remove the temp = [] and squaredIntegers = []
Coy Sanders
@coymeetsworld
Jul 12 2017 00:47
you need squaredIntegers
Anthony DeSordi
@desordi3
Jul 12 2017 00:47
Thanks alot @fmccroy . The challenge right after that section showed me exactly what you were talking about
CamperBot
@camperbot
Jul 12 2017 00:47
desordi3 sends brownie points to @fmccroy :sparkles: :thumbsup: :sparkles:
:cookie: 375 | @fmccroy |http://www.freecodecamp.com/fmccroy
Coy Sanders
@coymeetsworld
Jul 12 2017 00:47
but Temp should not be necessary
Brandon Benefield
@bbenefield89
Jul 12 2017 00:47
so its ok to define `squaredIntegers before the function?
Coy Sanders
@coymeetsworld
Jul 12 2017 00:50
idk what you mean
Brandon Benefield
@bbenefield89
Jul 12 2017 00:50
also, in REAL_NUMBER_ARRAY.filter(function(x).... does x become the array? I can get a value from it?
Coy Sanders
@coymeetsworld
Jul 12 2017 00:50
no x would represent the element in the array
filter iterates through the entire array, and runs the callback function you pass into it for each element
Brandon Benefield
@bbenefield89
Jul 12 2017 00:50
ok so youre saying .filter returns and array, what would the array be?
Coy Sanders
@coymeetsworld
Jul 12 2017 00:51
so for the first time the function would run with x=4, then x=5.6, x=-9.8, and so on
Kyle Holm
@thekholm80
Jul 12 2017 00:51
i love the 30 mins of debugging it takes to realize i forgot the babel presets in my package.json file
Coy Sanders
@coymeetsworld
Jul 12 2017 00:51
did they cover filter functions at this point?
Kyle Holm
@thekholm80
Jul 12 2017 00:51
#alwaysuseboilerplate
Brandon Benefield
@bbenefield89
Jul 12 2017 00:52
i mean, in this challenge, they USE it. First time seeing it, had to find out what it is on MDN. There was not an explanation
FBPosts.filter(function(post) { return post.thumbnail !== null && post.shares > 100 && post.likes > 500; })
Coy Sanders
@coymeetsworld
Jul 12 2017 00:52
i guess its not covered till later, under Functional Programming
thats kind of strange
seems like they should cover that first before es6
anyways filter function basically does like it says
it filters out values from the array based on some criteria
i think the MDN documentation makes it pretty succinct
function isBigEnough(value) {
  return value >= 10;
}

var filtered = [12, 5, 8, 130, 44].filter(isBigEnough);
// filtered is [12, 130, 44]
could be rewritten like so:
var filtered = [12, 5, 8, 130, 44].filter(function(value) {
  return value >= 10;
});
var filtered = [12, 5, 8, 130, 44].filter(isBigEnough);
// filtered is [12, 130, 44]
2nd version just uses an anonymous function
meaning the function has no name
Anthony DeSordi
@desordi3
Jul 12 2017 00:55
If im understanding correctly the only difference between the attributes classes and ids is that ids are for specific elements where classes can be used to cover multiple elements?
Coy Sanders
@coymeetsworld
Jul 12 2017 00:55
thats the gist of it yes @desordi3
Anthony DeSordi
@desordi3
Jul 12 2017 00:55
Awesome, thanks @coymeetsworld
CamperBot
@camperbot
Jul 12 2017 00:55
desordi3 sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star2: 2963 | @coymeetsworld |http://www.freecodecamp.com/coymeetsworld
Brandon Benefield
@bbenefield89
Jul 12 2017 00:56
alright, thanks a lot @coymeetsworld
CamperBot
@camperbot
Jul 12 2017 00:56
bbenefield89 sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star2: 2964 | @coymeetsworld |http://www.freecodecamp.com/coymeetsworld
Coy Sanders
@coymeetsworld
Jul 12 2017 00:56
np
@bbenefield89 try checking out funfunfunction on youtube, the guy has a pretty good series covering functional programming (map, filter, reduce)
Frank McCroy
@fmccroy
Jul 12 2017 00:58
@coymeetsworld and the guy is VERY entertaining! Although I can’t remember his name.. or even initials :)
Coy Sanders
@coymeetsworld
Jul 12 2017 00:59
Mattias Johannson I think
Frank McCroy
@fmccroy
Jul 12 2017 00:59
Hmm.. so MPJ ? or something like that?
Joseph
@revisualize
Jul 12 2017 01:02
@fmccroy MPJ!
funfunfunction
Frank McCroy
@fmccroy
Jul 12 2017 01:03
MPJ said his name in the very first video of the series and never again. Ultimately he manages to make the videos very interesting for me. I just need to finish watching soon.
Sheikh Tijan
@techscriptures
Jul 12 2017 01:06
Hey campers, am done with my tribute but i can't submit it
Frank McCroy
@fmccroy
Jul 12 2017 01:08
@techscriptures Why not? Or what is the site saying?
Alexander Køpke
@alexanderkopke
Jul 12 2017 01:10
I like his side-kick methmethmethod
Frank McCroy
@fmccroy
Jul 12 2017 01:11
@alexanderkopke Oh no.. he has more videos for me to watch...
Yuserah Din
@YuserahN
Jul 12 2017 01:43
For the local weather app, is it better to use a dark sky API or openweather API?
__mifflin__
@cdrainxv
Jul 12 2017 01:54
@YuserahN: Use the one fcc created: https://fcc-weather-api.glitch.me
Raj Patel
@rajp1847
Jul 12 2017 01:59
Hi i need help with Build a Personal Portfolio Webpage
Will any one help me?
Yuserah Din
@YuserahN
Jul 12 2017 02:03
@cdrainxv Do I need an API key for that?
Frank McCroy
@fmccroy
Jul 12 2017 02:04
@YuserahN No, thats one of the benefits.
Yuserah Din
@YuserahN
Jul 12 2017 02:05
Great! Thanks for letting me know.
CreateTheHype
@CreateTheHype
Jul 12 2017 02:11
If i wanted to build a project estimate tool on my website how would i do such a thing?
Kyle Holm
@thekholm80
Jul 12 2017 02:13
just like any other project, i imagine. figure out what you want it to be, then figure out how you want to make it, then do it
CreateTheHype
@CreateTheHype
Jul 12 2017 02:16
well no shit
Frank McCroy
@fmccroy
Jul 12 2017 02:16
So… you want us to create your random idea for you???
Kyle Holm
@thekholm80
Jul 12 2017 02:16
sounds like it
CreateTheHype
@CreateTheHype
Jul 12 2017 02:17
just asking for advice
i sell houses for a living and was wondering how i would build an online estimate tool
Kyle Holm
@thekholm80
Jul 12 2017 02:18
my advice is to ask vague questions, then piss of the people who respond. usually the best path to take
Frank McCroy
@fmccroy
Jul 12 2017 02:19
Find another site that has something similar to what you want and do your best to copy it. Or pay a professional to do it for you, since what you want will probably need their experience and knowledge.
CamperBot
@camperbot
Jul 12 2017 02:19
find another site that has something similar to what you want and do your best to copy it or pay a professional to do it for you since what you want will probably need their experience and knowledge
nothing found
Alexander Køpke
@alexanderkopke
Jul 12 2017 02:23
love that camperbot echoed that :alien: :laughing:
Frank McCroy
@fmccroy
Jul 12 2017 02:23
I wasn’t sure if my post went through or not, I’ve never started with “find” before.
CreateTheHype
@CreateTheHype
Jul 12 2017 02:24
thx @fmccroy
CamperBot
@camperbot
Jul 12 2017 02:24
createthehype sends brownie points to @fmccroy :sparkles: :thumbsup: :sparkles:
:cookie: 376 | @fmccroy |http://www.freecodecamp.com/fmccroy
Frank McCroy
@fmccroy
Jul 12 2017 02:26
@CreateTheHype Hopefully that helps. What you want is probably not an easy task.
CreateTheHype
@CreateTheHype
Jul 12 2017 02:27
ive already starting looking for similar items but wasnt finding much so i just thought i'd ask
korzo
@korzo
Jul 12 2017 02:29
@CreateTheHype Isn't project estimate just list of lines with task description and price ?
Anthony DeSordi
@desordi3
Jul 12 2017 02:31
is finishing the front end dev cert enough to land a job to break into the industry?
Kyle Holm
@thekholm80
Jul 12 2017 02:31
@desordi3 for some people it is
it's not a guarantee for employment though
CreateTheHype
@CreateTheHype
Jul 12 2017 02:32
i imagine i would ask a bunch of questions like do you want a basement etc, etc and it would put out a price after they answered a few questions
Anthony DeSordi
@desordi3
Jul 12 2017 02:33
@thekholm80 ive read some posts on reddit about people being able to land jobs after finishing front end. right now that’s my goal being that im 20 minutes from NYC where im sure there are many jobs
obviously need a great portfolio and projects
Kyle Holm
@thekholm80
Jul 12 2017 02:33
@desordi3 right. your portfolio will get you interviews, not your certificate
I'm not trying to devalue the certificate, and earning it is a hard earned accomplishment.
Anthony DeSordi
@desordi3
Jul 12 2017 02:36
Oh no i totally understand. I might have worded it wrong, didnt mean that just the cert is bound to get you a job
But getting that cert teaches you the skills, that paired with your portfolio and obvious dedication, should on average be able to land you a job right?
Kyle Holm
@thekholm80
Jul 12 2017 02:38
I think it's possible. I've read articles from recruiters where they say they'll take less experience over more if the newer coder has more determination and desire
Eric Elliott has done a great series about mastering the javascript interview, i highly recommend reading it
Anthony DeSordi
@desordi3
Jul 12 2017 02:40
ill check it out, thanks
Alexander Køpke
@alexanderkopke
Jul 12 2017 02:40
@desordi3 people skills are sometimes just as important. You'll probably have to learn new stuff anyways, so if you seem like a person that is nice to work with, they may pick you over an obnoxious guru.
Kyle Holm
@thekholm80
Jul 12 2017 02:40
amen
some of us are insufferable no-it-alls
Anthony DeSordi
@desordi3
Jul 12 2017 02:42
@alexanderkopke definitely agree there. Networking is another aspect people dont consider
Alexander Køpke
@alexanderkopke
Jul 12 2017 02:50
http://starthere.fm/webdev has a lot of talks on getting a job topics. Also has a course but you can learn a lot just from his free stuff. It has helped me finding the direction I want to go. For example he advices on reading books on other areas of life like investing, planning your life, psychology, etc Am reading The ONE Thing by Gary Keller at the moment. Anyways good luck! @desordi3
Manish Giri
@Manish-Giri
Jul 12 2017 02:54
@thekholm80 ty
CamperBot
@camperbot
Jul 12 2017 02:54
manish-giri sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1315 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Anthony DeSordi
@desordi3
Jul 12 2017 02:55
@alexanderkopke thanks a lot and you too!
CamperBot
@camperbot
Jul 12 2017 02:55
desordi3 sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:star2: 1610 | @alexanderkopke |http://www.freecodecamp.com/alexanderkopke
Anthony DeSordi
@desordi3
Jul 12 2017 02:55
will check it out
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 02:55
@thekholm80 @Manish-Giri :wave:
Kyle Holm
@thekholm80
Jul 12 2017 02:56
@ravikishorethella hey buddy
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 02:56
@thekholm80 I have a doubt in the manage packages in the npm challenge
Kyle Holm
@thekholm80
Jul 12 2017 02:57
which lesson?
Manish Giri
@Manish-Giri
Jul 12 2017 02:57
@ravikishorethella :wave:
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 02:57
the instructions are:
Publishing something once is fine. But healthy packages get
published again and again with new and exciting bug fixes.
 You can't re-use the same version number again, because that's hella  
 confusing for all the robots running the treadmills that power the npm  
 registry.  But, now that we changed the version number in the last  
 exercise, you can publish the package again.  

 Go for it!  Then get your prize with `how-to-npm verify` 
@thekholm80 publish again
Kyle Holm
@thekholm80
Jul 12 2017 02:58
oh man that one had me stuck for a while
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 02:59
What is the challenge about?
Kyle Holm
@thekholm80
Jul 12 2017 03:00
you need to update the package version then publish it to npm again
i'm trying to remember what I had to do to pass it
i remember it felt super buggy
@ravikishorethella freeCodeCamp/freeCodeCamp#8770
check that out
Kyle Holm
@thekholm80
Jul 12 2017 03:05
there are some workarounds in that thread that might get you going again
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 03:14
@thekholm80 thanks for the link
CamperBot
@camperbot
Jul 12 2017 03:14
ravikishorethella sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1316 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 03:14
but no luck :worried:
Kyle Holm
@thekholm80
Jul 12 2017 03:14
dang
did you try killing it with fire?
I'm not sure why they included those lessons to begin with. Nothing we make in this program is going to be published to npm
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 03:17
:smile:
see these errors

npm ERR! publish Failed PUT 403
npm ERR! code E403
npm ERR! You cannot publish the same version more than once
npm ERR! Bump the version number in package.json, and try again. : @ravikishorethella/workspace

npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2017-07-12T03_17_05_510Z-debug.log

Manish Giri
@Manish-Giri
Jul 12 2017 03:17
I've published one package to npm successfully
and that had nothing to do with these lessons lol
Kyle Holm
@thekholm80
Jul 12 2017 03:18
lol i was going to say
npm install cat-photo-app
Manish Giri
@Manish-Giri
Jul 12 2017 03:18
hehe lol
Kyle Holm
@thekholm80
Jul 12 2017 03:18
nothing
my code looks like a sideways pyramid
what is the most people that should be allowed in a cards against humanity game?
Manish Giri
@Manish-Giri
Jul 12 2017 03:23
5?
Kyle Holm
@thekholm80
Jul 12 2017 03:24
that seems like a pretty good limit. the more people involved, the slower the game moves
Manish Giri
@Manish-Giri
Jul 12 2017 03:25
or you could add 1 person and 4 cats
@diomed would be happy
Kyle Holm
@thekholm80
Jul 12 2017 03:25
i could probably code a bot to play dummy hands
Manish Giri
@Manish-Giri
Jul 12 2017 03:26
as I said, Google, soon
Kyle Holm
@thekholm80
Jul 12 2017 03:26
yeah, google often lol ... so many errors
Manish Giri
@Manish-Giri
Jul 12 2017 03:26
lol
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 03:27
@thekholm80 :smile: it worked
@Manish-Giri @thekholm80 good night
Kyle Holm
@thekholm80
Jul 12 2017 03:27
@ravikishorethella what did you end up having to do?
g'night!
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 03:27
@thekholm80 change the version number in the json file
Kyle Holm
@thekholm80
Jul 12 2017 03:28
oh manually. yeah
Johnyboi21
@Johnyboi21
Jul 12 2017 03:28
so like objective 6 of build your own portfolio is making me tilted
Manish Giri
@Manish-Giri
Jul 12 2017 03:28
@thekholm80 :wave:
Kyle Holm
@thekholm80
Jul 12 2017 03:28
@Manish-Giri ravi not me lol
Manish Giri
@Manish-Giri
Jul 12 2017 03:28
fak
@ravikishorethella :wave:
Kyle Holm
@thekholm80
Jul 12 2017 03:28
@Manish-Giri did you see this today?
Johnyboi21
@Johnyboi21
Jul 12 2017 03:28
im lost in the labrinth bois
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 03:28
:smile:
Manish Giri
@Manish-Giri
Jul 12 2017 03:29
wow that looks awesome
@thekholm80
I hope the courses are good
Kyle Holm
@thekholm80
Jul 12 2017 03:30
@Johnyboi21 the easiest way to navigate on a single page is to give each section you want to navigate to an id with id='about' or id='portfolio' and then create links with <a href='#about'>About</a> and <a href='#portfolio'>Portfolio</a>
if you want something fancier than that, you'll have to do some reading
Manish Giri
@Manish-Giri
Jul 12 2017 03:31
@thekholm80 I saw spiderman homecoming yest
Kyle Holm
@thekholm80
Jul 12 2017 03:31
@Manish-Giri the dude that's making the courses is part of the webpack core team, if i remember right
how was it?
Manish Giri
@Manish-Giri
Jul 12 2017 03:31
it was :shit:
Kyle Holm
@thekholm80
Jul 12 2017 03:32
i can't watch superhero movies
except Guardians, i love those
Manish Giri
@Manish-Giri
Jul 12 2017 03:32
I can't believe I watched this crap and missed the alien movie
Kyle Holm
@thekholm80
Jul 12 2017 03:33
last movie i saw in the theater was the new Pirates movie. Not my favorite
Coy Sanders
@coymeetsworld
Jul 12 2017 03:34
Spiderman was good
things were polarizing, either i really liked parts of it or really disliked them
captain america winter soldier is a good one @thekholm80, its more of like Jason Bourne than a super hero movie
Kyle Holm
@thekholm80
Jul 12 2017 03:37
there's something about the whole genre that puts me off. I saw Dr Strange and it was 20 min of plot and 1 hr of special effects
the sad thing is, the story (what there was of it) was really good
Basitomania
@Basitomania
Jul 12 2017 03:37
Hello
Kyle Holm
@thekholm80
Jul 12 2017 03:38
hi
Coy Sanders
@coymeetsworld
Jul 12 2017 03:38
I didn't see Dr. Strange yet
Basitomania
@Basitomania
Jul 12 2017 03:39

I need help in answering counting cards var count = 0;

function cc(card) {
// Only change code below this line
if (card>=1) {
return "Bet";}
else if (card<=0) {
return "Hold";}

else 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');
Is anything wrong?

Coy Sanders
@coymeetsworld
Jul 12 2017 03:39
but special effects have to be a part of it he's a sorcerer
Kyle Holm
@thekholm80
Jul 12 2017 03:39
if i just wanted special effects i'd go to the laser pink floyd show at the planetarium
i like a little story
@Manish-Giri apparently there's a way to set webpack-dev-server as express middleware. this is something i need to learn
Manish Giri
@Manish-Giri
Jul 12 2017 03:42
@thekholm80 teach me sensei
Kyle Holm
@thekholm80
Jul 12 2017 03:43
have you finished your Neo4j project?
Manish Giri
@Manish-Giri
Jul 12 2017 03:44
no
not yet
but close
Kyle Holm
@thekholm80
Jul 12 2017 03:44
then you present & defend?
Manish Giri
@Manish-Giri
Jul 12 2017 03:44
yup
then I fail and die
Kyle Holm
@thekholm80
Jul 12 2017 03:45
oh please
you're going to crush it
nobody in that room will know more about Neo4j than you
I hate making forms in react
Manish Giri
@Manish-Giri
Jul 12 2017 03:48
lol
nobody in that room will know more about Neo4j than you
:smile:
I should make a video like one of those Uncle Rob videos the day before my defense
Kyle Holm
@thekholm80
Jul 12 2017 03:49
THEN
Anthony DeSordi
@desordi3
Jul 12 2017 03:53
how do i post my code in this chat? like Ravi just did
Kyle Holm
@thekholm80
Jul 12 2017 03:53
`` inline code ``
```
block code
```
looks like
inline code
block code
Anthony DeSordi
@desordi3
Jul 12 2017 03:55
<div class="row"> <div class="col-xs-4"> <label><input type="checkbox" name="personality"> Loving</label> </div> <div class="col-xs-4"> <label><input type="checkbox" name="personality"> Lazy</label> </div> <div class="xol-xs-4"> <label><input type="checkbox" name="personality"> Crazy</label> </div>
whoops didnt work
<div class="row">
      <div class="col-xs-4">
        <label><input type="checkbox" name="personality"> Loving</label>
      </div>
      <div class="col-xs-4">
        <label><input type="checkbox" name="personality"> Lazy</label>
      </div>
      <div class="xol-xs-4">
        <label><input type="checkbox" name="personality"> Crazy</label>
      </div>
Kyle Holm
@thekholm80
Jul 12 2017 03:55
there you go
Coy Sanders
@coymeetsworld
Jul 12 2017 03:55
<div class="xol-xs-4">
Anthony DeSordi
@desordi3
Jul 12 2017 03:56
Damn. thanks man @coymeetsworld
CamperBot
@camperbot
Jul 12 2017 03:56
desordi3 sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star2: 2965 | @coymeetsworld |http://www.freecodecamp.com/coymeetsworld
Coy Sanders
@coymeetsworld
Jul 12 2017 03:56
I still got it lol
Kyle Holm
@thekholm80
Jul 12 2017 03:56
you're the bootstrap grid master
you can put that on your resume if you want
"2017 to current: bootstrap grid master"
Coy Sanders
@coymeetsworld
Jul 12 2017 03:57
I could, but I got it down to 1 page want to keep it that way lol
i can just bring that up in the phone screen
or tell an annoying recruiter that doesnt read anything on my resume that I have that skill and go find me a job w/ that
Kyle Holm
@thekholm80
Jul 12 2017 03:58
i loved reading about Eric Elliotts first coding interview
Coy Sanders
@coymeetsworld
Jul 12 2017 03:58
I want a job that is just 100% bootstrap. No CSS, no JS, none of that shit. Just BS lol
Kyle Holm
@thekholm80
Jul 12 2017 03:58
my job is 100% BS
but not bootstrap
Coy Sanders
@coymeetsworld
Jul 12 2017 03:59
mine is deploying code that doesn't work
Kyle Holm
@thekholm80
Jul 12 2017 03:59
eww
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 03:59
I know what Kyle is saying :P
Coy Sanders
@coymeetsworld
Jul 12 2017 03:59
code I don't write
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 03:59
but that's fordbidden love!
Coy Sanders
@coymeetsworld
Jul 12 2017 03:59
not that I would be a dev here or would be necessarily qualified in a Java shop even though I know some
well good news I was able to successfully get at least one test running on a dumb react component, so I'm making headway
Kyle Holm
@thekholm80
Jul 12 2017 04:00
what dev methods does your company use? like agile or whatever?
Coy Sanders
@coymeetsworld
Jul 12 2017 04:00
yeah they just went into agile like a year ago
Kyle Holm
@thekholm80
Jul 12 2017 04:00
so 1/2 day of meetings, 1/2 day of coding?
Coy Sanders
@coymeetsworld
Jul 12 2017 04:00
so I get to see all the bugs I report pushed into sprints one after the other lol
idk I'm not in dev
Manish Giri
@Manish-Giri
Jul 12 2017 04:01
my scrums were every morning 9 to 9:15
sorry scrums, not sprints
ugh
Coy Sanders
@coymeetsworld
Jul 12 2017 04:01
we're a "deployments" team, but I guess we're really just ops
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 04:02
yeah, scrums can not be longer than 15 minutes
scrum meetings I mean
Manish Giri
@Manish-Giri
Jul 12 2017 04:02
ours does a lot, lol
basically means someone screwed up, real bad
Kyle Holm
@thekholm80
Jul 12 2017 04:02
my company does scrums in the morning and like a show-and-tell at the end of the week
of course we're down to like 3 devs so it's kind of sad
Thomas
@teashton
Jul 12 2017 04:03
ok needing some help here. im trying to create a function with arguments and I can not figure out why its not allowing for multiple outputs?

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

// Only change code below this line.

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

functionwithArgs (7, 9);

Kyle Holm
@thekholm80
Jul 12 2017 04:04
@Manish-Giri that's what you should do with your life, work in dev ops
that would be awesome
Manish Giri
@Manish-Giri
Jul 12 2017 04:04
I wanna work as a dev, from home, every day
and the home should be by the pacific
Kyle Holm
@thekholm80
Jul 12 2017 04:05
or as a dev, from home, once a week
I kind of miss working from the office
Coy Sanders
@coymeetsworld
Jul 12 2017 04:05
I don't :)
@teashton try removing the space between the function name and the parenthesis
both in the function definition and the function call
Thomas
@teashton
Jul 12 2017 04:07
i figured it out. i had a uncapitlized w. which pretty much screwed up everything
Kyle Holm
@thekholm80
Jul 12 2017 04:07
that camel case will get ya
Thomas
@teashton
Jul 12 2017 04:07
@coymeetsworld thanks!
CamperBot
@camperbot
Jul 12 2017 04:07
teashton sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star2: 2966 | @coymeetsworld |http://www.freecodecamp.com/coymeetsworld
Coy Sanders
@coymeetsworld
Jul 12 2017 04:08
if they ask for a specific name then yeah I guess that would matter, but as long as its consistent its fine
Thomas
@teashton
Jul 12 2017 04:08
@thekholm80 for real though lol
Kyle Holm
@thekholm80
Jul 12 2017 04:09
if i'm storing my input field's text in the component's state, what benefit would i get from using a form over axios.post?
with axios i can return a status, not sure i can do that with form submit
Mwakima Matano
@DonMatano
Jul 12 2017 04:43
Hey guys I just finished my Weather app. Please do take your time and review it. Thanks.
PS. The app need access to your location to work. thanks.
https://codepen.io/DonMatano/full/qjLdaR/
shivam gupta
@shivamg11000
Jul 12 2017 04:44
@DonMatano Its greatly done , what is meant by ANGA
Mwakima Matano
@DonMatano
Jul 12 2017 04:45
@shivamg11000 Thanks. Anga is Swahili for Sky.
CamperBot
@camperbot
Jul 12 2017 04:45
:cookie: 380 | @shivamg11000 |http://www.freecodecamp.com/shivamg11000
donmatano sends brownie points to @shivamg11000 :sparkles: :thumbsup: :sparkles:
Justin Koeppen
@jdkoeppen
Jul 12 2017 04:45
Question: Trying to use Bootstrap via CDN and Google Fonts api but they won't play nice. Bootstrap is overriding Google Fonts? How to fix?
Manish Giri
@Manish-Giri
Jul 12 2017 04:58
@jdkoeppen use an ID maybe
Mwakima Matano
@DonMatano
Jul 12 2017 05:00
@jdkoeppen how exactly are you trying to implement the google font
Justin Koeppen
@jdkoeppen
Jul 12 2017 05:01
@DonMatano via the api link
I'm able to see the fonts when I sideload Bootstrap 3 in Codepen, but I want to make sure I can make it work outside a pen.
Mwakima Matano
@DonMatano
Jul 12 2017 05:04
@jdkoeppen where are you placing the links in the code outside a pen? Is it in the head tag?
Justin Koeppen
@jdkoeppen
Jul 12 2017 05:10
@DonMatano Yeah, it's in the head tag. I think I figured it out though; CodePen was somehow duplicating the Bootstrap CDN and screwing things up.
Alexander Køpke
@alexanderkopke
Jul 12 2017 05:11
@DonMatano Great work but it is too cold here! And cloudy. I want it more hot and sunny
Mwakima Matano
@DonMatano
Jul 12 2017 05:13
@alexanderkopke Where are you from?
Alexander Køpke
@alexanderkopke
Jul 12 2017 05:13
denmark
Mwakima Matano
@DonMatano
Jul 12 2017 05:15
What's the temperature now there
Alexander Køpke
@alexanderkopke
Jul 12 2017 05:15
14 C
Your app shows correct data. But I want it more hot
Mwakima Matano
@DonMatano
Jul 12 2017 05:21
@alexanderkopke That's cold. I thought it's summer now. Or that's the summer temperature in Denmark
Alexander Køpke
@alexanderkopke
Jul 12 2017 05:23
@DonMatano yeah it's summer but it is normal summer temperature here. If we're lucky we get 22 C sometimes.
Mwakima Matano
@DonMatano
Jul 12 2017 05:23
Lol. Don't know when the technology will reach at such a level that you can simply change the weather with a click of a button.
I wonder how cold it get's during winter
Alexander Køpke
@alexanderkopke
Jul 12 2017 05:25
well, we have water around us. So it doesn't get very hot but also not very cold.
Mwakima Matano
@DonMatano
Jul 12 2017 05:25
where I am now is 26 but during the peek of summer it can rise to almost near 40 imagine
Alexander Køpke
@alexanderkopke
Jul 12 2017 05:25
where are you ?
shivam gupta
@shivamg11000
Jul 12 2017 05:25
@DonMatano here rises to 48 C in summer
Alexander Køpke
@alexanderkopke
Jul 12 2017 05:25
wow
Mwakima Matano
@DonMatano
Jul 12 2017 05:25
north india
shivam gupta
@shivamg11000
Jul 12 2017 05:25
same ^
Alexander Køpke
@alexanderkopke
Jul 12 2017 05:25
ah ok
I think 48 is too hot for me
how do you deal with that heat?
shivam gupta
@shivamg11000
Jul 12 2017 05:26
@alexanderkopke pain for laptop
we don't
Alexander Køpke
@alexanderkopke
Jul 12 2017 05:27
yeah computers don't like heat
Mwakima Matano
@DonMatano
Jul 12 2017 05:27
@alexanderkopke AC , fans in every corner of the apartment. It's dreadful really.
shivam gupta
@shivamg11000
Jul 12 2017 05:28
Mwakima Matano - fake name
Mwakima Matano
@DonMatano
Jul 12 2017 05:28
I Prefer the coldness to the heat
@shivamg11000 Nope that's my name actually
shivam gupta
@shivamg11000
Jul 12 2017 05:29
@DonMatano never heard of that name , you will not of the native land
Mwakima Matano
@DonMatano
Jul 12 2017 05:29
Nope just came to India to study.
shivam gupta
@shivamg11000
Jul 12 2017 05:30
@DonMatano ok great
where in North India
Mwakima Matano
@DonMatano
Jul 12 2017 05:30
Agra
shivam gupta
@shivamg11000
Jul 12 2017 05:30
k
Mwakima Matano
@DonMatano
Jul 12 2017 05:31
@shivamg11000 and you, where are you at?
shivam gupta
@shivamg11000
Jul 12 2017 05:31
Delhi
Mwakima Matano
@DonMatano
Jul 12 2017 05:31
nice
shivam gupta
@shivamg11000
Jul 12 2017 05:31
its more hotter here
Mwakima Matano
@DonMatano
Jul 12 2017 05:39
Here the temperature has dropped mostly because it's drizzling some times and it's mostly cloudy so that's great.
shivam gupta
@shivamg11000
Jul 12 2017 05:40
@DonMatano now its rainy season , temp is 30-38
Viktor Tiutiun
@vittorioVT
Jul 12 2017 05:43
hi everybody
Mwakima Matano
@DonMatano
Jul 12 2017 05:46
@vittorioVT Hi
onejo578
@onejo578
Jul 12 2017 06:09
How do I stop getting an email about Gitter messages? Is is just the notifications option up top right there?
TJ Hardin
@AndroidNinjaX
Jul 12 2017 07:04

hey everyone. Can anyone help me with the intermediate algorithm scripting challenge "Roman Numeral Converter".

This one is beating me up, I honestly have no clue how code this.

ADESANYA ABDULLATEEF
@deboeazi
Jul 12 2017 07:13
hello here
any help ?
TJ Hardin
@AndroidNinjaX
Jul 12 2017 07:14
not to many people here tonight, but what do you need help with?
check the link
and giver me solution ?
@AndroidNinjaX pls help me ?
TJ Hardin
@AndroidNinjaX
Jul 12 2017 07:16

just giving you the answer dosnt help you learn though.

So in HTML how do you create a button?

Viktor Tiutiun
@vittorioVT
Jul 12 2017 07:21
@deboeazi <button class="..."></button>
xushenghui
@xushenghui
Jul 12 2017 07:29
<img src="http://img2.manshijian.com/upload/member/image/68060/a526bd936173f5ddd7b4d00ffc992ccb.jpg">
hi ,what is the problem of this code line?
Viktor Tiutiun
@vittorioVT
Jul 12 2017 07:30
@AndroidNinjaX you need to create two array(var arabic = [] and var roman = [] and go on them in a cycle while
xushenghui
@xushenghui
Jul 12 2017 07:30
why i can not pass the test and go to the next study step.
?
TJ Hardin
@AndroidNinjaX
Jul 12 2017 07:31
You forgot the "alt="
bassically the description of the image
*basically
xushenghui
@xushenghui
Jul 12 2017 07:32
how to use "alt=",can you give a simple example?
TJ Hardin
@AndroidNinjaX
Jul 12 2017 07:32
ya here you go "<img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">"
xushenghui
@xushenghui
Jul 12 2017 07:32
Thanks a lot, I am just a zero-based fresh man
TJ Hardin
@AndroidNinjaX
Jul 12 2017 07:33
lol its ok. I'm learning to.
I honestly hate the "alt" I just forgot about it every time.
xushenghui
@xushenghui
Jul 12 2017 07:33
ok, thanks a lot ,i will try it
<img src="http://img2.manshijian.com/upload/member/image/68060/a526bd936173f5ddd7b4d00ffc992ccb.jpg" class="img-responsive" alt="good cat">
May Kittens Devour Your Soul
@diomed
Jul 12 2017 07:35
@alexanderkopke u guys must be the most productive people on earth during summer
xushenghui
@xushenghui
Jul 12 2017 07:35
i did this, but still prevent me to go to the next step
May Kittens Devour Your Soul
@diomed
Jul 12 2017 07:35
while the rest of us are dying here
xushenghui
@xushenghui
Jul 12 2017 07:35
why?
TJ Hardin
@AndroidNinjaX
Jul 12 2017 07:36
@vittorioVT Alright I have that down. Now what to do with that.
May Kittens Devour Your Soul
@diomed
Jul 12 2017 07:36
@xushenghui because u can't just use any image.
u must use image link provided by task
Viktor Tiutiun
@vittorioVT
Jul 12 2017 07:37
@AndroidNinjaX show me
TJ Hardin
@AndroidNinjaX
Jul 12 2017 07:37
hummmm. what challenge is it?
@vittorioVT
var romanNumerals = ["I", "V", "X", "L", "C", "D", "M"];
var equilivantNums = [1, 5, 10, 50, 100, 500, 1000];
xushenghui
@xushenghui
Jul 12 2017 07:38
but the example is just like <img src="https://www.your-image-source.com/your-image.jpg"> please use the "/images/relaxing-cat.jpg"
how can i fetch the real link i can test
Viktor Tiutiun
@vittorioVT
Jul 12 2017 07:38
@AndroidNinjaX you need 4 and 9 too
@AndroidNinjaX var arabic = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1];
May Kittens Devour Your Soul
@diomed
Jul 12 2017 07:39
@xushenghui it is usually written in red text in your task
Viktor Tiutiun
@vittorioVT
Jul 12 2017 07:39
@AndroidNinjaX and in roman also
TJ Hardin
@AndroidNinjaX
Jul 12 2017 07:39
@vittorioVT ahhh ok let me fix tha
*thzt
**that
@xushenghui look at line 13 on my pen
Viktor Tiutiun
@vittorioVT
Jul 12 2017 07:43
@AndroidNinjaX you need <div class="container"> and then row and columns </div>
xushenghui
@xushenghui
Jul 12 2017 07:43
Thanks a lot @AndroidNinjaX
CamperBot
@camperbot
Jul 12 2017 07:43
xushenghui sends brownie points to @androidninjax :sparkles: :thumbsup: :sparkles:
:cookie: 268 | @androidninjax |http://www.freecodecamp.com/androidninjax
cykins4good
@cykins4good
Jul 12 2017 07:43
Hi to you all.please help solve i was told to Emphasize the text in your target4 button by adding HTML tags and to also to Make sure to select button id="target4" with jQuery.How do solve this
xushenghui
@xushenghui
Jul 12 2017 07:44
but i ca not pass the test and can not go to the next step yet
TJ Hardin
@AndroidNinjaX
Jul 12 2017 07:44
@xushenghui No problem. I figured a working example would work better.
@xushenghui what challenge is it?
@xushenghui like the name
here
Viktor Tiutiun
@vittorioVT
Jul 12 2017 07:46
@cykins4good .html("<em>#target4</em>")
TJ Hardin
@AndroidNinjaX
Jul 12 2017 07:46
@vittorioVT haha I didnt even notice it dosnt have that in there.
xushenghui
@xushenghui
Jul 12 2017 07:46
I do not know how to find out a useful link to test.
@AndroidNinjaX
TJ Hardin
@AndroidNinjaX
Jul 12 2017 07:47
@xushenghui one sec, looking at it
May Kittens Devour Your Soul
@diomed
Jul 12 2017 07:47
@xushenghui IT clearly says: 用以下图片来测试:
/images/relaxing-cat.jpg
so that IS the link
and only THAT
xushenghui
@xushenghui
Jul 12 2017 07:47
yes
May Kittens Devour Your Soul
@diomed
Jul 12 2017 07:48
well, THAT is what u should write then
xushenghui
@xushenghui
Jul 12 2017 07:48
so it is bug for this challenge page?
May Kittens Devour Your Soul
@diomed
Jul 12 2017 07:49
ugh. there is no bug
that IS the link
u put that in src="...."
TJ Hardin
@AndroidNinjaX
Jul 12 2017 07:49
yes put that link in the src
May Kittens Devour Your Soul
@diomed
Jul 12 2017 07:49
.
xushenghui
@xushenghui
Jul 12 2017 07:50
oh,oh ,I see, I misunderstand it
cykins4good
@cykins4good
Jul 12 2017 07:51
@vittorioVT i did what you told me but isn't working .I also apply this also not working: $("target4").html("<em>#target4</em>");
xushenghui
@xushenghui
Jul 12 2017 07:52
Thanks a lot for you all , you are so warm-hearted.
May Kittens Devour Your Soul
@diomed
Jul 12 2017 07:52
@cykins4good u need # before target4
Victor Popescu
@VicPopescu
Jul 12 2017 07:52
@cykins4good $("target4")?
Viktor Tiutiun
@vittorioVT
Jul 12 2017 07:52
@cykins4good you missing #
Victor Popescu
@VicPopescu
Jul 12 2017 07:53
I'm missing my pillow...
Manish Giri
@Manish-Giri
Jul 12 2017 07:53
@diomed :cake:
Viktor Tiutiun
@vittorioVT
Jul 12 2017 07:53
@cykins4good you have id
May Kittens Devour Your Soul
@diomed
Jul 12 2017 07:53
@Manish-Giri :bread:
:cat: :bread:
cykins4good
@cykins4good
Jul 12 2017 07:54
@vittorioVT @diomed , @VicPopescu Thanks to you all.After adding #, it did work
CamperBot
@camperbot
Jul 12 2017 07:54
cykins4good sends brownie points to @vittoriovt and @diomed and @vicpopescu :sparkles: :thumbsup: :sparkles:
:cookie: 489 | @vicpopescu |http://www.freecodecamp.com/vicpopescu
:cookie: 776 | @vittoriovt |http://www.freecodecamp.com/vittoriovt
:star2: 5161 | @diomed |http://www.freecodecamp.com/diomed
May Kittens Devour Your Soul
@diomed
Jul 12 2017 07:54
how is my cards against humanity game going on?
Viktor Tiutiun
@vittorioVT
Jul 12 2017 07:55
@cykins4good you're welcome
Manish Giri
@Manish-Giri
Jul 12 2017 07:55
kyle's building that no
he'd know better
I think back end is done
TJ Hardin
@AndroidNinjaX
Jul 12 2017 07:55

@vittorioVT Ok got them now

var romanNumerals = ["M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"];
var equilivantNums = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1];

Surya Singh
@surya4
Jul 12 2017 07:57

In http://beta.freecodecamp.com/en/challenges/data-visualization-with-d3/work-with-data-in-d3,
I don't get what's wrong with my code -

<body>
<script>
const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];

// Add your code below this line

// const data =
d3.select("body")
.selectAll("h2")
.data(dataset)
.enter()
.append("h2")
.text("New Title");
// Add your code above this line
</script>
</body>
Can anyone help me here

Manish Giri
@Manish-Giri
Jul 12 2017 07:58
@surya4 what's the error
May Kittens Devour Your Soul
@diomed
Jul 12 2017 07:58
excellent
.
Surya Singh
@surya4
Jul 12 2017 07:59
nothing is printing
Viktor Tiutiun
@vittorioVT
Jul 12 2017 07:59
@AndroidNinjaX you will write loop for (with equilivantNums.length) and nest while
May Kittens Devour Your Soul
@diomed
Jul 12 2017 07:59
@Manish-Giri America needs u https://www.battleforthenet.com
Manish Giri
@Manish-Giri
Jul 12 2017 08:00
lol
Viktor Tiutiun
@vittorioVT
Jul 12 2017 08:01
@AndroidNinjaX for example: for (....) {
while(num >= arabic[i]) {
result += roman[i];
num -= arabic[i]; ......
Manish Giri
@Manish-Giri
Jul 12 2017 08:01
@diomed I saw it on github today
May Kittens Devour Your Soul
@diomed
Jul 12 2017 08:01
why do we need to send letter to FreeCodeCamp?
that part I don't get
Ming Zhu
@chocobrownie
Jul 12 2017 08:01
I'm trying to set up html css js bootstrap jquery on my pc Atom. I looked at a tutorial that tell me to download, install and preprocess these files/programs. But why do I need to do those when I can solve it with the following code?
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">

<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
Manish Giri
@Manish-Giri
Jul 12 2017 08:01
Screenshot 2017-07-12 04.01.11.png
@diomed
Viktor Tiutiun
@vittorioVT
Jul 12 2017 08:02
@AndroidNinjaX in end return result;
Manish Giri
@Manish-Giri
Jul 12 2017 08:02

@chocobrownie you mean npm?

install and preprocess these files/programs.

Ming Zhu
@chocobrownie
Jul 12 2017 08:03
blob
I'm not sure what's an npm, but these
Manish Giri
@Manish-Giri
Jul 12 2017 08:03
you can download and use bootstrap locally too
May Kittens Devour Your Soul
@diomed
Jul 12 2017 08:03
@chocobrownie don't worry your head about that
Manish Giri
@Manish-Giri
Jul 12 2017 08:03
would work if you're offline
@diomed battleforthe :cat: .com
Ming Zhu
@chocobrownie
Jul 12 2017 08:04
@Manish-Giri Oh... so by using link it preprocess it everytime it loads it. It's not really slower (file is really small) but it requires internet. Did I understand it right?
Surya Singh
@surya4
Jul 12 2017 08:05
@Manish-Giri what am i doing wrong here
Ming Zhu
@chocobrownie
Jul 12 2017 08:05
@diomed Oh come on just tell me, if it's not too complex
Manish Giri
@Manish-Giri
Jul 12 2017 08:05
yes
and it's slower too
@chocobrownie
@surya4 post url
Ming Zhu
@chocobrownie
Jul 12 2017 08:06
@Manish-Giri So u recommend local if I'm gonna become a developer
Manish Giri
@Manish-Giri
Jul 12 2017 08:06
@chocobrownie for now it's fine to use those links
later on when you do node js, you'll learn how to install libraries and frameworks as npm dependencies.
Ming Zhu
@chocobrownie
Jul 12 2017 08:07
@Manish-Giri So npm is like CMAKE for C++?
Manish Giri
@Manish-Giri
Jul 12 2017 08:08
@surya4 your code works for me
Screenshot 2017-07-12 04.08.13.png
@chocobrownie yeah, if I remember correctly.
Surya Singh
@surya4
Jul 12 2017 08:09
ha ha, okay, for some reason it's not printing for me, @Manish-Giri thanx
CamperBot
@camperbot
Jul 12 2017 08:09
surya4 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6240 | @manish-giri |http://www.freecodecamp.com/manish-giri
Manish Giri
@Manish-Giri
Jul 12 2017 08:09
@surya4 check your console
see if you have any errors
Ming Zhu
@chocobrownie
Jul 12 2017 08:09
@Manish-Giri Got it thanks
CamperBot
@camperbot
Jul 12 2017 08:09
chocobrownie sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6241 | @manish-giri |http://www.freecodecamp.com/manish-giri
Dima Doulov
@dimadoulov
Jul 12 2017 08:09
function factorialize(num) {

  var result;

  for (var i = 1; i <= num; i++){
    result *= i;
  }

  return result;
}

factorialize(5);
Manish Giri
@Manish-Giri
Jul 12 2017 08:09
@chocobrownie :+1:
Dima Doulov
@dimadoulov
Jul 12 2017 08:10
Wait how do you make it look like actual code again
Ok there, why isn't this returning the factorial? Its just giving me null
Manish Giri
@Manish-Giri
Jul 12 2017 08:10
@dimadoulov initialize result to 1 before.
var result = 1;
Dima Doulov
@dimadoulov
Jul 12 2017 08:10
LOL
Wow that was it, thank man!
Manish Giri
@Manish-Giri
Jul 12 2017 08:11
np
Surya Singh
@surya4
Jul 12 2017 08:11
@Manish-Giri yeah there is one error keep showing:
Identifier data set has already been declared
Manish Giri
@Manish-Giri
Jul 12 2017 08:11
yup
that's expected
Surya Singh
@surya4
Jul 12 2017 08:12
Screen Shot 2017-07-12 at 1.41.58 PM.png
Manish Giri
@Manish-Giri
Jul 12 2017 08:12
what's happening is - the first time you did one of those d3 challenges that had const dataset in the code
Surya Singh
@surya4
Jul 12 2017 08:12
@Manish-Giri
Manish Giri
@Manish-Giri
Jul 12 2017 08:12
dataset was saved in memory and not reset
and with const, you cannot reassign (ES6)

like

const data = [1, 2];

assigning a new array to data will fail

data = [3,4];
Viktor Tiutiun
@vittorioVT
Jul 12 2017 08:13
@surya4 you need to refresh the browser, then reset, if there is an error - again refresh and resets again
Manish Giri
@Manish-Giri
Jul 12 2017 08:13
so every subsequent exercise tries to setup dataset and any earlier used variables again
so it fails
Surya Singh
@surya4
Jul 12 2017 08:14
okay so, what could be possible solution for it
okay @vittorioVT
Manish Giri
@Manish-Giri
Jul 12 2017 08:14
  1. change variable names for every exercise(dataset1, etc)
  2. just read the lessons and skip the exercise ( I did this)
Surya Singh
@surya4
Jul 12 2017 08:14
worked thanks @vittorioVT @Manish-Giri
CamperBot
@camperbot
Jul 12 2017 08:14
surya4 sends brownie points to @vittoriovt and @manish-giri :sparkles: :thumbsup: :sparkles:
:warning: surya4 already gave manish-giri points
:cookie: 777 | @vittoriovt |http://www.freecodecamp.com/vittoriovt
Manish Giri
@Manish-Giri
Jul 12 2017 08:14
I tried the reset/refresh, didn't work for me.
Surya Singh
@surya4
Jul 12 2017 08:15
worked for me @Manish-Giri
Viktor Tiutiun
@vittorioVT
Jul 12 2017 08:15
@surya4 i have to reset some challanges 3-4 times
Manish Giri
@Manish-Giri
Jul 12 2017 08:15
cool
good luck
Surya Singh
@surya4
Jul 12 2017 08:15
okay will remember that :clap:
TJ Hardin
@AndroidNinjaX
Jul 12 2017 08:18
@vittorioVT MIND BLOWN

@vittorioVT I got it. Here is the full code.

function convertToRoman(num) {
var romanNumerals = ["M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"];
var equilivantNums = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1];
var romanNumeral = "";

for (var i = 0; i < equilivantNums.length; i++){
while(num >= equilivantNums[i]) {
romanNumeral += romanNumerals[i];
num -= equilivantNums[i];
}
}
return romanNumeral;
}
convertToRoman(435);

Sritharini
@srithpink
Jul 12 2017 08:22
hi guys ....im designing a website for fun.....i added header and background but after that whatever text i add thats not visible....can anyone help me please?
wonder
@wonder2991
Jul 12 2017 08:25
let's see what you have @srithpink
Sritharini
@srithpink
Jul 12 2017 08:25

<!DOCTYPE html>

<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Landing Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--Jquery-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!--CSS-->
<link rel ="stylesheet" href= "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!--javascript-->
<script src = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!--FontAwesome-->
<script src = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"></script>
<!--jQuery-->
<script type = "text/javascript" src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<!--Googlefont-satisfy-->
<link href="https://fonts.googleapis.com/css?family=Courgette" rel="stylesheet">
<link rel="stylesheet" href="ust.css">
<!-- <script type = "text/javascript" src = "ust.js"></script> -->
</head>
<body>

<nav class = "nav navbar-fixed-top" id = "new">
<div class="container-fluid">
<div class = "navbar-header">
<a class = "brand" href="#">
<img src="brand.png" alt="brand" width = "70" height ="70">
</a>
</div>
<ul class = "nav navbar-nav navbar-right" >
<li class = "active"><a = href="#"><font color="white">Home</font></a></li>
<li><a href = "#"><font color="white">Page2</font></a></li>
<li><a href = "#"><font color="white">Page3</font></a></li>
<li><a href = "#"><font color="white">Page4</font></a></li>
</ul>
</div>
</div>
</nav>
hello world
</body>
</html>

new{

background-color: skyblue;
font-family: 'Satisfy', cursive;

-webkit-box-shadow: 0px 17px 5px -13px rgba(158, 158, 158, 0.68);

-moz-box-shadow: 0px 17px 5px -13px rgba(158, 158, 158, 0.68);
box-shadow: 0px 17px 5px -13px rgba(158, 158, 158, 0.68);
font-family: 'Courgette';
font-size: 200%;

}
.mySlides{
width:50%;

height:50%;
}

body

{
background-image: url('http://eskipaper.com/images/blue-backgrounds-8.jpg');
background-repeat: no-repeat;
background-size: cover;
}

ab

{
color: hotpink;
}

wonder
@wonder2991
Jul 12 2017 08:26
no codepen?
Sritharini
@srithpink
Jul 12 2017 08:26
im doing in sublime
wonder
@wonder2991
Jul 12 2017 08:26
give me a sec
Sritharini
@srithpink
Jul 12 2017 08:27
sure
heroiczero
@heroiczero
Jul 12 2017 08:29

@srithpink

#new{
    background-color: skyblue;
    font-family: 'Satisfy', cursive;

    -webkit-box-shadow: 0px 17px 5px -13px rgba(158, 158, 158, 0.68);
  -moz-box-shadow: 0px 17px 5px -13px rgba(158, 158, 158, 0.68);
  box-shadow: 0px 17px 5px -13px rgba(158, 158, 158, 0.68);
  font-family: 'Courgette';
  font-size:  200%;

}
.mySlides{
   width:50%;

   height:50%;
}

body

{
    background-image: url('http://eskipaper.com/images/blue-backgrounds-8.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}
#ab
{
    color: hotpink;
}

where is id="ab" in your html?

TJ Hardin
@AndroidNinjaX
Jul 12 2017 08:30
@vittorioVT Thank you so much for the help. I am still scratching my head on it, but ill write it out, and it will eventually make more since to me.
CamperBot
@camperbot
Jul 12 2017 08:30
androidninjax sends brownie points to @vittoriovt :sparkles: :thumbsup: :sparkles:
:cookie: 778 | @vittoriovt |http://www.freecodecamp.com/vittoriovt
Sritharini
@srithpink
Jul 12 2017 08:31
image.png
image.png
this s my code
Victor Popescu
@VicPopescu
Jul 12 2017 08:34
@srithpink you really could use some beautify to that code :D
wonder
@wonder2991
Jul 12 2017 08:34
@srithpink the nav is positioned fixed. so, your content starts at the top and is behind the nav.
Sritharini
@srithpink
Jul 12 2017 08:35
ohh @wonder2991 what should i do?
wonder
@wonder2991
Jul 12 2017 08:36
add margin-top to your content about the height of the nav @srithpink
Sritharini
@srithpink
Jul 12 2017 08:36
sure ill try
it works :smile: thankyou sooooooooo much :pray:
your help s very crucial1
thankyou @wonder2991
CamperBot
@camperbot
Jul 12 2017 08:37
srithpink sends brownie points to @wonder2991 :sparkles: :thumbsup: :sparkles:
:cookie: 400 | @wonder2991 |http://www.freecodecamp.com/wonder2991
wonder
@wonder2991
Jul 12 2017 08:38
no problem @srithpink
Sritharini
@srithpink
Jul 12 2017 08:38
:smile:
prakash chandra yadav
@prakashyadav008
Jul 12 2017 08:39
hey everyone
wonder
@wonder2991
Jul 12 2017 08:42
be more specific
heroiczero
@heroiczero
Jul 12 2017 08:42
@prakashyadav008 you forgot your twitter button for the project i think? if its for the FCC project Random quote generator
May Kittens Devour Your Soul
@diomed
Jul 12 2017 08:44
@prakashyadav008 looks like your design tool is a long eraser with a pencil at one end.
Bomee
@Bomulacious
Jul 12 2017 08:45

function rot13(str) { // LBH QVQ VG!
var decoded = [];

for (var i=0; i < str.length; i++){
if (str.match(/[A-Z]/gi) && str.charCodeAt(i)+13 <= 90)
decoded.push(String.fromCharCode(str.charCodeAt(i) + 13));

else if (str.match(/[A-Z]/gi) && str.charCodeAt(i)+13 > 90) 
decoded.push(String.fromCharCode(64+str.charCodeAt(i)+13-90));

else if (str.match(/[^A-Z]/gi))
decoded.push(str);

}

return decoded.join('');
}

rot13("SERR PBQR PNZC"); // FREE-CODE-CAMP
The challenge is that all non-alphabets pass in but do not get transferred. But in my code the space is still converted to a dash which is 13 space after in the unicode. Why is the non-alphabet space converted through the first if statement? And how do I change so that the non-alphabets are passed in as is?

cykins4good
@cykins4good
Jul 12 2017 08:47
Hi i need to make my left-well element have a red background. Also The .parent() method should be called on the #target1 element. This is what i came up with but it isn't working $("#leftwell").parent().css("background color", "red");
Victor Popescu
@VicPopescu
Jul 12 2017 08:48
@cykins4good background-color
Coy Sanders
@coymeetsworld
Jul 12 2017 08:48
@Bomulacious you don't really need to use match for the challenge
heroiczero
@heroiczero
Jul 12 2017 08:49
Coy Sanders
@coymeetsworld
Jul 12 2017 08:49
just get the ascii value of each character in the string, letters are within a predefined range. If the value is outside of the range then just return the character unaltered
prakash chandra yadav
@prakashyadav008
Jul 12 2017 08:50
@diomed u mean its not good..?
cykins4good
@cykins4good
Jul 12 2017 08:50
@VicPopescu what do you mean by background-color
May Kittens Devour Your Soul
@diomed
Jul 12 2017 08:51
@prakashyadav008 I didn't say that
@cykins4good he means u lack -
shivam gupta
@shivamg11000
Jul 12 2017 08:51
@prakashyadav008 its nice , make the animation faster
cykins4good
@cykins4good
Jul 12 2017 08:53
then how can i amend this $("#leftwell").parent().css("background color", "red"); to left-well element have a red background and The .parent() method should be called on the #target1 element.
May Kittens Devour Your Soul
@diomed
Jul 12 2017 08:53

background color

is not the same as

background-color

Coy Sanders
@coymeetsworld
Jul 12 2017 08:53
@cykins4good check your selector, what is the id again?
heroiczero
@heroiczero
Jul 12 2017 08:54
@Bomulacious https://www.w3schools.com/charsets/ref_utf_basic_latin.asp make sure if it is less than 65 you do not change it or you are changing the . and ?
Alexander Køpke
@alexanderkopke
Jul 12 2017 08:57
@prakashyadav008 put the api request in a function so you can call it at the end of the js document, and you can call it when someone clicks the button. This way it will display the first quote when the document loads
Bomee
@Bomulacious
Jul 12 2017 08:57
@heroiczero thanks, but there are other symbols beyond that like from 123. I just wanted to use the match function to cover all symbols.
CamperBot
@camperbot
Jul 12 2017 08:57
bomulacious sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1479 | @heroiczero |http://www.freecodecamp.com/heroiczero
heroiczero
@heroiczero
Jul 12 2017 08:58
@Bomulacious if the value is greater than 64 and less than 91 it will be a capital letter
@Bomulacious you could use that as a premises and find the letter for each Caesar cypher letter
Claudio Restifo
@Marmiz
Jul 12 2017 09:01

@Bomulacious you are actually over complicating your tasks.
This algorithm looks difficult but is made easer by the fact that:

All letters will be uppercase

So in other word all you need to check is that if the charCodeAt is included in those values, if so swift it.
Otherwise just return the char.

Bomee
@Bomulacious
Jul 12 2017 09:01
@coymeetsworld thanks
CamperBot
@camperbot
Jul 12 2017 09:01
bomulacious sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star2: 2968 | @coymeetsworld |http://www.freecodecamp.com/coymeetsworld
Coy Sanders
@coymeetsworld
Jul 12 2017 09:01
yw
Bomee
@Bomulacious
Jul 12 2017 09:03
@heroiczero @Marmiz thanks both - Actually at first my if statements look similar to your suggestions: <65, 65<x>90 etc, but it didnt work, prob because of some mistakes along the way I did it, so I found myself in this hole I couldn't get out for a while now :S I'll give it another try with your suggestions in mind
CamperBot
@camperbot
Jul 12 2017 09:03
bomulacious sends brownie points to @heroiczero and @marmiz :sparkles: :thumbsup: :sparkles:
:warning: bomulacious already gave heroiczero points
:cookie: 989 | @marmiz |http://www.freecodecamp.com/marmiz
cykins4good
@cykins4good
Jul 12 2017 09:05
@coymeetsworld the id is #target1
Claudio Restifo
@Marmiz
Jul 12 2017 09:06
I still got my good 'ol Caesar in C
#include <stdio.h>
#include <cs50.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

int main(int argc, string argv[])
{
    //check that the user digit two commands in the command line
    if ( argc != 2)
    {
        printf("You forgot to give me a key, please lunch again the program and digit a key.");
        return 1;
    }

    //convert the array in a int
    int k = atoi(argv[1]);

    // check that the key is valid
    if (k < 1)
    {
    printf("Invalid key, please give me a positive number.");
    return 1;
    }

    //get the plain text from the user
    string text = GetString();

    //loop to print the cyphertext
    for (int i = 0, n = strlen (text); i < n; i++)
    {

     //convert only text letters
     if (isalpha (text[i]))
     {
         //formula for the uppercases letters
         if (isupper (text[i]))
         {
             int result = ((text[i] + k - 65) %26+ 65);
             printf("%c", result);   
         }

         //formula for the lowercase letters
         if (islower (text[i]))
         {
             int result = ((text[i] + k - 97) %26 + 97);
             printf("%c", result);
         }

     }
         //for the symbols
         else
         {
         printf("%c", text[i]);
         }


    }

    printf("\n");
Coy Sanders
@coymeetsworld
Jul 12 2017 09:06
@cykins4good I meant the well, look at it carefully
Claudio Restifo
@Marmiz
Jul 12 2017 09:06
Probably one of the worst C implementation ever :)
Coy Sanders
@coymeetsworld
Jul 12 2017 09:06
whats GetString() @Marmiz ?
cykins4good
@cykins4good
Jul 12 2017 09:07
@coymeetsworld its left-well
Coy Sanders
@coymeetsworld
Jul 12 2017 09:07
oh probably one of the import functions lol
@cykins4good is that what you have in your code?
abdelrahman tarek
@buhzy
Jul 12 2017 09:07
i wanna know what the background-indent does in the css ?please help me
cykins4good
@cykins4good
Jul 12 2017 09:09
@coymeetsworld $("#left-well").parent().css("background-color", "red"); this is my code
Alexander Køpke
@alexanderkopke
Jul 12 2017 09:09
Claudio Restifo
@Marmiz
Jul 12 2017 09:10
@coymeetsworld it's a helper fromcs50.h lib
Coy Sanders
@coymeetsworld
Jul 12 2017 09:10
my mistake @cykins4good, you had a typo with #leftwell, but that isn't the right selector actually
you need to target #left-well, not #left-well's parent
but you need to use parent(), so you need to specify a different id, one that is a child of #left-well
@Marmiz im digging through my old programming code not on github
see if I actually implemented this in college, it would be amazing to see it, I don't think I did though
Claudio Restifo
@Marmiz
Jul 12 2017 09:12
@coymeetsworld everyone implements a Caesar Cipher at a point :)
I believe you can do it without the heleper function by using scanf perhaps?
Coy Sanders
@coymeetsworld
Jul 12 2017 09:12
feel like i probably did yeah
cykins4good
@cykins4good
Jul 12 2017 09:13
@coymeetsworld so could i make The .parent() method to be called on the #target1 element.
Coy Sanders
@coymeetsworld
Jul 12 2017 09:13
it wouldve been a good C programming assignment
@cykins4good try
abdelrahman tarek
@buhzy
Jul 12 2017 09:13
@coymeetsworld what background-indent does in css please?
Coy Sanders
@coymeetsworld
Jul 12 2017 09:13
never heard of that @buhzy
Claudio Restifo
@Marmiz
Jul 12 2017 09:14
@buhzy u sure is not text-indent?
Coy Sanders
@coymeetsworld
Jul 12 2017 09:14
you sure thats valid CSS? idk how you would indent a background
heroiczero
@heroiczero
Jul 12 2017 09:15
@buhzy I am confused can't you just put your background in a div and move it how you want?
Coy Sanders
@coymeetsworld
Jul 12 2017 09:16
I found some C code I wrote, I guess I kept some of it but no cipher code
I need to revisit that stuff, for some reason alot of SRE jobs are asking about C/Linux stuff like mutexes/semaphores/signals/etc
abdelrahman tarek
@buhzy
Jul 12 2017 09:20
@coymeetsworld @Marmiz its text-indent ? wrong typping
cykins4good
@cykins4good
Jul 12 2017 09:22
@coymeetsworld This is what i finally arrived at and which brought the solution $("#target1").parent().css("background-color", "red"); Thanks a lot.
CamperBot
@camperbot
Jul 12 2017 09:22
cykins4good sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star2: 2969 | @coymeetsworld |http://www.freecodecamp.com/coymeetsworld
Claudio Restifo
@Marmiz
Jul 12 2017 09:26
@coymeetsworld I'm learning Go for fun because I miss a compiler screaming at me for not declaring type variables
Sweet Coding :)
@SweetCodingInc
Jul 12 2017 09:26
Such a sadist! :D
Coy Sanders
@coymeetsworld
Jul 12 2017 09:30
np @cykins4good
@Marmiz have so much to learn, Go is taking a backseat to JS, C, Python
also Java
because of coding interviews and I can't do all questions with JS
Koleen BP
@KBPsystem777
Jul 12 2017 10:06
hi guys need your assistance on this activity: https://www.freecodecamp.com/challenges/local-scope-and-functions
I am unable to pass this challenge: No global myVar variable
shivam gupta
@shivamg11000
Jul 12 2017 10:07
@KBPsystem777 send your code
here
Koleen BP
@KBPsystem777
Jul 12 2017 10:09

@shivamg11000 this is

function myLocalScope() {
var myVar = 'use strict';

console.log(myVar);
}
myLocalScope();

// Run and check the console
// myVar is not defined outside of myLocalScope
console.log(myVar);

// Now remove the console log line to pass the test

//Global myVar variable
myVar = 'use strict';

Alexander Køpke
@alexanderkopke
Jul 12 2017 10:09
@KBPsystem777 did you declare a myVar variable inside function?
Koleen BP
@KBPsystem777
Jul 12 2017 10:10
yes @alexanderkopke see my code
shivam gupta
@shivamg11000
Jul 12 2017 10:10
@KBPsystem777 why you have done that
var myVar = 'use strictt' ;
Koleen BP
@KBPsystem777
Jul 12 2017 10:10
@shivamg11000 I thought that is what they want to be the value for myVar?
Alexander Køpke
@alexanderkopke
Jul 12 2017 10:11
@KBPsystem777 oh yeah. Now read this line: // Now remove the console log line to pass the test
Claudio Restifo
@Marmiz
Jul 12 2017 10:11

@KBPsystem777

// Now remove the console log line to pass the test

shivam gupta
@shivamg11000
Jul 12 2017 10:11
@KBPsystem777 "use strict" is used for different purpose think of it as it never existed
Koleen BP
@KBPsystem777
Jul 12 2017 10:12
alright i did removed the console.log(myVar) line. Still no good

updated code: //Global myVar
myVar = 777;

function myLocalScope() {
'use strict';
var myVar = 777;

console.log(myVar);
}
myLocalScope();

// Run and check the console
// myVar is not defined outside of myLocalScope

// Now remove the console log line to pass the test

@shivamg11000 I reset my code and brought back 'use strict' line. This is what I have now:

//Global myVar
myVar = 777;

function myLocalScope() {
'use strict';
var myVar = 777;

console.log(myVar);
}
myLocalScope();

// Run and check the console
// myVar is not defined outside of myLocalScope

// Now remove the console log line to pass the test

shivam gupta
@shivamg11000
Jul 12 2017 10:14
read this
// Run and check the console
// myVar is not defined outside of myLocalScope
// Now remove the console log line to pass the test
thats written in the code
s
remove the console.log() line
tundeiness
@tundeiness
Jul 12 2017 10:15
hi guys. So I need a heads up on this: instead of my social media button tweeting the link of my random quote page, i'd like it to do something else like tweet the quote displayed on the page at that moment to my twitter handle. I have been scouring through twitter for developers and I can't find any clue yet. Can someone show me how to make my tweet button get the actual content displayed per time everytime I request a new quote?
Koleen BP
@KBPsystem777
Jul 12 2017 10:17
@shivamg11000
'''''
''''''
CamperBot
@camperbot
Jul 12 2017 10:17
:bulb: to format code use backticks! ``` more info
Koleen BP
@KBPsystem777
Jul 12 2017 10:17

@shivamg11000 this is what I have now:

'''//Global myVar

myVar = 44;

function myLocalScope() {
'use strict';
var myVar = 44;

console.log(myVar);
}
myLocalScope();

// Run and check the console
// myVar is not defined outside of myLocalScope
(myVar);

// Now remove the console log line to pass the test
'''

CamperBot
@camperbot
Jul 12 2017 10:17
:bulb: to format code use backticks! ``` more info
shivam gupta
@shivamg11000
Jul 12 2017 10:18
@KBPsystem777 why you have declared myVar at the top , nowhere it is told to do that in the challenge
outside the function
myLocalScope()
Claudio Restifo
@Marmiz
Jul 12 2017 10:19

@tundeiness
https://dev.twitter.com/web/tweet-button

simply pre-populate the button as they explain:

Selecting the Tweet button will pop open a new child window with a Tweet composer pre-populated with the values you define in button markup or extracted from the page.

shivam gupta
@shivamg11000
Jul 12 2017 10:19
also what is this
(myVar)
@KBPsystem777
at the bottom
Claudio Restifo
@Marmiz
Jul 12 2017 10:20
@tundeiness list of available web-intent:
https://dev.twitter.com/web/tweet-button/web-intent
tundeiness
@tundeiness
Jul 12 2017 10:27
@Marmiz you see, the issue is how to define these values in the button markup. the content displayed are selected at random as such creating the button in such a way that it grabs that content per time is the challenge.
MightyGarhem
@MightyGarhem
Jul 12 2017 10:28
Why isnt my text in the blue section? https://codepen.io/MightyGarhem/pen/QgVmga
Claudio Restifo
@Marmiz
Jul 12 2017 10:28

@tundeiness what do you mean?
There is:

text=Hello%20world"

instead of hardcoding the hello world string you can place varaible inside:

text=myCurrentQuote
May Kittens Devour Your Soul
@diomed
Jul 12 2017 10:29
@MightyGarhem coz u closed blue section </div> before u wrote the text
Claudio Restifo
@Marmiz
Jul 12 2017 10:29
How to grab it, either use jQuery, or save it in a variable at the moment of API call... you have endless choices :)
MightyGarhem
@MightyGarhem
Jul 12 2017 10:29
@diomed I see, stupid small mistake of me :)
tundeiness
@tundeiness
Jul 12 2017 10:32
@Marmiz the "text" attribute is part of the button tag? if you say text = myCurrentCode, then myCurrentCode will refer to the source of the quotes right?

@tundeiness what do you mean?
There is:

text=Hello%20world"

instead of hardcoding the hello world string you can place varaible inside:

text=myCurrentQuote
Alexander Køpke
@alexanderkopke
Jul 12 2017 10:34
tundeiness
@tundeiness
Jul 12 2017 10:35
@Marmiz hmmm well i have saved the quotes somewhere as a variable. now assuming the variable is var contentInput, are you suggesting i do this :
```
text = contentInput
@Marmiz note also that contentInput is in my JS file.
May Kittens Devour Your Soul
@diomed
Jul 12 2017 10:38
@Marmiz @Marmiz @Marmiz @Marmiz :laughing:
Claudio Restifo
@Marmiz
Jul 12 2017 10:39

@tundeiness

var someText = " a string"

//then I can encode that string and use it.
var tweetUrl  = https://twitter.com/intent/tweet?&text= + encodeURIComponent(someText);

(note this is an example on how you could do it)

@diomed :cat: :cat2:
how's life? <3
May Kittens Devour Your Soul
@diomed
Jul 12 2017 10:42
oh, you know... staggering
tundeiness
@tundeiness
Jul 12 2017 10:42
@Marmiz in the JS file or the HTML file?
May Kittens Devour Your Soul
@diomed
Jul 12 2017 10:42
wanting to be fit...
looking for good icecreams to make me fit
:smile:
Claudio Restifo
@Marmiz
Jul 12 2017 10:43
@diomed the day that they'll invent slimming chocolate I'll be as thin as a model.
Thanks I actually enjoy do sports >.<
CamperBot
@camperbot
Jul 12 2017 10:43
marmiz sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:star2: 5162 | @diomed |http://www.freecodecamp.com/diomed
Claudio Restifo
@Marmiz
Jul 12 2017 10:44
@tundeiness well since we have a variable, I suggest using JS... unless you think that HTML can bear variables and operations
tundeiness
@tundeiness
Jul 12 2017 10:49
@Marmiz yes JS is the best option. linking the tweet button is another part that is still unclear to me. .... how do I link it with the twitter href in html is the issue.
Pethaf
@Pethaf
Jul 12 2017 10:51
Has anyone seen ossifrage?
May Kittens Devour Your Soul
@diomed
Jul 12 2017 10:51
not today
Stephen James
@sjames1958gm
Jul 12 2017 11:30
@tundeiness You can assign the href through jquery or native APIs.
https://dev.twitter.com/web/intents
barons03
@barons03
Jul 12 2017 11:41
Hey! I have to make a fixed width pixel-perfect landing page from a psd, but does somebody has any clue what to do with vector smart objects?
tundeiness
@tundeiness
Jul 12 2017 11:52

@sjames1958gm now assigning the href through Jquery is the issue. Here is what i'm trying to do:

$("#twitter").on( "click", function ( )        {

      var contentText = $("#content").html(Quotes[cIndex].quote);

var tweetUrl  = "https://twitter.com/intent/tweet?&text= + encodeURIComponent(contentText);

       });

it's not there yet maybe you can chip in something?

Stephen James
@sjames1958gm
Jul 12 2017 11:54
@tundeiness you could do window.open(tweetUrl);
tundeiness
@tundeiness
Jul 12 2017 11:56

@sjames1958gm okay...like this :
```
$("#twitter").on( "click", function ( ) {

  var contentText = $("#content").html(Quotes[cIndex].quote);

var tweetUrl = "https://twitter.com/intent/tweet?&text= + encodeURIComponent(contentText);

   });

@sjames1958gm

$("#twitter").on( "click", function ( )        {

      var contentText = $("#content").html(Quotes[cIndex].quote);

var tweetUrl  = "https://twitter.com/intent/tweet?&text= + encodeURIComponent(contentText);

window.open(tweetUrl);
       });

?

Stephen James
@sjames1958gm
Jul 12 2017 11:57
Yes.
Another option is to make #twitter a <a> and set that URL as the href with target="_blank"
tundeiness
@tundeiness
Jul 12 2017 11:58
@sjames1958gm the second option can be used in JS too?
Stephen James
@sjames1958gm
Jul 12 2017 11:59
You can use JS to assign the href of an <a> tag
tundeiness
@tundeiness
Jul 12 2017 11:59
@sjames1958gm how would I do this?
Stephen James
@sjames1958gm
Jul 12 2017 12:00
$("a").attr("href", tweetUrl)
tundeiness
@tundeiness
Jul 12 2017 12:01
@sjames1958gm okay.. hmm. So the href will open a new page and the tweetUrl will grab the content I want to tweet right?
Stephen James
@sjames1958gm
Jul 12 2017 12:02
@tundeiness clicking on the a tag will go to the URL in the href
tundeiness
@tundeiness
Jul 12 2017 12:03
@sjames1958gm riiiiigggghhht! :clap:
Stephen James
@sjames1958gm
Jul 12 2017 12:03
@tundeiness :+1:
tundeiness
@tundeiness
Jul 12 2017 12:04
@sjames1958gm my href in my html already contain the tweet intent link though...
Stephen James
@sjames1958gm
Jul 12 2017 12:05
With the correct quote?
cykins4good
@cykins4good
Jul 12 2017 12:12
In going through and solving the challenges in the front-end developer, how will i be able to solve the challenges using Code pen?Is it that i will need to download the Code pen editor?
tundeiness
@tundeiness
Jul 12 2017 12:16

@sjames1958gm just one more question: this tweetUrl stuff

var tweetUrl  = "https://twitter.com/intent/tweet?&text= + encodeURIComponent(contentText);

am I doing it the right way? that is am I assigning the link to a variable properly? something seems to have broken..

Stephen James
@sjames1958gm
Jul 12 2017 12:17
That seems correct.
tundeiness
@tundeiness
Jul 12 2017 12:17
@sjames1958gm like this
href="https://twitter.com/intent/tweet?text=...
Stephen James
@sjames1958gm
Jul 12 2017 12:17
@cykins4good codepen is an online development environment, the editor is web based.
tundeiness
@tundeiness
Jul 12 2017 12:18
@sjames1958gm hmmm JS is telling me something is wrong with it.
Stephen James
@sjames1958gm
Jul 12 2017 12:18
@tundeiness When you use the devtools inspector does it show the correct href
tundeiness
@tundeiness
Jul 12 2017 12:21
@sjames1958gm I copied it directly from https://dev.twitter.com/web/tweet-button
I think this is the right way? should the " " be included?
var tweetUrl  = "https://twitter.com/intent/tweet?&text= + encodeURIComponent(contentText)";
cykins4good
@cykins4good
Jul 12 2017 12:21
But how are my to solve the challenges contained therein in my Frond-end development challenges. @sjames1958gm
Stephen James
@sjames1958gm
Jul 12 2017 12:21
@cykins4good codepen is an online front-end development environement
@cykins4good You can supply HTML, CSS and javascript
@tundeiness The "" should not be around the + encodeURIComponent(contentText) part
tundeiness
@tundeiness
Jul 12 2017 12:23
@sjames1958gm okay
smallz
@markkariuki
Jul 12 2017 12:24
hi guys im stuck over here;need some help <script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target4").html("<em>click</em>");
});
</script>
how do i emphasis the target 4 and add html tags
tundeiness
@tundeiness
Jul 12 2017 12:25
@sjames1958gm JS still says something is wrong :smile:
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 12:25
@markkariuki what is click?
smallz
@markkariuki
Jul 12 2017 12:25
click is the text for target 4
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 12:26
@markkariuki the text should go between the <em> tags
@markkariuki that shouldn't be click, read the instructions
Stephen James
@sjames1958gm
Jul 12 2017 12:28
@tundeiness Well, something is not really specific enough to help
madhuri soni
@sonimadhuri
Jul 12 2017 12:28
@tundeiness share your code pen link
tundeiness
@tundeiness
Jul 12 2017 12:29
Stephen James
@sjames1958gm
Jul 12 2017 12:32
@tundeiness You put the quotes around the wrong part. the http part should be inside the quotes
I said the quotes should NOT be around the encode URI component part
tundeiness
@tundeiness
Jul 12 2017 12:34
@sjames1958gm you know actually they were there before until I thought I saw it should be around the encode URI component part
Stephen James
@sjames1958gm
Jul 12 2017 12:35
@tundeiness encodeURIComponent part is a function call and that will not run if inside of ""
smallz
@markkariuki
Jul 12 2017 12:35
thx guys i saw where i was wrong
tundeiness
@tundeiness
Jul 12 2017 12:36
@sjames1958gm okay...there is no need for the href in the html part right?
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 12:36
@markkariuki :+1:
Stephen James
@sjames1958gm
Jul 12 2017 12:37
@tundeiness No, not if you are using this click handler and window.open
tundeiness
@tundeiness
Jul 12 2017 12:41
@sjames1958gm so off goes the href then.. :smile:
madhuri soni
@sonimadhuri
Jul 12 2017 12:42
hey @sjames1958gm why is encodeURIcomponent even being used here
Stephen James
@sjames1958gm
Jul 12 2017 12:44
@sonimadhuri In case the quote contains spaces, or other special characters that can't be in a URL
madhuri soni
@sonimadhuri
Jul 12 2017 12:46
@sjames1958gm alright but why do we even need to modify the url .we only need to tweet the quote and a tweet can have spaces and special characters
Stephen James
@sjames1958gm
Jul 12 2017 12:48
@sonimadhuri He wants the URL to contain the current quote.
madhuri soni
@sonimadhuri
Jul 12 2017 12:49
@sjames1958gm but we arent asked to do that right?
Stephen James
@sjames1958gm
Jul 12 2017 12:49
Yes, that is what is suppsosed to happen you tweet what the current quote is
tundeiness
@tundeiness
Jul 12 2017 12:50
@sjames1958gm hi can you help test it out? I found out with the href removed it wont work.
Gautamdhruv
@Gautamdhruv
Jul 12 2017 12:51
hii fnds
madhuri soni
@sonimadhuri
Jul 12 2017 12:52
hello
Stephen James
@sjames1958gm
Jul 12 2017 12:56
@tundeiness Your console.log is showing cIndex is not defined, cIndex is local to that click handler.
tundeiness
@tundeiness
Jul 12 2017 12:57
@sjames1958gm wow...
Comment about this
Plzz
Stephen James
@sjames1958gm
Jul 12 2017 13:03
@tundeiness One of my cardinal rules of programming, when debugging only change one thing at a time.
tundeiness
@tundeiness
Jul 12 2017 13:04
@sjames1958gm yeah..same ere
@sjames1958gm all done but not the result expected
Stephen James
@sjames1958gm
Jul 12 2017 13:05
@tundeiness var tweetUrl = "https://twitter.com/intent/tweet?&text=" + encodeURIComponent(contentText);
@tundeiness Also, you are setting the HTML in the quote when you just want to tweet the current.
var contentText = $("#content").text();
tundeiness
@tundeiness
Jul 12 2017 13:08
@sjames1958gm okay. whatever was in the html( ) was the automation in JS
Stephen James
@sjames1958gm
Jul 12 2017 13:08
@tundeiness Are you not setting the first quote through JS?
tundeiness
@tundeiness
Jul 12 2017 13:11
@sjames1958gm the default quote whenever you open the site is set there, but others are through JS. After doing this var contentText = $("#content").text(); same response still persist
Stephen James
@sjames1958gm
Jul 12 2017 13:12
encodeURIComponent('contentText')" this is not using the variable contentText
tundeiness
@tundeiness
Jul 12 2017 13:20
@sjames1958gm yeah
@sjames1958gm solution?
Stephen James
@sjames1958gm
Jul 12 2017 13:21
@tundeiness don't put the variable name in quotes that makes it a string.
tundeiness
@tundeiness
Jul 12 2017 13:25
@sjames1958gm not workin
Stephen James
@sjames1958gm
Jul 12 2017 13:26
@tundeiness Remember a while back where we agreed that + encodeURIComponent(contentText); this should not be inside the string?
tundeiness
@tundeiness
Jul 12 2017 13:26
@sjames1958gm true
@sjames1958gm and it's not in a string
Huỳnh Trần Khanh
@khanh2003
Jul 12 2017 13:27
Hey, have you ever eaten waffles?
Stephen James
@sjames1958gm
Jul 12 2017 13:27
@tundeiness Unless you didn't save your pen - "https://twitter.com/intent/tweet?&text= + encodeURIComponent(contentText)" it is
May Kittens Devour Your Soul
@diomed
Jul 12 2017 13:28
lawfls
Huỳnh Trần Khanh
@khanh2003
Jul 12 2017 13:30
sometimes using template strings is better than concatenating strings
const url = `https://twitter.com/intent/tweet?&text=${encodeURIComponent(contentText)}`
tundeiness
@tundeiness
Jul 12 2017 13:30
@sjames1958gm yes I saved , and the quote above is same. However still the same thing
@khanh2003 so this is better?
Stephen James
@sjames1958gm
Jul 12 2017 13:31
@tundeiness This is wrong
var tweetUrl = "https://twitter.com/intent/tweet?&text= + encodeURIComponent(contentText)"
should be
var tweetUrl = "https://twitter.com/intent/tweet?&text=" + encodeURIComponent(contentText)
Or what @khanh2003 said
Huỳnh Trần Khanh
@khanh2003
Jul 12 2017 13:31
@tundeiness yeah. use ES6 now.
tundeiness
@tundeiness
Jul 12 2017 13:32
@sjames1958gm oohkay.... :smile:
Stephen James
@sjames1958gm
Jul 12 2017 13:32
It is better to understand why what you did was wrong first.
tundeiness
@tundeiness
Jul 12 2017 13:37
@sjames1958gm works now, apart from the fact that some quotes maybe longer than 140 xters and the need to shorten it into a link and a bit of hashtag here and there. So why did I go wrong? yes I was missing a quote. But away from that where did I go wrong. also is @khanh2003 approach same?
Stephen James
@sjames1958gm
Jul 12 2017 13:38
@tundeiness template strings are a more convenient way to inject code into strings.
You kept putting your code inside of the quotes which made the code not work.
tundeiness
@tundeiness
Jul 12 2017 13:43
@sjames1958gm okay. Another question. is it possible for encodeURIComponent( ) to take multiple parameters separated by comma or commas?
Stephen James
@sjames1958gm
Jul 12 2017 13:44
@tundeiness I would check MDN docs on that function
Looks like only a string.
tundeiness
@tundeiness
Jul 12 2017 13:46
@sjames1958gm okay...would love to hear
Joshua Friedman
@jsf2008
Jul 12 2017 14:29
Hey can someone available to help understand how to make my quote generator to use my arrays without repeating until all of my quotes have been used?
Scott Rhoades
@srhoades
Jul 12 2017 14:38
Why not use an api @jsf2008 instead? Will help with later ziplines.
Joshua Friedman
@jsf2008
Jul 12 2017 14:40
Because I'm done with the project and all I want to have done left is to make sure my quotes don't repeat until all possible quotes have been used.
Scott Rhoades
@srhoades
Jul 12 2017 14:43
Fair enough
Jan Shah
@JanShah
Jul 12 2017 14:44
@jsf2008 how would you share a quote?
Joshua Friedman
@jsf2008
Jul 12 2017 14:44
That was my only overlook on the project.
I'm not entirely sure
Jan Shah
@JanShah
Jul 12 2017 14:45
@jsf2008 maybe add onclick to the shown quote, some kind of indicator on hover that it can be shared, you've got the skills to do it
Joshua Friedman
@jsf2008
Jul 12 2017 14:45
My initial thought is a function use mouseover
Jan Shah
@JanShah
Jul 12 2017 14:45
exactly right mate.
Abdullah Ali
@aali21
Jul 12 2017 14:46
Would anyone here like to show me their portfolio page?
I wanna see how complicated or basic it has to be
Joshua Friedman
@jsf2008
Jul 12 2017 14:46
It can be very basic
Jan Shah
@JanShah
Jul 12 2017 14:46
@aali21 you can make it as basic or complicated as you want @aali21
Joshua Friedman
@jsf2008
Jul 12 2017 14:47
I'm a copy learner. So what I did was rewrite the code in the example given
Jan Shah
@JanShah
Jul 12 2017 14:47
@aali21 just remember you might want to use it to promote yourself
Joshua Friedman
@jsf2008
Jul 12 2017 14:47
to understand how divs worked
Jan Shah
@JanShah
Jul 12 2017 14:47
@jsf2008 ohhh, do you mean you don't understand what you wrote?
Abdullah Ali
@aali21
Jul 12 2017 14:47
https://codepen.io/aali21/pen/weRaLV thats what I did here
Jan Shah
@JanShah
Jul 12 2017 14:48
@aali21 that's a start
Abdullah Ali
@aali21
Jul 12 2017 14:48
but I got that from utube tutorials
Joshua Friedman
@jsf2008
Jul 12 2017 14:48
No I understand
Personally freeCodeCamp for me doesn't do a very good job at explaining how to do things
Jan Shah
@JanShah
Jul 12 2017 14:49
@aali21 that's ok, but you should be able to build on that, rewrite certain bits, add others
Joshua Friedman
@jsf2008
Jul 12 2017 14:49
they teach you fundamentals but not the complexities
Abdullah Ali
@aali21
Jul 12 2017 14:49
@jsf2008 so whats ur preffered way of learning
@CentropyIT ok i will
Joshua Friedman
@jsf2008
Jul 12 2017 14:49
copying the code line by line and understanding why certain things go where they do
The focus of your portfolio project is nothing more than understanding the div elements
Abdullah Ali
@aali21
Jul 12 2017 14:50
@jsf2008 aha u and me share similarities in learning
Joshua Friedman
@jsf2008
Jul 12 2017 14:50
you need to understand why you need to separate your example navigation bar from your header
Jan Shah
@JanShah
Jul 12 2017 14:50
@jsf2008 it's not the only resource out there, just a starting point to set a direction I think
Joshua Friedman
@jsf2008
Jul 12 2017 14:50
because it will overlap everything
agreed
fullstack is a godsend
and stackoverflow
I rewrote this a dozen times to understand each line
Abdullah Ali
@aali21
Jul 12 2017 14:52
damn thats professional
they dont have that kind of example on FCC anymore
Joshua Friedman
@jsf2008
Jul 12 2017 14:52
They do
I started the program a week ago
Abdullah Ali
@aali21
Jul 12 2017 14:52
Vasco Cova
@vascocova
Jul 12 2017 14:53
imagem.png
Hello all! Just started the beta version challenges and hit a wall right at the start. Can't pass the h2 color CSS style challenge, because it's saying the H2 should be blue... and it is!!! here is the screenshot... BTW I'm a noob! Thanks!
Joshua Friedman
@jsf2008
Jul 12 2017 14:53
My recommendation is try a code yourself
it's going to look like shit you're going to have to accept it.
Once you understand how certain things fit, then slowly integrate pieces and parts
Abdullah Ali
@aali21
Jul 12 2017 14:54
aright well i dont mind xD I just started a week ago
Joshua Friedman
@jsf2008
Jul 12 2017 14:55
Here's my Random Quote Generator. I didn't learn how to manipulate element directions yet, however by reading someone elses codes and how they did their thing, I was able to integrate that into my quote gen
Abdullah Ali
@aali21
Jul 12 2017 14:56
@vascocova <style>
h2 {
color: blue;
}
</style> try it like this
Joshua Friedman
@jsf2008
Jul 12 2017 14:56
your cat photo app isn't blue lol
Vasco Cova
@vascocova
Jul 12 2017 14:58
I still get the same error message "Your h2 element should be blue."
imagem.png
Joshua Friedman
@jsf2008
Jul 12 2017 15:00
try adding a period before the h2
Abdullah Ali
@aali21
Jul 12 2017 15:01
@vascocova you're on beta version?
Vasco Cova
@vascocova
Jul 12 2017 15:01
Yep on beta...
Put in the period before h2 and same...
take a read
Abdullah Ali
@aali21
Jul 12 2017 15:03
image.png
it should be normal on the normal version
Joshua Friedman
@jsf2008
Jul 12 2017 15:03
reset your code start from scratch
Abdullah Ali
@aali21
Jul 12 2017 15:04
@jsf2008 yea and go to the non-beta website
Vasco Cova
@vascocova
Jul 12 2017 15:06
imagem.png
!???
I restarted, refreshed, etc... same!
Abdullah Ali
@aali21
Jul 12 2017 15:07
@vascocova you need to go on the full website not the beta version
Vasco Cova
@vascocova
Jul 12 2017 15:08
I'd already started there and then jumped on the beta... now I understand why the "beta" :)... going back to ald site. Was ready to break something :) Thanks for the help
Abdullah Ali
@aali21
Jul 12 2017 15:11
@vascocova cool ;D
Darren
@DarrenfJ
Jul 12 2017 15:33
morning fCC
Kyle Holm
@thekholm80
Jul 12 2017 15:34
@DarrenfJ :wave:
Darren
@DarrenfJ
Jul 12 2017 15:34
@thekholm80 hey buddy.. how goes the helpRoom?
Kyle Holm
@thekholm80
Jul 12 2017 15:34
pretty quiet
Darren
@DarrenfJ
Jul 12 2017 15:34
mmmhmmm
dang
Kyle Holm
@thekholm80
Jul 12 2017 15:35
it's okay, getting a lot of code written
Darren
@DarrenfJ
Jul 12 2017 15:35
ha!
yah
Jan Shah
@JanShah
Jul 12 2017 15:35
@thekholm80 @DarrenfJ I think learning opportunities are being lost
Kyle Holm
@thekholm80
Jul 12 2017 15:35
i'm writing bugs faster than ever now
@CentropyIT you could be right
Darren
@DarrenfJ
Jul 12 2017 15:36
@CentropyIT yup.. no more help button on the exercises :/
Yaniv Kela
@yanivkela
Jul 12 2017 15:36
Hello there. this is the first time im writing here.. I am in the beggining of the FCC course. and i just got to the part of the Basic front end project. i did the tribute page but the next project is to make a portfolio. I saw the example. and there are a ton of thing im not even close to know how to do. What do you think is the right thing to do? im thinking about just keeping in the course and come back to it later but im not sure. thank you guys
Darren
@DarrenfJ
Jul 12 2017 15:36

@thekholm80 ha! yes! ;)

i'm writing bugs faster than ever now

@yanivkela some people do that (come back to it later)
Jan Shah
@JanShah
Jul 12 2017 15:37
@yanivkela if you make a start with a basic frame, yknow, header, body etc, you can build inside each section first to make it what you want
Darren
@DarrenfJ
Jul 12 2017 15:37
one thing you can do is block it off into divs and some bootstrap to make that layout part look nice
Daniil Holstinin
@scrimiil
Jul 12 2017 15:37
@yanivkela practice makes perfect. build portfolio
Darren
@DarrenfJ
Jul 12 2017 15:38
@yanivkela and then as you learn more build those items as you go
Jan Shah
@JanShah
Jul 12 2017 15:38
also, go to bootstrap.org to get design ideas @yanivkela
Darren
@DarrenfJ
Jul 12 2017 15:38
@yanivkela there's a ton of threads on the forum where people explain how to break it down into component parts and build what you know etc etc..
Yaniv Kela
@yanivkela
Jul 12 2017 15:39
okay i will look in the forum. thank you guys!
Abdullah Ali
@aali21
Jul 12 2017 15:41
@thekholm80 does your website need money for the servers to run
Kyle Holm
@thekholm80
Jul 12 2017 15:41
I'm not Quincy lol
we kind of look alike though
Darren
@DarrenfJ
Jul 12 2017 15:41
i just realized that lol!
thanks for helping out guys
Abdullah Ali
@aali21
Jul 12 2017 15:42
kyle
Darren
@DarrenfJ
Jul 12 2017 15:42
thanks @CentropyIT @scrimiil @thekholm80
CamperBot
@camperbot
Jul 12 2017 15:42
darrenfj sends brownie points to @centropyit and @scrimiil and @thekholm80 :sparkles: :thumbsup: :sparkles:
:cookie: 4 | @scrimiil |http://www.freecodecamp.com/scrimiil
:cookie: 466 | @centropyit |http://www.freecodecamp.com/centropyit
:star2: 1317 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Yaniv Kela
@yanivkela
Jul 12 2017 15:42
@DarrenfJ thank you a lot!
CamperBot
@camperbot
Jul 12 2017 15:42
yanivkela sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1897 | @darrenfj |http://www.freecodecamp.com/darrenfj
Abdullah Ali
@aali21
Jul 12 2017 15:42
https://kyleholm.com/ im talking about htis
this*
Joshua Friedman
@jsf2008
Jul 12 2017 15:42
can someone help me develop a for loop for my quote gen?
Kyle Holm
@thekholm80
Jul 12 2017 15:42
@aali21 oh! nah, it costs like $30 a year, not a big deal
so that works out to about $2 per person who's actually looked at it
Abdullah Ali
@aali21
Jul 12 2017 15:44
@thekholm80 oh cool, but I dont see any advertisements so how does it generate money?
Kyle Holm
@thekholm80
Jul 12 2017 15:44
@aali21 i don't make money off of it, just do it for fun
Jan Shah
@JanShah
Jul 12 2017 15:47
@thekholm80 make money out of your hobbies is much more fun :)
Kyle Holm
@thekholm80
Jul 12 2017 15:47
haha i bet. maybe some day
I don't get enough traffic on that blog to cover the increased expense of adding ads
Abdullah Ali
@aali21
Jul 12 2017 15:49
what do you work as
Im thinking of becoming a QA analyst when I grow up
Kyle Holm
@thekholm80
Jul 12 2017 15:50
I work in communications & pr
my job is dealing with copyright compliance, licensing & publisher relations
it's not as exciting as it sounds
Abdullah Ali
@aali21
Jul 12 2017 15:50
nope
is there a lot of communication involved?
I'm quite an introvert so talking to groups of people is really not my thing
Kyle Holm
@thekholm80
Jul 12 2017 15:51
yep. mostly phone and email
my job is all about knowing people
Margaret
@Margaret2
Jul 12 2017 15:52
:astonished: i would totally hate that job
just like you would hate mine :joy:
Abdullah Ali
@aali21
Jul 12 2017 15:52
whats urs
Margaret
@Margaret2
Jul 12 2017 15:52
teacher to 1st graders, can be pretty chaotic/unpredictable
Kyle Holm
@thekholm80
Jul 12 2017 15:53
@Margaret2 it took a long time to get comfortable talking to strangers and trying to convince them to work with me
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 15:53
I'm devastated.
Kyle Holm
@thekholm80
Jul 12 2017 15:53
@NahuelOvejero por que?
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 15:53
One of my Headphones stopped working.
Kyle Holm
@thekholm80
Jul 12 2017 15:53
how did your interview go?
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 15:54
my left ear feels so lonely
Joshua Friedman
@jsf2008
Jul 12 2017 15:54
my for loop gave me a bunch of repeating numbers >_<
for (var i = 0; i < 46; i++) { document.write(randomNum); }
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 15:54
@thekholm80 Ugh, I'm fighting against the test, I thougth I was close, but they ask for a lot of thing and know how to use plugings
@thekholm80 thanks for ask tho
CamperBot
@camperbot
Jul 12 2017 15:54
nahuelovejero sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1318 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Kyle Holm
@thekholm80
Jul 12 2017 15:54
@NahuelOvejero keep at it, you can do it
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 15:54
have anyone used JoCoCo?
Margaret
@Margaret2
Jul 12 2017 15:56
what's that, suntan lotion? :laughing:
Kyle Holm
@thekholm80
Jul 12 2017 15:56
the stingray's got jokes :joy:
Margaret
@Margaret2
Jul 12 2017 15:57
:zap: :zap:
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 15:57
I don't get fishy jokes :^)
Margaret
@Margaret2
Jul 12 2017 15:58
lol
Raj Patel
@rajp1847
Jul 12 2017 16:02
hi

• Home
• About
• Contact

The Code is the one below.

<div>
<ul>
    <li><a href="#">Home</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
</ul>

What is wrong with this?
It should come out with the Home, About, and Contact side by side.

Liam Docherty
@ldocherty1
Jul 12 2017 16:03
Hi, on the task "Change Text Inside an Element Using jQuery" I'm stuck on this "Emphasize the text in your target4 button by adding HTML tags." Here is my code <script> $(document).ready(function() { $("#target1").css("color", "red"); $("#target4").html("#target4"); }); </script>
@rajp1847 Your missing a `</div>' tag. https://jsfiddle.net/twshfov6/
@rajp1847 Apply CSS to style it how you want.
Raj Patel
@rajp1847
Jul 12 2017 16:06
Ohh ok but how do i make it side bu side
with out the bullet points
madhuri soni
@sonimadhuri
Jul 12 2017 16:06
@rajp1847 give your ul the style display:inline;
Raj Patel
@rajp1847
Jul 12 2017 16:07
here is the link
ok
Ruben Debbarma
@Rubendebbarma
Jul 12 2017 16:07
you have to style your css @rajp1847
Raj Patel
@rajp1847
Jul 12 2017 16:07
how do i do that
anyone
@Rubendebbarma how do i do that
@sonimadhuri how do i do that
Ruben Debbarma
@Rubendebbarma
Jul 12 2017 16:11
@rajp1847 in css give a display property inline
li{
display:inline;
}
tundeiness
@tundeiness
Jul 12 2017 16:15
@rajp1847 ul and li's are natural block elements while "a " tag is inline. So you have an inline element nested within a block element which is also nested within a block element(ul) and the resulting display will be a block. the only way to turn this around is through CSS styling where you say display: inline for the li element.
madhuri soni
@sonimadhuri
Jul 12 2017 16:17
@rajp1847 why did you move you ul to the css section?
*your
ajdev27
@ajdev27
Jul 12 2017 16:18
how to i send code in gitter
like the guy above did
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 16:19
'''
CamperBot
@camperbot
Jul 12 2017 16:19
:bulb: to format code use backticks! ``` more info
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 16:19
using backsticks
nest your code between them
Daniil Holstinin
@scrimiil
Jul 12 2017 16:19
ctrl + shift + k
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:21
M :arrow_down:
:yum:
ajdev27
@ajdev27
Jul 12 2017 16:21

var count = 0;

function cc(card) {
  // Only change code below this line
   switch (card){
    case 2:
    case 3:
    case 4:
    case 5:
    case 6:
      count+=1;
      break;
    case 7:
    case 8:
    case 9:
      count+=0;
      break;
    case 10:
    case 'J':
    case 'Q':
    case 'K':
    case 'A':
      count -= 1;
      break;
  } 

  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');
im having issues with counting cards lesson can someone help me with it?
idk exactly what im doing wrong
ive deleted code over and over agin
again*
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 16:22
well, you need to return something @ajdev27
ajdev27
@ajdev27
Jul 12 2017 16:23
oh im dumb
sorry about that
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:23
and that something isnt change me. lol
cykins4good
@cykins4good
Jul 12 2017 16:24
hi campers i am trying to pull the navigation bars in bootstrap to right by adding this
hi campers i am trying to pull the navigation bars in bootstrap to right by adding this <ul class="nav navbar-nav pull-right">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Page 1</a></li>
<li><a href="#">Page 2</a></li>
<li><a href="#">Page 3</a></li>
</ul>
but it is not pulling to the right.what can be the solution
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:29
@cykins4good show your pen. always show give link to pen on codepen when u ask for help
cykins4good
@cykins4good
Jul 12 2017 16:32
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:33
@cykins4good Settings - CSS - quick add - Bootstrap 3
ajdev27
@ajdev27
Jul 12 2017 16:33
LOL
you didnt add the bootstrap file to it
cykins4good
@cykins4good
Jul 12 2017 16:36
How will add it @ajdev27 @diomed
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:36
I just told you, man
ajdev27
@ajdev27
Jul 12 2017 16:37
yea
^
Settings - CSS - quick add - Bootstrap 3
you see the gear icon
near html
Daniil Holstinin
@scrimiil
Jul 12 2017 16:37
I'm the only one who doesn't undestrand why using bootstrap without good knowledge of css?
Jan Shah
@JanShah
Jul 12 2017 16:38
@scrimiil what do you mean?
Daniil Holstinin
@scrimiil
Jul 12 2017 16:39
@CentropyIT shoud I first master in css before using bootstrap
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:39
@scrimiil shut up, Frank Sinatra. bootstrap is like auto-tune
:yum:
it helps u code even if u don't know what u're doing
Jan Shah
@JanShah
Jul 12 2017 16:39
@scrimiil no need, get a basic understanding of css and bootstrap will help
@scrimiil makes your stuff look nicer without you having to mess about with it, but if you know a few bits, you can
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:41
your
not you're
>.<
Jan Shah
@JanShah
Jul 12 2017 16:41
grammar nazi
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:41
heil!
Jan Shah
@JanShah
Jul 12 2017 16:42
:(
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:42
heil grammar!
Jan Shah
@JanShah
Jul 12 2017 16:42
edited..
Daniil Holstinin
@scrimiil
Jul 12 2017 16:43
@diomed "it helps u code even if u don't know what u're doing" - isn't that bad?
good*
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:43
depends on who u ask :laughing:
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 16:44
uhhh
it's easier if you understand what are you doing, try to understand at least what each line does
then you will understand the code general
Kyle Holm
@thekholm80
Jul 12 2017 16:46
good ol' bootstrap. for when generic is good enough
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:46
understanding is for experts
others have work to do
:smile:
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 16:47
I'm getting good at testing (?) :D
bootstrap best class is jumbotron
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:49
@NahuelOvejero I disagree
offset is always in my :heart_eyes_cat:
since I spent about 4-5 days figuring out that simple piece of code :yum:
Raj Patel
@rajp1847
Jul 12 2017 16:51

<div>

<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>

how do i change the olor to black?
color
Jan Shah
@JanShah
Jul 12 2017 16:51
color=black
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:51
color of what?
Jan Shah
@JanShah
Jul 12 2017 16:51
color:black
Daniil Holstinin
@scrimiil
Jul 12 2017 16:51
NotLikeThis
Jan Shah
@JanShah
Jul 12 2017 16:51
let color='black'
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:52
.
lol, that lady seems unwell in the end
I wonder is she okay
Kyle Holm
@thekholm80
Jul 12 2017 16:52
i love the multiple choice answers
Nahuel Ovejero
@NahuelOvejero
Jul 12 2017 16:53
always in your cat ;P
Raj Patel
@rajp1847
Jul 12 2017 16:54
<div>
<ul>
<b><li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</b>

</ul>
Jan Shah
@JanShah
Jul 12 2017 16:54
@rajp1847 what is it you need changing to black?
Raj Patel
@rajp1847
Jul 12 2017 16:55
how do i change the color to black text?
text
ajdev27
@ajdev27
Jul 12 2017 16:55
@cykins4good you have to add bootstrap to your file then everything will work
Jan Shah
@JanShah
Jul 12 2017 16:55
they'all links, you mean links? @rajp1847
ajdev27
@ajdev27
Jul 12 2017 16:55
go to settings inthe top right
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:55
@ajdev27 are u stuck in time
ajdev27
@ajdev27
Jul 12 2017 16:56
stuck in time?
what does that mean
Raj Patel
@rajp1847
Jul 12 2017 16:56
no I mean the text to black
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:56
that question was asked like half an hour ago and answered
Raj Patel
@rajp1847
Jul 12 2017 16:56
the home about and contact to lack
black
Jan Shah
@JanShah
Jul 12 2017 16:56
<li><a href="#" style="color:black">Home</a></li>
Raj Patel
@rajp1847
Jul 12 2017 16:57
ohh thank you
Jan Shah
@JanShah
Jul 12 2017 16:57
@rajp1847 that's inline style, one of three ways of doing it, probably the worst
Raj Patel
@rajp1847
Jul 12 2017 16:58
what is the best
May Kittens Devour Your Soul
@diomed
Jul 12 2017 16:59
scalability problems
they're the best
Raj Patel
@rajp1847
Jul 12 2017 16:59
@CentropyIT
Jan Shah
@JanShah
Jul 12 2017 16:59

another way:

<style>
a {color:black}
</style>

there is no best or worst I guess, just ones that are useful in some circumstances and others for others

Raj Patel
@rajp1847
Jul 12 2017 17:00
can you make it so the home and contact and about is side by side?
May Kittens Devour Your Soul
@diomed
Jul 12 2017 17:00
@rajp1847 let me stop u right there
u don't need to make a replica of existing site
u need to make your own version
Raj Patel
@rajp1847
Jul 12 2017 17:01
what is that supposed to man?
mean
Jan Shah
@JanShah
Jul 12 2017 17:01
@rajp1847 use your stylesheet and add some classes to the html is probably the best way in your case
Raj Patel
@rajp1847
Jul 12 2017 17:01
like this
Jan Shah
@JanShah
Jul 12 2017 17:01
@rajp1847 you see that's why it's bad
Raj Patel
@rajp1847
Jul 12 2017 17:02
what
how do i make it side by side?
madhuri soni
@sonimadhuri
Jul 12 2017 17:02
@rajp1847 why do you insert <ul> tags between <li> tags
Jan Shah
@JanShah
Jul 12 2017 17:02
add classes to your html,
<a class="myHomeLink" href="link.html">my link</a>
12annumishra17
@12annumishra17
Jul 12 2017 17:02

switch(val){
case a:
answer = "apple";
break;
case b:
answer = "bird";
break;
case c:
answer = "cat";
break;
default:
return "stuff";

}

??
Daniil Holstinin
@scrimiil
Jul 12 2017 17:03
@12annumishra17 ??
Jan Shah
@JanShah
Jul 12 2017 17:03
add style to css
.myHomeLink {color:black}
12annumishra17
@12annumishra17
Jul 12 2017 17:03
error in dis
Jan Shah
@JanShah
Jul 12 2017 17:03
@rajp1847
@12annumishra17 whats wrong with it?
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 17:04
@12annumishra17 return "stuff";??
May Kittens Devour Your Soul
@diomed
Jul 12 2017 17:05
return "chocolates" ;never
Anthony DeSordi
@desordi3
Jul 12 2017 17:06
what is the target class for? a little confused
Jan Shah
@JanShah
Jul 12 2017 17:06
@desordi3 what are you talking about?
May Kittens Devour Your Soul
@diomed
Jul 12 2017 17:08
for targeting
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 17:08
@desordi3 what do you mean by target class?
frederickvalbornoz
@frederickvalbornoz
Jul 12 2017 17:13
pleae help me how to learn long line os code? in python?proyect?
frederickvalbornoz
@frederickvalbornoz
Jul 12 2017 17:18
which is the best way to master arduino?
12annumishra17
@12annumishra17
Jul 12 2017 17:18
switch(val) {
case 1:
case 2:
case 3:
result = "low";
break;
case 4:
case 5:
case 6:
result ="Mid";
break;
case 4:
case 5:
case 6:
result = "High";
break;
}
error in dis? @ravikishorethella
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 17:19
@12annumishra17 no need of break; for case4,5,6
Jan Shah
@JanShah
Jul 12 2017 17:20
@frederickvalbornoz get an arduino and have a look online for guides and projects to start you off, there's a ton of resources out there
12annumishra17
@12annumishra17
Jul 12 2017 17:20
i removed it den also its not wrking @ravikishorethella
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 17:21
@12annumishra17 it is Low not low
Anthony DeSordi
@desordi3
Jul 12 2017 17:21
@ravikishorethella @CentropyIT from what i understand target works like an id just to focus on one specific element right?
frederickvalbornoz
@frederickvalbornoz
Jul 12 2017 17:21
thank so much mister @ravikishorethella
CamperBot
@camperbot
Jul 12 2017 17:21
frederickvalbornoz sends brownie points to @ravikishorethella :sparkles: :thumbsup: :sparkles:
:cookie: 943 | @ravikishorethella |http://www.freecodecamp.com/ravikishorethella
12annumishra17
@12annumishra17
Jul 12 2017 17:22
@ravikishorethella i corrected it now then also same error
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 17:23
@desordi3 and also to select multiple elements at a same time
@12annumishra17 show your updated code
madhuri soni
@sonimadhuri
Jul 12 2017 17:23
@12annumishra17 you have used case 4 twice and same goes for 5,6
Anthony DeSordi
@desordi3
Jul 12 2017 17:23
thats what i figured thanks
12annumishra17
@12annumishra17
Jul 12 2017 17:24

switch(val) {
case 1:
case 2:
case 3:
result = "Low";
break;
case 4:
case 5:
case 6:
result ="Mid";
break;
case 4:
case 5:
case 6:
result = "High";

}

Kyle Holm
@thekholm80
Jul 12 2017 17:24
erhmagerd i have css trouble
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 17:24
@12annumishra17 where is case7,8,9
12annumishra17
@12annumishra17
Jul 12 2017 17:24
@ravikishorethella

switch(val) {
case 1:
case 2:
case 3:
result = "Low";
break;
case 4:
case 5:
case 6:
result ="Mid";
break;
case 6:
case 7:
case 8:
result = "High";

}

Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 17:24
@12annumishra17
switch(val) {
case 1:
case 2:
case 3:
result = "Low";
break;
case 4:
case 5:
case 6:
result ="Mid";
break;
case 4: case 5: case 6:
result = "High";
}
12annumishra17
@12annumishra17
Jul 12 2017 17:25
@ravikishorethella @sonimadhuri i corrected it
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 17:25
@12annumishra17 really?
12annumishra17
@12annumishra17
Jul 12 2017 17:25
then also same error
yep
Ravi Kishore Thella
@ravikishorethella
Jul 12 2017 17:25
@12annumishra17 check the numbers again
12annumishra17
@12annumishra17
Jul 12 2017 17:25

switch(val) {
case 1:
case 2:
case 3:
result = "Low";
break;
case 4:
case 5:
case 6:
result ="Mid";
break;
case 6:
case 7:
case 8:
result = "High";

}