In this video, you'll learn how to code a JavaScript Random Name Generator using simple simply JavaScript techniques. Recommended training (Free for 7 days) : https://juniordevelopercentral.com/tr... 👍
Don’t forget to subscribe to the Junior Developer Central channel for more videos and tutorials!
Completed example project: https://codepen.io/codebubb/pen/xBKOpb
This isn't the most complex or taxing of projects; we're simply going to take two arrays of first and last names and pick a random value from each to create a new random name.
If you're new to JavaScript however you'll find a couple of useful tips in here, particularly creating random numbers (and in turn to get a random value from an array) and also how to create JavaScript function that will be used to handle a button event click.
We'll finish off the tutorial with just a splash of styling by adding Bootstrap and a bit of CSS. Channel Handle @codebubb