Data
const a = [1, 3, 4, 6, 12, 15, 23, 20];
const b = ['a', 'once a time', 'machine learning', 'beer', 'bear', 'beat'];
const c = [ { key1: 'abc' }, { key2: 1.2 }, { key3: false }, { key4: null }, { key5: undefined }, { key6: '' } ];
Challenges
- Return a list with only odd numbers (for a).
- Return a list with all values multiplied by 2 (for a).
- Return a list with all the values that includes 'be' (for b).
- Return a list with all the false values (for c).