The Journey of #100DaysOfCode (@henna_dev)

#Day53 of #100DaysOfCode

Today was a KungFu Day… I love sports, I used to be captain on my school Kho-Kho team back in the days when I was in India… I also won gold medal in 400m Relay Race, 200m race and a sack race… :stuck_out_tongue: Those were good golden times…
I feel better now than I was yesterday… I have an amazing friend who never fails to keep his smile even in times of chaos and I absolutely love him for everything that he does :heart_eyes: I have soo much to learn :face_with_hand_over_mouth:

Today I finished Arrays and did an exercise to find a Secret Message. Updated the previous article and added Arrays and Functions and Nested Arrays but the exercise is below:

Can you define what each of the method does :wink:

let secretMessage = ['Learning', 'is', 'not', 'about', 'what', 'you', 'get',
 'easily', 'the', 'first', 'time,', 'it', 'is', 'about', 'what', 'you', 'can', 
'figure', 'out.', '-2015,', 'Chris', 'Pine,', 'Learn', 'JavaScript'];

console.log(secretMessage.length)
secretMessage.pop();
console.log(secretMessage.length)


secretMessage.push('to','program')

console.log(secretMessage)

secretMessage[7] = 'right'

secretMessage.shift()

secretMessage.unshift('Programming')

console.log(secretMessage)

secretMessage.splice(6,5, 'know')

console.log(secretMessage.join(' '))

Until Tomorrow… :performing_arts:

2 Likes