SOURCE

var ninja  = {}
ninja.skulk = function () {
  console.log('123')
}
ninja.skulk()

var assert = function (value, text){
  if(value === true) {
    console.log(text)
  } else {
    console.log('error')
  }
}

function whatsmycontext() {
  return this
}
assert(whatsmycontext() === window ,'righr')
var getmythis = whatsmycontext
assert(getmythis() === window,'another')

var ninja1 = {
	grtmyrhis: getmythis
}
assert(ninja1.grtmyrhis()===ninja1,'that right')

var ninja2 = {
  getmythis : whatsmycontext
}
assert(ninja2.getmythis() ===ninja2, 'all right')
// var store = {
//   a: 1,
//   b:2,
//   add: function() {
//     console.log('123')
//   }
// }
// console.log(store.a)
// store.add()
console 命令行工具 X clear

                    
>
console