let arr:string[] = ["c++", "typescript", "php", "python", "go", "c"];
let shifted = arr.shift();
console.log(arr);
console.log(shifted);
shifted = arr.shift();
console.log(arr);
console.log(shifted);
/*
run:
["typescript", "php", "python", "go", "c"]
"c++"
["php", "python", "go", "c"]
"typescript"
*/