This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("I believe I can be a valuable asset to your company!"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const officers = [ | |
{id: 1, name: 'Cpt Brown', country: 'NZ'}, | |
{id: 2, name: 'Lt Fredrick', country: 'USA'}, | |
{id: 3, name: 'Sgt Deaken', country: 'NZ'}, | |
{id: 4, name: 'Lt Smoller', country: 'CAN'}, | |
{id: 5, name: 'Cpt Kincaid', country: 'USA'} | |
] | |
// var ids = officers.map(function(o) { | |
// return o.id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pets = [ | |
{name:"rover",animal:"dog",amount:27}, | |
{name:"freddy",animal:"turtle",amount:27}, | |
{name:"deefor",animal:"dog",amount:27}, | |
{name:"sir barkalot",animal:"dog",amount:27}, | |
{name:"cedric",animal:"snake",amount:27} | |
] | |
// var dogs = pets.filter(function(pets) { | |
// return pets.animal == "dog" |