Blog Day 47: [JS/Node] Review

Inseo Park·2021년 8월 27일
0

Path to Data Scientist

목록 보기
45/58
post-thumbnail

1. TIL (Today I Learned)

So tomorrow is my first ever HA and I am currently feeling nervous plus not trying to feel nervouse mode. It's a mixed feeling but have to stay in pace and just enjoy the ride in the upcoming 2 days. Today I had a small review on what I have learned throughout the past 50+ days in the bootcamp. I wanted to share an interesting review section regarding JS/Node. The Bare Requirements was to

  • The return array of objToArr(obj) must have the same elements as arr.
  • The return object of arrToObj(arr) must have the same key and properties as obj.
  • The return array of objArrToArrArr([obj, obj, obj]) must have the same elements as [arr, arr, arr].

Quite tricky and failed the last one but passed the first two questions.

following are the codes for question 1 and 2:

export function objToArr(obj) {
  let result = [];
  for (let k in obj) {
    result.push([k, obj[k]])
  }
  return result;
  }
  
  export function arrToObj(arr) {
  let result = {};
  for (let k of arr) {
    result[k[0]] = k[1]
  }
  return result;
  }
  
  

Still had to put some effort on getting solve it and decided not to pressure myself too much with hard stuffs because tomorrow is going to be a challenging day.

2. 3 Things to be Thankful for

  1. Thankful for being blessed and grateful.
  2. Thankful for keeping my family safe.
  3. Thankful for being able to feel good for tomorrow. God please be with me tomorrow.

3. Ideas and Things to think about

  1. Detox is something good for your body, you started day 1 today so just relax through and remember to eat your food slowly.
  2. Tomorrow is going to be your HA test, but don't ever make it judge your life even if you fail. Just enjoy the ride and try your best and do not think about anything else aside from trying to solve it. If you encounter some hard part and get pissed off, go for a walk or break because you have plenty of time. Never stop googling for good sources that can support you along the day. Remember that if God wants it to happen for you He will do it no matter what. Always rely on him.
profile
my journey to become a data scientist.

0개의 댓글