JSFiddle - React, Tailwind, and code Playground

by akang2

JavaScript

/*
Create a JSFiddle that will ask a user how many family members they have, then it should ask them the family members names. After you have all of the family members names then ask again whats the relationship of that family member and age. And reassign their string name in the array to an array formatted like so [name, relation, age]. In the end you should have an array of arrays of all your families basic info.
*/

var userAns = prompt('how many family members?');

//take the userAns, convert it to integer

var famNames = prompt('