These are chat archives for FreeCodeCamp/Help

1st
Sep 2017
Wilswanyeh
@Wilswanyeh
Sep 01 2017 00:16 UTC
did anyone else's progress get reset/ rolled back?
Gustavo Azevedo
@gustavoaz7
Sep 01 2017 00:24 UTC
@artoodeeto I belive there is no way around a few if statements (or tenary operators) in this case .
You can definetely write a shorter code but will need to check at least:
If arguments are numbers
If arguments length > 1
If next argument is also a number
aRtoo
@artoodeeto
Sep 01 2017 00:26 UTC
@gustavoaz7 i was thinking i could use one checker if its a number or not.
Gustavo Azevedo
@gustavoaz7
Sep 01 2017 00:29 UTC
Every time you get a new argument you'll need to check if it's a number.
Only if all arguments were given at once you would be able to check it only once
In that case you could do something like this:
function addTogether() {
  let args = [...arguments];
  return args.some(n => typeof n !== 'number') ? undefined : args.reduce((a,b) => a+b)
}
Darren
@DarrenfJ
Sep 01 2017 00:40 UTC
@sjames1958gm hey buddy :D
Stephen James
@sjames1958gm
Sep 01 2017 00:40 UTC
@DarrenfJ Hello
Darren
@DarrenfJ
Sep 01 2017 00:40 UTC
sorry i missed yah earlier was popping in and out of the room
Razvan
@razvanlikespizza
Sep 01 2017 01:21 UTC
Any feedback is appreciated. https://www.razvanel.cf/ Thank you
anthonygallina1
@anthonygallina1
Sep 01 2017 01:26 UTC
REally liking the menu transitions And good job on the smooth scroll. Interesting page scroll with gradient.
Razvan
@razvanlikespizza
Sep 01 2017 01:28 UTC
@anthonygallina1 I think you were talking with me. Thank youu :)
CamperBot
@camperbot
Sep 01 2017 01:28 UTC
razvanlikespizza sends brownie points to @anthonygallina1 :sparkles: :thumbsup: :sparkles:
:star2: 5733 | @anthonygallina1 |http://www.freecodecamp.com/anthonygallina1
anthonygallina1
@anthonygallina1
Sep 01 2017 01:29 UTC
@razvanlikespizza yes
Razvan
@razvanlikespizza
Sep 01 2017 01:29 UTC
thankssss :)
anthonygallina1
@anthonygallina1
Sep 01 2017 01:29 UTC
:thumbsup:
I was working on a personal page and didnt do it for a while Forgot how to get the scroll smooth like that. I will get it. Thanks @razvanlikespizza
CamperBot
@camperbot
Sep 01 2017 01:30 UTC
anthonygallina1 sends brownie points to @razvanlikespizza :sparkles: :thumbsup: :sparkles:
:cookie: 269 | @razvanlikespizza |http://www.freecodecamp.com/razvanlikespizza
Razvan
@razvanlikespizza
Sep 01 2017 01:31 UTC
@anthonygallina1 Want help? I used some for files for it.
anthonygallina1
@anthonygallina1
Sep 01 2017 01:31 UTC
ya I am janky right now LOL
No I will get it
But enjoyed seeing yours. I do mine like that also But havent seen others. Really smooth.
@razvanlikespizza Well iam thinking it is in the easeing
Razvan
@razvanlikespizza
Sep 01 2017 01:34 UTC
@anthonygallina1 Soo..you need help or not? :))
anthonygallina1
@anthonygallina1
Sep 01 2017 01:34 UTC
I think I am using swing right now and no where as nice
Na I appreciate it though
Razvan
@razvanlikespizza
Sep 01 2017 01:35 UTC
Good luck with it :)
anthonygallina1
@anthonygallina1
Sep 01 2017 01:35 UTC
:thumbsup:
zootechdrum
@zootechdrum
Sep 01 2017 01:48 UTC

@zootechdrum
Hello everyone I am trying to capitalize the first letter in my array . I thought I had the answer but no such luck. Here is what I have . ```function LetterCapitalize(str) {
var split = str.toLowerCase().split(" ")

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

    var mod = split[i].charAt(0).toUpperCase();
    var ans = mod + str.substring(1);
}

// code goes here
return split;

}

// keep this function call here
LetterCapitalize(readline());

```
I am wondering why split[I] returns the last first letter of the last word in the array

