Chalarangelo/30-seconds-of-interviews

`this` keyword question: `myObject.iife()` should be `myObject.iife`

kscooo opened this issue · 4 comments

1
2
myObject.life() maybe myObject.life

iife stands for immediately-invoked function expression and is the format of that functional call:

let a = ( function(){ return 1 } )()
a === 1 // true

If it's still unclear feel free to ask for more information.

default
i kown you mean, so why not 'myObject.life', '.life()'will be error

Yes, it should be myObject.iife without calling it as a function. Feel free to make a PR for this.