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.
18 lines
829 B
18 lines
829 B
4 years ago
|
[
|
||
|
{
|
||
|
"description": "whiteRabbit is declared and is an object",
|
||
|
"code": "let secretData = { 'Mr. Reagan': 'Cypher' }\n// Your code\nif (typeof whiteRabbit !== 'object') throw Error('whiteRabbit is not declared')"
|
||
|
},
|
||
|
{
|
||
|
"description": "whiteRabbit keys includes the rabbit emoji",
|
||
|
"code": "let secretData = { 'Mr. Reagan': 'Cypher' }\n// Your code\nif (!('🐰' in whiteRabbit)) throw Error('I could not follow the 🐰')"
|
||
|
},
|
||
|
{
|
||
|
"description": "traitor value match secretData 'Mr. Reagan' property",
|
||
|
"code": "let secretData = { 'Mr. Reagan': 'Cypher' }\n// Your code\nequal(traitor, 'Cypher')"
|
||
|
},
|
||
|
{
|
||
|
"description": "traitor value still match secretData 'Mr. Reagan' property",
|
||
|
"code": "let secretData = { 'Mr. Reagan': 'Cool stache' }\n// Your code\nequal(traitor, 'Cool stache')"
|
||
|
}
|
||
|
]
|