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
heroiczero
@heroiczero
rafaelmonroy
@rafaelmonroy
@X140hu4 is the logic written out in my comments correct? does size2 stay constant through the loops? even tho size is update each loop?
linkin-park
@linkin-park
yes @heroiczero
heroiczero
@heroiczero
@linkin-park that site tells you what font they use for each device
@linkin-park
Facebook Font
Windows: Segoe UI (or Tahoma for older versions of Windows)
macOS: San Francisco
iOS: San Francisco
Android: Roboto
linkin-park
@linkin-park
thanks i was looking at the link
need to do this in 3 hours from now thinking :(
heroiczero
@heroiczero
@rafaelmonroy i++ missing i think?
linkin-park
@linkin-park
its hard to find the colors @heroiczero
only way i can find is lookin at the soruce
source*
heroiczero
@heroiczero
@linkin-park
Facebook Hex/RGB Color
Hex: #3B5998
RGB: rgb(59, 89, 152)
rafaelmonroy
@rafaelmonroy
@heroiczero i updates to size through each so i++ is not necessary
Fabien SHAN
@X140hu4
@rafaelmonroy Hmmm on the second iteration the array will have 4 elements
linkin-park
@linkin-park
meant the button color
rafaelmonroy
@rafaelmonroy
@X140hu4 no the code is fine, it passed all the test
i mainly want to know if by setting size2 = size, does size2 always stay constant
even though size updates through each loop
heroiczero
@heroiczero
@rafaelmonroy yes it will be size
Fabien SHAN
@X140hu4
yes, you do not touch size2
heroiczero
@heroiczero
@rafaelmonroy because size2 assignment is not in loop
@rafaelmonroy you could also use const to make sure nothing changes it
Fabien SHAN
@X140hu4
@heroiczero +1
rafaelmonroy
@rafaelmonroy
@X140hu4 @heroiczero so setting variable equal to argument outside loop, it wont update even though the loop updates value of argument?
heroiczero
@heroiczero
for a second i was wondering what was wrong with your code lol, but it looked fine. and I was just jumping to conclusion lol :innocent:
rafaelmonroy
@rafaelmonroy
@heroiczero lol thanks for helping out
CamperBot
@camperbot
rafaelmonroy sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1763 | @heroiczero |http://www.freecodecamp.com/heroiczero
heroiczero
@heroiczero
@rafaelmonroy yes basically since you set the var size2 outside the loop. Even if size changes size2 will not
rafaelmonroy
@rafaelmonroy
YES! lmao thanks man, i knew there was a way to keep the origianl value inside the loop. what is the const you mentioned earlier?
@rafaelmonroy Constants are block-scoped, much like variables defined using the let statement. The value of a constant cannot change through re-assignment, and it can't be redeclared.
rafaelmonroy
@rafaelmonroy
@heroiczero cool man thanks!
CamperBot
@camperbot
rafaelmonroy sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
api offline
heroiczero
@heroiczero
:+1: Glad to help :)
Fabien SHAN
@X140hu4
@rafaelmonroy Also, you could avoid using a size2 by incrementing i.
rafaelmonroy
@rafaelmonroy
@X140hu4 i thought I increment i by size in my i=size statement?
Fabien SHAN
@X140hu4
So if you do not use size = size2 + size, i will always be equal to size.
If you add size to i then you increment i by size: i = i + size (or i += size)
Then you would have to review the variables in the slice method
rafaelmonroy
@rafaelmonroy
@X140hu4 hmmm guess I missed that one, I kept trying different variations of increments to both size and i but I coulnt hit that G spot lol right now im just glad I was able to find one that worked without someone looking at my code and giving me the answer lol
Fabien SHAN
@X140hu4
That's good :) Congratulations ;)
rafaelmonroy
@rafaelmonroy
@X140hu4 thanks!
CamperBot
@camperbot
rafaelmonroy sends brownie points to @x140hu4 :sparkles: :thumbsup: :sparkles:
api offline
linkin-park
@linkin-park
its hell working on UI!
@heroiczero hi there
heroiczero
@heroiczero
@linkin-park :wave:
linkin-park
@linkin-park
i'm going crazy right now :! can you point where the heck i'm doing wrong
the header is not the same as the facebook