Manish Giri
@Manish-Giri
Sep 01 2017 01:50 UTC
@zootechdrum var ans = mod + str.substring(1);
what happens to ans after this?
zootechdrum
@zootechdrum
Sep 01 2017 01:51 UTC
@Manish-Giri I return it
Manish Giri
@Manish-Giri
Sep 01 2017 01:51 UTC
@zootechdrum where?
zootechdrum
@zootechdrum
Sep 01 2017 01:52 UTC
Sorry its not shown my fault, I don't know why it didn't copy over let me try again
function LetterCapitalize(str) { 
    var split = str.toLowerCase().split(" ")


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

        var mod = split[i].charAt(0).toUpperCase();
        var ans = mod + str.substring(1);
    }

  // code goes here  
  return split; 

}

// keep this function call here 
LetterCapitalize(readline());
ahh this returns split. I was testing things out.
Manish Giri
@Manish-Giri
Sep 01 2017 01:53 UTC
again, nothing's happening with ans
zootechdrum
@zootechdrum
Sep 01 2017 01:55 UTC
My main question is why does split[I] return the last word first letter. In my mind it should uppercase through each split[i]
Yet, nothing happens to the previous words
Manish Giri
@Manish-Giri
Sep 01 2017 01:55 UTC
because you're not making any change to any word
var mod = split[i].charAt(0).toUpperCase(); <- here you get the first letter, uppercase it
var ans = mod + str.substring(1); <- and here you combine the uppercase letter with the rest of the word
but that by itself doesn't change the word
zootechdrum
@zootechdrum
Sep 01 2017 01:58 UTC
yeah but even after I return mod it only returns the first letter of the last word
Manish Giri
@Manish-Giri
Sep 01 2017 01:58 UTC
how are you returning mod?
zootechdrum
@zootechdrum
Sep 01 2017 01:59 UTC
I was testing things out and after I changed my return from split to mod It return H
Here is the argument being passed into the function "Argument goes here"
mod returns the "H" from the word here
Manish Giri
@Manish-Giri
Sep 01 2017 02:00 UTC
mod is declared inside the for loop
how would you return it from outside of it
zootechdrum
@zootechdrum
Sep 01 2017 02:01 UTC
too technical lol. I can though.
see what your code is doing
Aron Ciruela
@auricless
Sep 01 2017 02:06 UTC
for qoute machine, what API do you use guys?
Albert Cardona II
@daddycardona
Sep 01 2017 04:39 UTC
I didn't use a an api @auricless I used an array of quotes and authors and just used them for the random quote machine
Darren
@DarrenfJ
Sep 01 2017 05:09 UTC
evening fCC
@daddycardona I did a bit of both.. i did the API but then added a third button that pulled up some spock quotes
Albert Cardona II
@daddycardona
Sep 01 2017 05:15 UTC
I was going to use all the funny brainy quotes but their api only let you use the quotes of the day so I was like nah
@DarrenfJ
Darren
@DarrenfJ
Sep 01 2017 05:17 UTC
someday we gotta build something that is like a black hole that automatically pulls all the quotes it runs into into a db for anyone to use for this exercise...
no doubt there
s already one somewhere
prakash chandra yadav
@prakashyadav008
Sep 01 2017 05:18 UTC
hey
has anyone used the wikipedia api
?
Albert Cardona II
@daddycardona
Sep 01 2017 05:18 UTC
yes @prakashyadav008
Darren
@DarrenfJ
Sep 01 2017 05:18 UTC
yah
Albert Cardona II
@daddycardona
Sep 01 2017 05:19 UTC
well I used it for that project :)
Darren
@DarrenfJ
Sep 01 2017 05:19 UTC
me two :D
prakash chandra yadav
@prakashyadav008
Sep 01 2017 05:19 UTC
@daddycardona i am not able to understand the output
anthonygallina1
@anthonygallina1
Sep 01 2017 05:19 UTC
long ago
prakash chandra yadav
@prakashyadav008
Sep 01 2017 05:19 UTC
its not in a proper array format
Darren
@DarrenfJ
Sep 01 2017 05:19 UTC
@prakashyadav008 i'm gonna hafta go look at mine again to figure out what it does
take a look at that
even after pretty priniting its difficult to understand
Albert Cardona II
@daddycardona
Sep 01 2017 05:22 UTC
What you need to do is understand what you want to pull from it this class don't need everything on this, the fcc gives you something other than this to use @prakashyadav008
@daddycardona thats the link
to the api Page
and i am using the link given on that page
Albert Cardona II
@daddycardona
Sep 01 2017 05:26 UTC
Yeah it is scary to look at too lol
anthonygallina1
@anthonygallina1
Sep 01 2017 05:26 UTC
               label: data[1][i],
               value: data[1][i],
               url: data[3][i]
