Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve2(input) {
- let newArray = input[0].split(", ");
- let command = newArray.shift();
- let biscuits = [];
- while (command !== "No More Money") {
- if(command === "OutOfStock") {
- console.log(`None`);
- } else if (command === "Required") {
- let index1 =
- } else if (command === "Last") {
- biscuits.push(index[1]);
- }
- command = newArray.shift();
- }
- }
- solve2((["Vanilla, Chocolate, Raspberry, Chocolate ",
- "OutOfStock Chocolate",
- "Required BBB 3",
- "No More Money"]));
Advertisement
Add Comment
Please, Sign In to add comment