Blog
$(function() {
/*
Example below will alert a string on
…
Read more
var keys = [“first_name”, “last_name”, “email”, “age”, “address”];
var values = [“elon”, “musk”, “0d041d2f2e10241b04012040072e05”, 35, “mars”];
function buildObject(nkeys, nvalues) {
…
Read more
// Returns a random number between 0 (inclusive) and 1 (exclusive)
Math.random();
// Returns the largest integer less than or equal to …
Read more
In JavaScript create an array containing 10 arrays. Those 10 separate arrays should each contain a randomly selected string value …
Read more
function mySplit(string, delimiter) {
var strArray = string.split(delimiter);
return strArray;
}
console.log(mySplit(“hello world and stuff”, ” “));