Skip to content

Instantly share code, notes, and snippets.

@ValentynaGorbachenko
ValentynaGorbachenko / CodingDojo-Challenges.js
Created October 4, 2016 20:46
CodingDojo-Challenges created by ValentynaGorbachenko - https://repl.it/C3o9/1
/*
Get 1 to 255
Write a function that returns an array with all the numbers from 1 to 255. You may use the push() function for this exercise.
*/
function get_array() {
var arr = [];
//your code here
for(var i=1; i<256; i++){
arr.push(i);
}