@thecapnews
/in/cristian-marquez/
https://medium.com/@xthecapx
var numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
var evenNumbers = [];
for (var i = 0; i < numbers.length; i++) {
if (numbers[i] % 2 == 0) {
evenNumbers.push(numbers[i]);
}
}
function even(number) {
return number % 2 == 0;
}
let list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
list.filter(even);
const testString = " this is awesome! isn't it ";
function slugify(string) {
return string
.toLowerCase()
.trim()
.split(" ")
.join("-");
}
console.log(slugify(testString));