Shift In Array Javascript Methods Syntax