Activity
Mon
Wed
Fri
Sun
Aug
Sep
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
What is this?
Less
More

Memberships

DP
Developer Pro

Public • 116 • Free

93 contributions to Developer Pro
For Loop Help (creating replies in a social media post)
Whenever I generate a reply, it is the same reply. How can I make them different?? EDIT: FIXED - Can someone look at line 106? I am trying to create a random number, and then take that random number and make it the number of replies on my post. I'm getting an error saying i isn't defined and I'm just not sure why...or where I should I be putting i in the function to make this work. https://codepen.io/Ryan-Pickard/pen/BaeVRPE?editors=1011
2
12
New comment 3d ago
0 likes • 3d
@Ryan Pickard You could when creating the reply in the for each loop. Use the faker api again to generate a username and a new post. e.g. faker.internet.displayName() faker.post.text() or whatever.
1 like • 3d
@Ryan Pickard Good job. Just be sure to realise why the same reply was showing.
Crypto App PR (Improvement/portfolioCoinProfitCoinpage)
https://github.com/duncanwhyte/Crypto_App/pull/25
8
2
New comment 6d ago
1 like • 6d
@Cristian Florea Checked
Crypto App (Light and Dark Theme) PR
https://github.com/duncanwhyte/Crypto_App/pull/24
6
0
Crypto App (PRs) Portfolio page
https://github.com/duncanwhyte/Crypto_App/pull/21 (Small typo error with coin table links) https://github.com/duncanwhyte/Crypto_App/pull/22 (Changes to coin chart scale) https://github.com/duncanwhyte/Crypto_App/pull/23 (Portfolio Page)
6
3
New comment 15d ago
0 likes • 16d
@Cristian Florea checked 👍
Crypto App (Improvement/coinSliderStyling)
https://github.com/duncanwhyte/Crypto_App/pull/20
7
0
1-10 of 93
Duncan Whyte
5
196points to level up
@duncan-whyte-4570
Here to fill a gap in society that helps people more with web development.

Active 59m ago
Joined Sep 16, 2023
powered by