// function Nanja() {
// this.skulk = function() {
// return this
// }
// return 1
// }
// var ninja1 = new Nanja()
// var ninja2 = new Nanja()
var assert = (value, text) =>{
if(value === true) {
console.log(text)
} else {
console.log('error')
}
}
// assert(Nanja()===1,'rhatis 1')
// assert(ninja1.skulk()===ninja1,'first right')
// assert(typeof ninja1.skulk === 'function','ninja1 has skulu function')
var puppet = {
rules : false,
add: 'nimasile'
}
function Employee() {
this.rules = true
return puppet
}
var employee1 = new Employee()
assert(employee1 === puppet,'this emplyee')
console.log(employee1.rules)
console