Question: Java script Write a function that takes one parameter, an array. This array will contain consecutive numbers from 1 to n in random order. However,
Java script

Write a function that takes one parameter, an array. This array will contain consecutive numbers from 1 to n in random order. However, the array will be missing a number. Your function should return the missing number in the array. For example, if I pass in the array [5, 4, 1, 2] your function should return 3. Edit View Insert Format Tools Table V Av T2 : 12pt BIU A M Paragraph
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
