{"size": 564, "ext": "js", "max_stars_repo_path": "modulo3/exercicio01/1.1/src/main.js", "max_stars_repo_name": "lel352/RocketSeatJavaScriptES6", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "modulo3/exercicio01/1.1/src/main.js", "max_issues_repo_name": "lel352/RocketSeatJavaScriptES6", "max_issues_repo_issues_event_min_datetime": "2021-10-06T21:18:38.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T09:56:08.000Z", "max_forks_repo_path": "modulo3/exercicio01/1.1/src/main.js", "max_forks_repo_name": "lel352/RocketSeatJavaScriptES6", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 20.8888888889, "max_line_length": 70, "alphanum_fraction": 0.4964539007}
// Funão delay aciona o .then após 1s
const delay = () => new Promise(resolve => setTimeout(resolve, 1000));

function umPorSegundo() {
    delay().then(() => {
        console.log('1s');
        delay().then(() => {
            console.log('2s');
            delay().then(() => {
                console.log('3s');
            });
        })
    });
}
// umPorSegundo();

const umPorSegundoAsync = async () =>{
    await delay();
    console.log('1s');
    await delay();
    console.log('2s');
    await delay();
    console.log('3s');
}; 

umPorSegundoAsync();