I used those index's
prakash chandra yadav
@prakashyadav008
Sep 01 2017 05:27 UTC
i cant find those indexes in the response
Albert Cardona II
@daddycardona
Sep 01 2017 05:28 UTC
 var searchTerm = $('#searchValue').val();
        var urlAddy = "https://en.wikipedia.org/w/api.php?action=opensearch&search=" + searchTerm + "&format=json&callback=?";
searchTerm is the value of my text search box
Then whedn you use that search you would get an array of 3 objects, one of them is link the other is all the names of that search for instance look at this pic
blob
Darren
@DarrenfJ
Sep 01 2017 05:32 UTC
I got: data[3][i] is the link... data[1][i] is the search term and data[2][i] the 'mini description' @prakashyadav008
Albert Cardona II
@daddycardona
Sep 01 2017 05:32 UTC
so now you can see what you need to make all that you need to make the search work for you
Darren
@DarrenfJ
Sep 01 2017 05:32 UTC
similar to @anthonygallina1
prakash chandra yadav
@prakashyadav008
Sep 01 2017 05:34 UTC
where did u find that link @daddycardona
Albert Cardona II
@daddycardona
Sep 01 2017 05:34 UTC
data[0][i] is the term and data[1][i] are all the terms wiki searched for but like you said used the data[1][i]
anthonygallina1
@anthonygallina1
Sep 01 2017 05:34 UTC
I wound up building local Had a hard time doing it in Code Pen
Albert Cardona II
@daddycardona
Sep 01 2017 05:35 UTC
blob
@anthonygallina1 I did too I was using vscode it was actually easier for me then I added it all on codepen worked just fine lol
:+1:
prakash chandra yadav
@prakashyadav008
Sep 01 2017 05:36 UTC
action=Query i was using that till now
where is the parameter list given
like action=search
Albert Cardona II
@daddycardona
Sep 01 2017 05:37 UTC
scroll down on the page they give you it is confusing at first took me forever to understand it so I understand your frustration
anthonygallina1
@anthonygallina1
Sep 01 2017 05:38 UTC
Yup I didnt find the docs easy
@daddycardona :thumbsup:
Albert Cardona II
@daddycardona
Sep 01 2017 05:39 UTC
"https://en.wikipedia.org/w/api.php?action=opensearch&search=" + searchTerm + "&format=json&callback=?";
anthonygallina1
@anthonygallina1
Sep 01 2017 05:40 UTC
@daddycardona I need to learn more VS code. I have it and also have the bad habit of going back to gedit.
prakash chandra yadav
@prakashyadav008
Sep 01 2017 05:41 UTC
they dont even hav "search= " as the parameter
on the mediawiki page
Albert Cardona II
@daddycardona
Sep 01 2017 05:41 UTC
@prakashyadav008 use that link it took me forever to find it I might have found it here. that will make it a little simpler for you play with this console.log everything lol it will make it easier and @anthonygallina1 I know I like it way better than sublime editor that is why I started using it :)
prakash chandra yadav
@prakashyadav008
Sep 01 2017 05:43 UTC
but like with the way documentation ...how to actually understand the ouput throught the link they use
anthonygallina1
@anthonygallina1
Sep 01 2017 05:48 UTC
@DarrenfJ Hey good to see you. Hope you dont get creeped. I followed you to day and binked some stars up there.
Your activity looks good :thumbsup:
Albert Cardona II
@daddycardona
Sep 01 2017 05:51 UTC
You are to have to use their api like the link I sent you
@prakashyadav008 https://en.wikipedia.org/w/api.php that is a link you can click on to see in better detail all the information you looking for
then you want to do an opensearch
action=opensearch not action=search @prakashyadav008
try it with all the different oppenents in action, however they are using a querry not a search
Eric Miller
@ericmiller777
Sep 01 2017 05:56 UTC
hey guys
anyone ever work with a carousel?
Albert Cardona II
@daddycardona
Sep 01 2017 05:56 UTC
@ericmiller777 what up ;)
Eric Miller
@ericmiller777
Sep 01 2017 05:56 UTC
nothing much
Albert Cardona II
@daddycardona
Sep 01 2017 05:56 UTC
yes I just made a page with it
Eric Miller
@ericmiller777
Sep 01 2017 05:56 UTC
oh nice
could you look at this code?
I know its not freeCodeCamp related
Albert Cardona II
@daddycardona
Sep 01 2017 05:56 UTC
I basically copied and pasted it lol
i tryed that
prakash chandra yadav
@prakashyadav008
Sep 01 2017 05:58 UTC
@daddycardona why dont they hav the "search= " parameter in their wiki
Albert Cardona II
@daddycardona
Sep 01 2017 05:59 UTC
because you not doing a normal search you are doing a opensearch, looking for everything in wikipedia that has that word but it is just worded like that ask wikipedia lol
@ericmiller777 I was looking at the wrong code lol I was looking at the error 404 and was like that is the longest code ever for a png lol
Eric Miller
@ericmiller777
Sep 01 2017 06:00 UTC
:P
Albert Cardona II
@daddycardona
Sep 01 2017 06:01 UTC
you have a script src to bootstrap 2 times eric
Darren
@DarrenfJ
Sep 01 2017 06:01 UTC
@anthonygallina1 thanks man for the follow
CamperBot
@camperbot
Sep 01 2017 06:01 UTC
darrenfj sends brownie points to @anthonygallina1 :sparkles: :thumbsup: :sparkles:
:star2: 5736 | @anthonygallina1 |http://www.freecodecamp.com/anthonygallina1
Albert Cardona II
@daddycardona
Sep 01 2017 06:01 UTC
never mind that was css and js lol
anthonygallina1
@anthonygallina1
Sep 01 2017 06:01 UTC
@DarrenfJ :)
Darren
@DarrenfJ
Sep 01 2017 06:01 UTC
sorry, stepped out of the room and got sucked into twitter
anthonygallina1
@anthonygallina1
Sep 01 2017 06:02 UTC
Thanks for the good work Was looking at your git hub activity and got a little embarassed @DarrenfJ
CamperBot
@camperbot
Sep 01 2017 06:02 UTC
anthonygallina1 sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2001 | @darrenfj |http://www.freecodecamp.com/darrenfj
anthonygallina1
@anthonygallina1
Sep 01 2017 06:03 UTC
:)
Albert Cardona II
@daddycardona
Sep 01 2017 06:03 UTC
I think you need to add a # in this <a class="right carousel-control" href="carousel" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"> </span> <span class="sr-only">Next></span>
your href needs to have a #carousel @ericmiller777
Eric Miller
@ericmiller777
Sep 01 2017 06:03 UTC
@daddycardona thanks
CamperBot
@camperbot
Sep 01 2017 06:03 UTC
ericmiller777 sends brownie points to @daddycardona :sparkles: :thumbsup: :sparkles:
:cookie: 325 | @daddycardona |http://www.freecodecamp.com/daddycardona
Albert Cardona II
@daddycardona
Sep 01 2017 06:04 UTC
you also have a > after Next or did they do that?
let me know if that worked because the carousel thing is confusing why I basically copied and pasted it all and changed pics lol
Darren
@DarrenfJ
Sep 01 2017 06:06 UTC
@anthonygallina1 ah.. my github is only so active because i track my 100 day coding challenges.. just a linkfarm... but between the two computers I use i get to do command line vs gitHub desktop interface.. and keeps the very very basic commands fresh in my mind
anthonygallina1
@anthonygallina1
Sep 01 2017 06:06 UTC
Tumble weeds in mine LOL
prakash chandra yadav
@prakashyadav008
Sep 01 2017 06:09 UTC
@daddycardona no not the "action=opensearch" .i mean the "search=search term" parameter
which is not even there in the doc
Ramana Kannathasan
@ramanasha
Sep 01 2017 06:11 UTC
this my code guys is it worngvar myStr = "Here is a backslash: .\n\t\tHere is a new line with two tabs.";
Albert Cardona II
@daddycardona
Sep 01 2017 06:11 UTC
click on opensearch and you will see it is the first one on there yes that confused me tooo lol but I was like what if I click it and i skipped it twice lol but it is there @prakashyadav008
yeah you have to literaly cick on each parameter to find what you are looking for ;)
prakash chandra yadav
@prakashyadav008
Sep 01 2017 06:13 UTC
so the main parameter here is "action=opensearch"
which ihav to use for searching and getting theresults
and then i can see the documentation for "opensearch" to understand more
right
@daddycardona
Albert Cardona II
@daddycardona
Sep 01 2017 06:14 UTC
yes then when you click that parameter and it shows you what the link i posted here shows you and it explains that there. THeir explanation is confusing lol
yes
@prakashyadav008
@prakashyadav008
dammit lol
@prakashyadav008 one of the things I did was watch a video on how to use this specific api that helps a lot. some people understand literature better than me, I understand videos and following along methods but I get lost a lot lol
anthonygallina1
@anthonygallina1
Sep 01 2017 06:19 UTC
@prakashyadav008 yup but dont link to the sand box
Kinda like this
https://en.wikipedia.org/w/api.php?action=opensearch&search=Te
Darren
@DarrenfJ
Sep 01 2017 06:20 UTC
ok..i'm starting to fade.... off to sleep methinks
Albert Cardona II
@daddycardona
Sep 01 2017 06:21 UTC
okay good night me too @DarrenfJ
I hope you understand it @prakashyadav008
anthonygallina1
@anthonygallina1
Sep 01 2017 06:21 UTC
:v:
Darren
@DarrenfJ
Sep 01 2017 06:21 UTC
thanks kudos and brownies for everyone here who helps out regularly...
thanks @anthonygallina1 @daddycardona @Manish-Giri @ericmiller777
CamperBot
@camperbot
Sep 01 2017 06:22 UTC
darrenfj sends brownie points to @anthonygallina1 and @daddycardona and @manish-giri and @ericmiller777 :sparkles: :thumbsup: :sparkles:
:cookie: 326 | @daddycardona |http://www.freecodecamp.com/daddycardona
:cookie: 277 | @ericmiller777 |http://www.freecodecamp.com/ericmiller777
:star2: 6490 | @manish-giri |http://www.freecodecamp.com/manish-giri
:warning: darrenfj already gave anthonygallina1 points
anthonygallina1
@anthonygallina1
Sep 01 2017 06:22 UTC
I meen the sand box is good but will get you jason
@daddycardona Good meeting you :)
Rest well
Albert Cardona II
@daddycardona
Sep 01 2017 06:26 UTC
you to brother ;)
anthonygallina1
@anthonygallina1
Sep 01 2017 06:26 UTC
:)
prakash chandra yadav
@prakashyadav008
Sep 01 2017 06:49 UTC
thanks everyone for helping out @daddycardona @anthonygallina1 @DarrenfJ
CamperBot
@camperbot
Sep 01 2017 06:49 UTC
prakashyadav008 sends brownie points to @daddycardona and @anthonygallina1 and @darrenfj :sparkles: :thumbsup: :sparkles:
:cookie: 327 | @daddycardona |http://www.freecodecamp.com/daddycardona
:star2: 2002 | @darrenfj |http://www.freecodecamp.com/darrenfj
:star2: 5737 | @anthonygallina1 |http://www.freecodecamp.com/anthonygallina1
Eric Miller
@ericmiller777
Sep 01 2017 07:25 UTC
@DarrenfJ thanks
CamperBot
@camperbot
Sep 01 2017 07:25 UTC
ericmiller777 sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2003 | @darrenfj |http://www.freecodecamp.com/darrenfj
Eric Miller
@ericmiller777
Sep 01 2017 07:25 UTC
but its mostly because im on here asking for help anyway
UnorthodoxThing
@UnorthodoxThing
Sep 01 2017 08:06 UTC
I'm starting off JavaScript, and when learning about the .append() function and its parameters [$(selector).append(content, function(index,html))] I'm not sure what is considered as 'content' here. Can anyone list me what is 'content' in this JavaScript syntax. :O
I'm probably not sure what is 'index' either.
Long Nguyen
@longnt80
Sep 01 2017 08:26 UTC
@UnorthodoxThing append is a jQuery method
content is the variable that hold the html code of the element
UnorthodoxThing
@UnorthodoxThing
Sep 01 2017 08:40 UTC
@longnt80 Does 'variable' include such things like string, integers and data types in general? Thx btw!
CamperBot
@camperbot
Sep 01 2017 08:40 UTC
unorthodoxthing sends brownie points to @longnt80 :sparkles: :thumbsup: :sparkles:
:cookie: 538 | @longnt80 |http://www.freecodecamp.com/longnt80
Long Nguyen
@longnt80
Sep 01 2017 08:49 UTC

