Share your repls and programming experiences

← Back to all posts
Random Name and Info Generator
mamamia5x (43)

Just like it says. I'm a noob to HTLM5, JS, HTLM, and CSS.

Commentshotnewtop
CowNationz (42)

You should just generate random numbers within a range for the SSN and age. No need to make a gigantic list for those.

mamamia5x (43)

@CowNationz I got this data from a different website and put it as a csv. That data didn't work, so I just put it into here.

CowNationz (42)

@mamamia5x Doesn't mean you shouldn't just generate the numbers randomly. That's just unnecessary bytes

HarperframeInc (239)

AMAZING! Most noobs (to be honest) do worse than this. I can tell you'll be a great coder in no time!

ChezCoder (26)

holy code! That is a lot of code!
Suggestion: To make your HTML code cleaner, why don't you use event listeners and add a CSS file?

HTML:
<link href='THE_LINK.css' rel='stylesheet' type='text/css'>
(paste the CSS in the .css file)

JavaScript:
document.getElementsByClassName('button')[0].addEventListener('click',male)
document.getElementsByClassName('button1')[0].addEventListener('click',female)
(Because you have event listeners, I recommend you place the script file after the buttons or there will be an error.)

Hope you find this useful! :)

EDIT: You say you are bad at HTML, CSS and JavaScript. You don't look like it... but if you need some help, just contact me and I will be happy to help :)

mamamia5x (43)

@ChezCoder Yeah thanks! That sounds really good. Just go to the repl.it I sent you.