Create a new array of size 3 then use the array map function on each element, calling valueOf:
var totalPoints = Array.apply(null, new Array(3)).map(Number.prototype.valueOf,1);
Create a new array of size 3 then use the array map function on each element, calling valueOf:
var totalPoints = Array.apply(null, new Array(3)).map(Number.prototype.valueOf,1);