JSFiddle - React, Tailwind, and code Playground

by akang2

JavaScript

2//Act 7.3 Passing Objects

var person = {
    name: 'alex',
    city: 'fresno',
    email: '[email protected]',
    age: 20
}

function bday() {
    for (i=0; i<30; i++) {
        console.log(person.age);
        person.age += 1;
        console.log(person.age);
    }
}

bday();