Slasher Flick Code

Hello, here is my code and I do not know what is wrong with it. Can anyone please assist, I am pulling my hair out.

function slasher(arr, howMany) {
  // it doesn't always pay to be first
  if (howMany >= arr.length || howMany < 0){
    return [];
  else if (howMany === 0){
    return arr;
    var newArray = arr.splice(0, howMany);
    return newArray;
slasher([1, 2, 3], 2);

I cleaned up your code.
You need to use triple backticks to post code to the forum.
See this post for details.

thanks ariel, i think i know how to do it now.

i looked up the answer and wasn’t sure what I did wrong in the beginning, but was a simple solution. Thanks