Upwork Javascript Test info

https://www.w3schools.com/jsref/default.asp

JAVASCRIPT TEST 2016 http://upworktesthelp.blogspot.com/2016/10/javascript-test-2016.html

Upwork Javascript Test Answers http://upwork-guru.blogspot.com/2017/05/upwork-javascript-test-answers.html

JavaScript Test 2018 http://upworktestru.com/javascript_test_2016_upwork_answers_questions/

***************************************

Select the statement that will return true value.
Array let a = [1,2,3,4] is defined.

let a = [1,2,3,4];
4 in a ;
//False
///////////////////////////////

let a = [1,2,3,4];
a.indexOf(-1)===3;
//False

///////////////////////////////

let a = [1,2,3,4];
a.length;
//4

///////////////////////////////

let a = [1,2,3,4];
a;
//[1,2,3,4];

/////////////////////////////////////

reduce() – Get the sum of the numbers in the array: (from left-to-right).
reduceRight() – Get the sum of the numbers in the array: (from right-to-left).
reverse() – Reverse the order of the elements in an array:
pop() – Remove the last element of an array:
pop() – Add a new item to an array:

************************