Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
dinesh
@1532j0004kg
it output correctly !!!
Stephen James
@sjames1958gm
@1532j0004kg No it doesn't - it only outputs an array of two it should be three elements
@1532j0004kg
For example, for the input GCG, return [["G", "C"], ["C","G"],["G", "C"]]
Your code outputs [["G", "C"], ["G", "C"]]
A. J. Bozdar
@moajday
@sjames1958gm Function should return the addition but to see the addition either I need to alert or console.log. Am I right?
Stephen James
@sjames1958gm
@ajbozdar In this simple case yes, but the caller of your function could show it.
console.log(add7());
dinesh
@1532j0004kg
ok @sjames1958gm yes its outputing like u said !\
but still i knew the string length right ?
Ghost
@ghost~5a4a80acd73408ce4f859755
can anyone help me think of what to put on my webpage for this project please?
dinesh
@1532j0004kg
then how its not working ?
A. J. Bozdar
@moajday
@sjames1958gm That's precise and exact. I like it. :)
Stephen James
@sjames1958gm
@1532j0004kg var arr = [[],[]]; this code here assumes two values in the string.
Your code only updates entries 0, 1 in the array so you cannot get three values
Start with
arr = [];
and then push onto that array str.length number of times in your while loop
then it doesn't matter how big str is
A. J. Bozdar
@moajday
@sjames1958gm In addition to freecodecamp, which lessons on www do you find the best for JS? It seems javascript.info is confusing.
dinesh
@1532j0004kg
ohhhh ok broieeee , i got it !!!! thanks a lot for ur explanation :sparkles:
Ghost
@ghost~5a4a80acd73408ce4f859755
w3schools, try it @ajbozdar
Stephen James
@sjames1958gm
@1532j0004kg :+1:
Ghost
@ghost~5a4a80acd73408ce4f859755
A. J. Bozdar
@moajday
@515014K thank you
CamperBot
@camperbot
ajbozdar sends brownie points to @515014k :sparkles: :thumbsup: :sparkles:
:cookie: 171 | @515014k |http://www.freecodecamp.org/515014k
Ghost
@ghost~5a4a80acd73408ce4f859755
image.png
how can i make that look better?
Stephen James
@sjames1958gm
@ajbozdar YouTube channels - learncodeacademy is one Traversy Media this is another
A. J. Bozdar
@moajday
@sjames1958gm :+1: I am looking into them. :)
CamperBot
@camperbot
ajbozdar sends brownie points to @muhammedkarim :sparkles: :thumbsup: :sparkles:
A. J. Bozdar
@moajday
@MuhammedKarim thank you
CamperBot
@camperbot
:cookie: 115 | @muhammedkarim |http://www.freecodecamp.org/muhammedkarim
Ghost
@ghost~5a4a80acd73408ce4f859755
you're welcome @ajbozdar
Stephen James
@sjames1958gm
@ajbozdar :+1:
Ghost
@ghost~5a4a80acd73408ce4f859755
Could anyone asnwer my question please?
Stephen James
@sjames1958gm
since that is a poem you could center it, maybe add some color - just enough to hilight it
Ghost
@ghost~5a4a80acd73408ce4f859755
oh ok, will do @sjames1958gm
A. J. Bozdar
@moajday
@MuhammedKarim I like poetry (English literature and linguistics) very much, but I am not in position to guide you for your Front End Development. However, I would discuss a scenario with you. Here it is: Whenever I read a poem, I imagine how the writer wrote it. For instance: Composed on Westminister Bridge is written by Sir Wordsworth. He wrote it early at the dawn near around Westminister Bridge. I then visualise a river, a bridge, a crescent in sky, and an old man smoking a cigar while wearing a turkish or jewish hat. I would then prefer to design a background for the poem using right colours like black and white in given context.
Ghost
@ghost~5a4a80acd73408ce4f859755
See that poem is about Madinah, i have pictures just above the poem of Madinah :) I really like ur viewpoint tho! Appreciate it :D @ajbozdar
A. J. Bozdar
@moajday
For your poem you can using green and white colours, choose a background which highlights something significant from Madinah, like the mountains there. You can romanticize the desert even, and grow palm trees.
Have fun, Cheers! @MuhammedKarim
Ghost
@ghost~5a4a80acd73408ce4f859755
Thanks a lot bro, will see what i can do :) @ajbozdar
CamperBot
@camperbot
muhammedkarim sends brownie points to @ajbozdar :sparkles: :thumbsup: :sparkles:
:cookie: 262 | @ajbozdar |http://www.freecodecamp.org/ajbozdar
A. J. Bozdar
@moajday
I have 262 brownie points. I never knew it. This is amazing. :shipit:
Ghost
@ghost~5a4a80acd73408ce4f859755
go to your FCC and you can see your brownie points there... i think lol @camperbot
A. J. Bozdar
@moajday
@MuhammedKarim You are welcome. Indeed, I am going to check there.
Hemakshi Sachdev
@hemakshis
Good Evening everyone! I wanna start with the Game of Life project but I'm very confused on how to get started and make the grids.. I thought I would make them using divs but then I read in the "Let's Discuss" post of GoL that using divs made the board laggy... please help me on how to go about in this project
A. J. Bozdar
@moajday

Please tell me if I am coding right?

function capitalize() {
        let text = prompt("Some text here!");
        return text[0].toUpperCase() + text.slice(1);
    }
    console.log(capitalize());

Thanks!

Ruben Dario
@rubendmatos1985
hello guys i gpt stuck here
could you help me
i dont know what i mus to do
the task names it seek and destroy
Hemakshi Sachdev
@hemakshis
@rubendmatos1985 What are you not able to understand
Ken Haduch
@khaduch
@rubendmatos1985 - you have to write a function that will take arguments consisting of an array, which is the initial argument, and then any number of arguments that follow it. A typical invocation of the function will look like this: destroyer([1, 2, 3, 1, 2, 3], 3, 2); - the array is the first argument [1, 2, 3, 1, 2, 3], and the 3 and 2 are the additional arguments. They have provided a link for the arguments object - you use that to access all of the function arguments, and in this case, you want to use it to get the arguments that follow the initial array. The problem statement says: Remove all elements from the initial array that are of the same value as these arguments. So you find any arguments in the initial array that are contained in the list of the arguments that follow the initial array and remove them, return an array that has any remaining arguments. For the example that I put above, you would remove any 2 and 3 from the initial array, and return [1, 1] You have to be able to handle any number of additional arguments, so this one has two, some have three, but you can write code that will handle any number of arguments, so don't just hard code 2 and 3 as the count of values.