{"size": 855, "ext": "js", "max_stars_repo_path": "ES6-tutorial-files/07_const.js", "max_stars_repo_name": "mkaul/mkaul", "max_stars_repo_stars_event_min_datetime": "2018-05-17T16:58:28.000Z", "max_stars_repo_stars_event_max_datetime": "2018-05-17T16:58:28.000Z", "max_issues_repo_path": "ES6-tutorial-files/07_const.js", "max_issues_repo_name": "mkaul/mkaul", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "ES6-tutorial-files/07_const.js", "max_forks_repo_name": "mkaul/mkaul", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.375, "max_line_length": 56, "alphanum_fraction": 0.5625730994}
/**
 * @overview description of the component
 * @version 0.0.1
 * @author mkaul2m Manfred.Kaul@h-brs.de
 * @copyright The MIT License (MIT) mkaul2m on 28.10.18.
 */

// iterate over values of an Array
console.log( 'x of [1,2,3]' );
for (const x of [1,2,3]){
  console.log( x ); // -> 1,2,3
}

// iterate over values of an Object
console.log( 'x of { a:1, b:2 }' );
for (const x of Object.values({ a:1, b:2 })){
  console.log( x ); // -> 1,2
}

// iterate over keys of an Array
console.log( 'x in ["a","b","c"]' );
for (const x in ["a","b","c"]){
  console.log( x ); // -> 0,1,2
}

// iterate over keys of an Object
console.log( 'x in { a:1, b:2 }' );
for (const x in Object.keys({ a:1, b:2 })){
  console.log( x ); // -> a,b
}

// iterate over a range of numbers
console.log( 'i=0; i<3; i++' );
for (let i=0; i<3; i++){
  console.log( i ); // 0,1,2
}



