DAY 10–02/05/2016

Aayush Bhardwaj
Let’s GOOGLE it !
2 min readMay 3, 2016

Hello fellas ,

Days Completed — 9

Days Left — 168

To start we have a good news , LiberalDart has started operating from our new office located in Bangalore and that’s were I am writing this blog from .

Cheers to that !

It’s Free Code Camp time . I start at 09:16 pm with a score of 169 and am planning to reach 300 before I go to sleep .

I will be putting down the important concepts for our reference -

  1. .push() takes one or more parameter and “pushes” it onto the end of the array.
  2. .pop() is used to “pop” a value off of the end of an array.
  3. .shift() — It works just like .pop(), except it removes the first element instead of the last.
  4. .unshift() works exactly like.push(), but instead of adding the element at the end of the array , unshift() adds the element at the beginning of the array.
  5. Variables which are used without the var keyword are automatically created in the global scope.
  6. It is possible to have both local and global variables with the same name. When you do this, the local variable takes precedence over the global variable.
  7. Strict equality (===) is the counterpart to the equality operator (==). Unlike the equality operator, strict equality tests both the data type and value of the compared elements.
3==’3'; //true
3===’3'; //false

It’s 12:16 am and I have reached a score of 201 , 99 more to go before I sleep and I am already feeling tired .

I think I need a burger break , I will make myself a Chicken Burger , yummy :)

Oh ! it was great . Let’s get back to FCC .

  • Well wrote a code using switch..case after a long time .
function caseInSwitch(val) {
var answer = “”;
switch (val){
case 1:
answer = “alpha”;
break;
case 2:
answer = “beta”;
break;
}
return answer;
}
caseInSwitch(1);

Well I slept at night at around 01:30 am and could reach a score of just 210 .

Hopefully , I reach my target by tomorrow .

See ya.

--

--