@UnorthodoxThing

Does 'variable' include such things like string, integers and data types in general?

yes this is the definition of variable

Eric Miller
@ericmiller777
Sep 01 2017 09:05 UTC
hey
anyone know how i can get the jumbotron in my carousel to resize with the window?
Tiago Correia
@tiagocorreiaalmeida
Sep 01 2017 09:24 UTC
@ericmiller777 seems to be resizing ?
Eric Miller
@ericmiller777
Sep 01 2017 09:25 UTC
eh ive changed it so many times
its not even a jumbotron anymore
when it was
it would go above the image
Tiago Correia
@tiagocorreiaalmeida
Sep 01 2017 09:25 UTC
solved then?
Eric Miller
@ericmiller777
Sep 01 2017 09:27 UTC
not really
the jumbotron looked better but
trying somthing else
Tiago Correia
@tiagocorreiaalmeida
Sep 01 2017 09:28 UTC
ok then if you need help just say it me or someone else will try to
Eric Miller
@ericmiller777
Sep 01 2017 09:29 UTC
@tiagocorreiaalmeida thanks
CamperBot
@camperbot
Sep 01 2017 09:29 UTC
ericmiller777 sends brownie points to @tiagocorreiaalmeida :sparkles: :thumbsup: :sparkles:
:cookie: 330 | @tiagocorreiaalmeida |http://www.freecodecamp.com/tiagocorreiaalmeida
Sonkeng Maldini
@sdmg15
Sep 01 2017 11:01 UTC
Hello,what markdown library can i use and parsing and highlighting codes with lines numbering ?
Sonkeng Maldini
@sdmg15
Sep 01 2017 11:03 UTC
Ok will check that ,
When adding user input to the database will we escape specialchars again ?
or libraries already do that before parsing ?
heroiczero
@heroiczero
Sep 01 2017 11:07 UTC
@sdmg15 it depends on the markdown library.
Rajan
@ProgramNovice
Sep 01 2017 12:53 UTC
Hi guys
I have a doubt to ask you
heroiczero
@heroiczero
Sep 01 2017 12:53 UTC
whats your question?
Rajan
@ProgramNovice
Sep 01 2017 12:53 UTC
can a comment be inserted inside an element? eg <h1> <script> etc.
heroiczero
@heroiczero
Sep 01 2017 12:54 UTC
@ProgramNovice yes use <!-- to start comment and --> to end comment in html
Rajan
@ProgramNovice
Sep 01 2017 12:55 UTC
@heroiczero ok thanks :)
CamperBot
@camperbot
Sep 01 2017 12:55 UTC
programnovice sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1679 | @heroiczero |http://www.freecodecamp.com/heroiczero
Dhananjay Sood
@DhananjaySood
Sep 01 2017 15:40 UTC
Hi. i am giving link for codepen. Github was a little confusing to me as i am new to it.. My prob is when i resize this page to larger screen, the content gets overlapped. i discussed this prob few hours ago here and someone said me to get the code online so i putted the code on codepen. Here's the link https://codepen.io/DhananjaySood/full/zdeEJR/. Don't bother about images there all just for examples. There is a prob which i know, when you will shrink the page , the content will collapse. Otherwise if there's any prob, kindly tell me.
Christopher McCormack
@cmccormack
Sep 01 2017 15:57 UTC
@DhananjaySood might help to take a few screenshots and highlight what you are actually having a problem with. I don't see any content getting overlapped on larger screens, but on smaller screens you are pushing items outside of their elements by not setting minimum widths or responsive design that would allow them to flow differently
Dhananjay Sood
@DhananjaySood
Sep 01 2017 15:58 UTC
@cmccormack yeah yeah i know this prob on smaller screens
@cmccormack oh i forgot to tell something
Dhananjay Sood
@DhananjaySood
Sep 01 2017 16:09 UTC
i made some changes
like taking the width from 100% to auto
LydaTech
@lydatech
Sep 01 2017 16:10 UTC
hmmm
Dhananjay Sood
@DhananjaySood
Sep 01 2017 16:11 UTC
if i set a min width, will it help me to solve the small screen issue??
zootechdrum
@zootechdrum
Sep 01 2017 17:11 UTC

