[solved] – Question 84983
Using JavaScript, Write a function called “isEven” that accepts a value and returns true if value is even and false otherwise.
Expert Answer
[solved] – Question 84984
Using JavaScript, Write a function called “getEvenNums” that accepts an array as a parameter and returns an array of only even numbers extracted from the list. Your solution should use the “isEven” function.
Expert Answer
[solved] – Question 84985
Using Javascript, Write a function called “addTo” that will add a value to an array based on the position specified.
The function will accept three parameters, the array of values, the value to be entered, and a
string which identifies the position. The positions can be either ‘front’ or ‘back’. Invalid position values should throw an exception with an appropriate message. You are expected to use the appropriate methods of the array (list).
Expert Answer
[solved] – Question 84986
Using JavaScript, Write a function called “enqueue”, that will perform the enqueue operation on an array. The array and the value to be enqueued is supplied through a parameter
Expert Answer
[solved] – Question 84987
Using JavaScript, Write a function called “push”, that will perform the push operation on an array. The array and the value to be enqueued is supplied through a parameter.
Expert Answer
[solved] – Question 84988
Using JavaScript, Write a function called “sortNumArrAsc” that will sort an array of integers in ascending order.
Expert Answer
[solved] – Question 84990
Using JavaScript, Write a function called “sortNamesBySurnameAsc” that will receive an array of names by surname then first name and sort by ascending alphabetical order of Surnames
Expert Answer
[solved] – Question 84991
Create a function called “generateEven” that will return array containing only even numbers
between 1 and n. n is passed as a parameter to the function.
Expert Answer
[solved] – Question 84992
Write a function called “getSize” that accepts an array and display the number of elements in an array (list).
Expert Answer
[solved] – Question 84993
Write a function called “isEven” that accepts a value and returns true if value is even and false
otherwise
Expert Answer

