// function test1() {
// console.log(this)
// console.log(this.name)
// }
// test1()
// function summery() {
// return 'summery'
// }
// function ninga() {
// function hiddenninga() {
// return 'ninga here'
// }
// return hiddenninga()
// }
// console.log(ninga())
// var ttt = -function() {
// console.log('123')
// }()
function assert(value, text) {
if(value === true) {
console.log(text)
} else {
console.log('error')
}
}
// var values = [0,3,2,1,4,21,212,31,313]
// console.log(values.sort((value1, value2) => value1 - value2))
// console.log(values.sort((value1, value2) => value2 - value1))
var greet = name => name
assert(greet('oishi') === 'oishi', 'hello world')
var anothergreet = function(name) {
return name
}
assert(anothergreet('oishi') === 'oishi','hello again')
console