The browser storage localStorage is not available. Either your browser does not support it or you have disabled it or the maximum memory size is exceeded. Without localStorage your solutions will not be stored.

Creating arrays

Arrays are objects for storing multiple values. Arrays are preferably created with square brackets.
var languages = ['C', 'C++', 'Java'];
var primes = [2, 3, 5, 7, 11];
var emptyArray = [];
var a = 'Douglas';
var b = 12;
var c = true;
var someValues = [a, b, c];


Write a function toArray that takes 2 values and returns these values in an array. toArray(5, 9) should return the array [5, 9].