JavaScriptQuestion 35 of 36Multiple choiceslice or splice — which changes the array?BookmarkReview laterWhat will arr contain after both lines run?JavaScriptconst arr = [1, 2, 3, 4]; arr.slice(1, 3); arr.splice(1, 2);Choose one answer.A.[1, 2, 3, 4]B.[2, 3]C.[1, 4]D.[4]Check answerBased on the cardDifference between slice and splice? — JavaScript