{"size": 169, "ext": "js", "max_stars_repo_path": "live-examples/js-examples/array/array-shift.js", "max_stars_repo_name": "schu34/interactive-examples", "max_stars_repo_stars_event_min_datetime": "2017-05-31T15:20:06.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T02:45:28.000Z", "max_issues_repo_path": "live-examples/js-examples/array/array-shift.js", "max_issues_repo_name": "schu34/interactive-examples", "max_issues_repo_issues_event_min_datetime": "2017-05-26T12:38:51.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T23:16:03.000Z", "max_forks_repo_path": "live-examples/js-examples/array/array-shift.js", "max_forks_repo_name": "schu34/interactive-examples", "max_forks_repo_forks_event_min_datetime": "2017-05-25T08:00:33.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-29T19:50:13.000Z"}
{"max_stars_count": 605, "max_issues_count": 1181, "max_forks_count": 500, "avg_line_length": 16.9, "max_line_length": 36, "alphanum_fraction": 0.6863905325}
const array1 = [1, 2, 3];

const firstElement = array1.shift();

console.log(array1);
// expected output: Array [2, 3]

console.log(firstElement);
// expected output: 1
