@terungwa/

HopefulSugaryAddons

Nodejs

No description

fork
loading
Files
  • index.js
  • package-lock.json
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const food = [
  {
    myKey1: 'ObjectValue1',
    myKey2: 'ObjectValue2',
    mykeyN: 'ObjectValueN',
    objectMethod: function() {
      // Do something on this object
    }
  },
  {
    first:  { key:  'thing', key2: 2 },
    second: { key3: 'otherThing' }, 
    third:  { key4: 'my string' }
  },
  {
    firstName: 'William',
    lastName:  'Imoh',
    married:   true,
    greet:     function() {
      alert("Hello everyone, i'm " + this.firstName);
    }
  }
];
//console.log(...food);
//let i === 0;
for(var meal of food){
  console.log(meal);
  
};
  const findMeal = food.includes('Imoh');
  console.log(findMeal);

node v10.16.0