To do this, you can use slice
on the array (assuming it’s an array — using {}
is for objects, which isn’t valid for this).
args = ["!say", "pineapples", "are", "cool!"]
// As an array
console.log(args.slice(1));
// To string
console.log(args.slice(1).join(" "));
solved args and up? javasript