Question: Use JavaScript to generate an array of 90 objects. These objects should have two properties (name and value). The name property should be your first
Use JavaScript to generate an array of 90 objects. These objects should have two properties (name and value). The name property should be your first name (sorry no spaces) concatenated with a zero-based counter, and the value should be the counter. Save the array to a variable called original and output it to the console. Example: My name is Paulo, so my code would generate this array
: [ {name: Paulo0, value:0},
{name: Paulo1, value:1},
{name: Paulo89, value:89} ]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