hey everyone can anyone help me out I am trying to do the following:

Using the JavaScript language, have the function SimpleSymbols(str) take the str parameter being passed and determine if it is an acceptable sequence by either returning the string true or false. The str parameter will be composed of + and = symbols with several letters between them (ie. ++d+===+c++==a) and for the string to be true each letter must be surrounded by a + symbol. So the string to the left would be false. The string will not be empty and will have at least one letter.

here is my code

function SimpleSymbols(str) { 
 var name = [];
 var boolean = false;

 for(var i = 1; i < (str.length - 1); i++){

     if(/[a-z]/i.test(str[i])){
     if(str[i+1] == "+" && str[i-1] == "+"){
         boolean = true;
             }else{ boolean = false
             }

        }
     }
     return boolean;
 }


  // code goes here  





// keep this function call here 
SimpleSymbols(readline());

With the current input "f++d+" it should return false but I keep getting true.

just1witness
@just1witness
Sep 01 2017 17:19 UTC
From what I can see, you initialize your i count at 1, so in the case of the example it would start at the first+, and only test the d, therefore it's true
@zootechdrum
have you tried 0?
and why do you stop the count at the second to last character? do you know ahead of time that your string will never end in a letter?
zootechdrum
@zootechdrum
Sep 01 2017 17:22 UTC
because when the following code goes i + 1 it cant be at the last charechter
same with i - 1 it starts at index 1 so I "i-1" can work
ajhernandez95
@ajhernandez95
Sep 01 2017 17:22 UTC
I am trying to do a project on CodePen but the "test/run test" drop down is gone and will not show up anymore on any other links.
just1witness
@just1witness
Sep 01 2017 17:23 UTC
But your first character, index 0, is a letter, how are you testing that? And what if the last index is a letter?
Looking at your code, to me, it should return true
I made those changes and it returned false
@zootechdrum
function SimpleSymbols(str) { 
 var name = [];
 var boolean = false;

 for(var i = 0; i < str; i++){

     if(/[a-z]/i.test(str[i])){
     if(str[i+1] == "+" && str[i-1] == "+"){
         boolean = true;
             }else{ boolean = false;
             }

        }
     }
     return boolean;
 }

