mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
550 B
22 lines
550 B
4 years ago
|
[
|
||
|
{
|
||
|
"description": "giveBack is declared and is a function",
|
||
|
"code": "equal(typeof giveBack, 'function')"
|
||
|
},
|
||
|
{
|
||
|
"description": "calling giveBack return a function",
|
||
|
"code": "equal(typeof giveBack(), 'function')"
|
||
|
},
|
||
|
{
|
||
|
"description": "giveBack works with numbers",
|
||
|
"code": "equal(giveBack(5)(), 5)"
|
||
|
},
|
||
|
{
|
||
|
"description": "giveBack works with strings",
|
||
|
"code": "equal(giveBack('hello')(), 'hello')"
|
||
|
},
|
||
|
{
|
||
|
"description": "giveBack works with undefined",
|
||
|
"code": "equal(giveBack()(), undefined)"
|
||
|
}
|
||
|
]
|