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
Gulsvi
@gulsvi
keep looping until nextNumber is >= to the number passed to the function
LiciniusRex
@hashtagyolo1
Hi folks, was given help to get this work yesterday and forgot to save before I sgut down and I'm damned if I can remember what I had to do. I think it was changing the json to jsonp at the end but that doesn't seem to do anything
Gulsvi
@gulsvi
@hashtagyolo1 :point_up: Here's the code you were given yesterday
Gaurav
@gauravmagan
@SkyC0der can you help me with calling test data set into bootstrap table
i cannot find any resource online
Gulsvi
@gulsvi
I can try
Gaurav
@gauravmagan
yes
Gulsvi
@gulsvi
This codepen shows how to take data from an API and build a table: https://s.codepen.io/skycoder/pen/xLXmEL
Lorrie Pearson
@Lorrie01
@hashtagyolo1 This is the bare minimum of a quote machine, but I used this when building mine since I had the same problem...nothing worked. This helped me to trouble shoot so that I could create the look and feel desired. hope this helps : https://codepen.io/lorrie/pen/4e50108ae9f862b618ebc4efab1c4931
LiciniusRex
@hashtagyolo1
@SkyC0der how did you find that? I couldn't work out a way to search through my tagged posts
And thanks again @SkyC0der
CamperBot
@camperbot
hashtagyolo1 sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:star2: 2520 | @skyc0der |http://www.freecodecamp.com/skyc0der
Gulsvi
@gulsvi
@hashtagyolo1 I searched for your name and clicked the post for August 20 that came up
Clicked the search icon, and entered @hastagyolo1
BrianWilliams28
@BrianWilliams28
@SkyC0der you mean loop until nextNumber is <= the number passed to the function?
Gulsvi
@gulsvi
@BrianWilliams28 no, that would make the loop quit immediately. The first instance of next number will be 2 (1 + 1 = 2)
[1, 1, 2]
[1, 1, 2, 3]
[1, 1, 2, 3, 5]
etc...
BrianWilliams28
@BrianWilliams28
@SkyC0der when defining nextNumber how would i differentiate between last number of the array and the current number of the array?
LiciniusRex
@hashtagyolo1
thanks again @SkyC0der
CamperBot
@camperbot
hashtagyolo1 sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:warning: hashtagyolo1 already gave skyc0der points
Gulsvi
@gulsvi
@BrianWilliams28 You need to add the last two numbers of the array to get nextNumber
Gaurav
@gauravmagan
@SkyC0der thank you
CamperBot
@camperbot
gauravmagan sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:star2: 2521 | @skyc0der |http://www.freecodecamp.com/skyc0der
Thomas Alves
@suforozinho
@SkyC0der hey, sorry for late reply, well, i think it's my computer, thanks
CamperBot
@camperbot
suforozinho sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:star2: 2522 | @skyc0der |http://www.freecodecamp.com/skyc0der
Gulsvi
@gulsvi
No problem
BrianWilliams28
@BrianWilliams28
@SkyC0der yeah i get that part, i'm just not connecting the pieces in my mind of how to write it out
Gulsvi
@gulsvi
@BrianWilliams28 How would you get the last element of an array?
(socratic question)
LiciniusRex
@hashtagyolo1
@Lorrie01 I can build a quote generator like that. It's the api I've been struggling with. FCC has done nothing to explain what I'm actually doing with it so having to try and cobble it together from elsewhere and help on here
BrianWilliams28
@BrianWilliams28
@SkyC0der the very last element or the element preceeding the current element?
Gulsvi
@gulsvi
You need both of those
Lorrie Pearson
@Lorrie01
@hashtagyolo1 I apologize. I was only trying to help.
LiciniusRex
@hashtagyolo1
@Lorrie01 sorry, didn't mean to come across rude. Been struggling with this for a bit now. Without getting this call to work I can't do any more on site. Somewhat stressful
BrianWilliams28
@BrianWilliams28
@SkyC0der arr.length - i?
Gulsvi
@gulsvi
@BrianWilliams28 Correct, that would get you the last element
Lorrie Pearson
@Lorrie01
no worries @hashtagyolo1 these projects can get stressful. I'm working on the Javascript calculator for FCC and finally finished an Etch-a-Sketch project for a different program. Hope you work it out soon. Take care
Gulsvi
@gulsvi
@BrianWilliams28 Use the length - 1 and length - 2 for the last two elements
LiciniusRex
@hashtagyolo1
I'll keep chipping away at it @Lorrie01
BrianWilliams28
@BrianWilliams28
@SkyC0der var nextNumber = arr[arr.length - 1] + arr[arr.length - 2]; ?
Gulsvi
@gulsvi
yes @BrianWilliams28