SimpleSymbols("f++d+");
ajhernandez95
@ajhernandez95
Sep 01 2017 17:29 UTC
Can anybody help me?
just1witness
@just1witness
Sep 01 2017 17:30 UTC
mayyyybe
what's your malfunction?
ajhernandez95
@ajhernandez95
Sep 01 2017 17:30 UTC
I am trying to do a project on CodePen but the "test/run test" drop down is gone and will not show up anymore on any other links.
I completed the tribute page and it worked till then and now i tried the survey page but it will not show up and when i returned to the tribute page it is gone as well
just1witness
@just1witness
Sep 01 2017 17:31 UTC
I'm not sure what your referring to tbh. Why not just make a pen?
Why do you want to use a project?
ajhernandez95
@ajhernandez95
Sep 01 2017 17:31 UTC
It is for FreeCodeCamp
just1witness
@just1witness
Sep 01 2017 17:32 UTC
Yeah go with a pen
I also tried this and added the extension offered but still no luck
just1witness
@just1witness
Sep 01 2017 17:32 UTC
Go to the create button on the top right, then select new pen
ajhernandez95
@ajhernandez95
Sep 01 2017 17:33 UTC
yeah but i need to test/run test drop down so i can complete the challenge for freecodecamp
just1witness
@just1witness
Sep 01 2017 17:34 UTC
huh? K, I think I might know what your talking about
...
go to the little wheely thingy in your HTML, CSS or JavaScript window
go to behaviour, and uncheck the box that says auto update changes
ajhernandez95
@ajhernandez95
Sep 01 2017 17:35 UTC
yeah I already have that unchecked
just1witness
@just1witness
Sep 01 2017 17:35 UTC
can you post a screen shot?
ajhernandez95
@ajhernandez95
Sep 01 2017 17:36 UTC
sure but how do i screenshot?
just1witness
@just1witness
Sep 01 2017 17:37 UTC
honestly, I've never tried to upload an image on chat, soooo, I don't know.
ajhernandez95
@ajhernandez95
Sep 01 2017 17:37 UTC
so im screwed?
i believe that is the link that should enable the drop down but it wont
i also have babel on
like it requested
just1witness
@just1witness
Sep 01 2017 17:43 UTC
I would keep asking, there are two more FCC rooms that have a lot of activity, someones bound to know what you need. :)
sorry I couldn't help more! @ajhernandez95
ajhernandez95
@ajhernandez95
Sep 01 2017 17:44 UTC
alright thanks
zootechdrum
@zootechdrum
Sep 01 2017 17:45 UTC
@just1witness i WILL LOOK LATER I AM WORKING
just1witness
@just1witness
Sep 01 2017 17:45 UTC
@zootechdrum k
ajhernandez95
@ajhernandez95
Sep 01 2017 17:52 UTC
<input type="radio" id="num1" name="num1" value="1"> <label for="num1">1</label>
<input type="radio" id="num2" name="num2" value"2"> <label for="num2">2</label>
<input type="radio" id="num3" name="num3" value="3"> <label for="num3">3</label>
<input type="radio" id="num4" name="num4" value="4"> <label for="num4">4</label>
<input type="radio" id="num5" name="num5" value="5"> <label for="num5">5</label>
why is it letting me select more then 1 on here
i only want it to let me select one
help?
Nahuel Ovejero
@NahuelOvejero
Sep 01 2017 17:56 UTC
names must be the same @ajhernandez95
ajhernandez95
@ajhernandez95
Sep 01 2017 17:56 UTC
so the id is different and names the same?
Nahuel Ovejero
@NahuelOvejero
Sep 01 2017 17:56 UTC
id can not repeat, never
same names applies to same control, so if you want a group of radio, you need to use the same name
ajhernandez95
@ajhernandez95
Sep 01 2017 17:57 UTC
<input type="radio" id="genderChoice1" name="gender" value="male">
<label for="genderChoice1">Male</label>
<input type="radio" id="genderChoice2" name="gender" value="female">
<label for="genderChoice2">Female</label>
<input type="radio" id="genderChoice3" name="gender" value="other">
<label for="genderChoice3">Other</label>
<input type="radio" id="genderChoice4" name="gender" value="notSpecified" checked>
<label for="genderChoice4">Prefer not to specify</label>
Nahuel Ovejero
@NahuelOvejero
Sep 01 2017 17:57 UTC
like that
ajhernandez95
@ajhernandez95
Sep 01 2017 17:57 UTC
this example uses the same name though
oh i see!
thanks!
Nahuel Ovejero
@NahuelOvejero
Sep 01 2017 17:58 UTC
indeed, same name group the radios so you can chose 1
gishy1
@gishy1
Sep 01 2017 18:17 UTC
hi guys need help
image.png
Stephen James
@sjames1958gm
Sep 01 2017 18:38 UTC
@gishy1 Your switch () { needs a value in the () for testing.
@gishy1 And the values to test are numbers not strings
dyon3334
@dyon3334
Sep 01 2017 19:08 UTC
array.entries() what does it ?
Umar Khan
@umar-khan
Sep 01 2017 19:18 UTC
@dyon3334 From the documentation: > it returns a new Array Iterator object that contains the key/value pairs for each index in the array
You can use that Array Iterator object to go through the array using .next() method
Stephen James
@sjames1958gm
Sep 01 2017 20:18 UTC
Darren
@DarrenfJ
Sep 01 2017 20:21 UTC
evening fCC
just sying hi before on the road
Kyle Holm
@thekholm80
Sep 01 2017 20:30 UTC
@DarrenfJ :wave:
Stephen James
@sjames1958gm
Sep 01 2017 20:32 UTC
@DarrenfJ :wave:
Coy Sanders
@coymeetsworld
Sep 01 2017 20:35 UTC
where you going @DarrenfJ ? I just got back from 3 vacations lol
Eric Miller
@ericmiller777
Sep 01 2017 20:46 UTC
@DarrenfJ see you
Tiago Correia
@tiagocorreiaalmeida
Sep 01 2017 21:26 UTC
@sjames1958gm that course rocks man, only at the weather app but!
ajhernandez95
@ajhernandez95
Sep 01 2017 21:33 UTC
help?
<br>Name: <input type="text" name="name" required>
where would i put an id in this?
Alexander Køpke
@alexanderkopke
Sep 01 2017 22:41 UTC
@ajhernandez95 if you mean you want to give the input an id you do <input id="someIdName" ... >
aRtoo
@artoodeeto
Sep 01 2017 22:46 UTC
yow fam. i have this regex ^1?[- .]?\(?\d{3}\)?[- .]\d{3}[- .]\d{4}
its returning me some of the true except this
5555555555 should return true.
(555)555-5555 should return true
1(555)555-5555 should return true
and its returning me this false values.
555)-555-5555 should return false.
(555-555-5555 should return false.
trying to add \s? between the square brackets but nothing happens. any idea fam?
zootechdrum
@zootechdrum
Sep 01 2017 23:19 UTC
@just1witness wow you are right
i just got back sorry for the long delat
delay