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
982 B
22 lines
982 B
4 years ago
|
[
|
||
|
{
|
||
|
"description": "Count up to 12",
|
||
|
"code": "const args = saveArguments(console, 'log')\n\n// Your code\n\nfrom10(12)\nequal(\n args.flat().join('\\n'),\n `10\n11\n12`,\n)"
|
||
|
},
|
||
|
{
|
||
|
"description": "Count up to 17",
|
||
|
"code": "const args = saveArguments(console, 'log')\n\n// Your code\n\nfrom10(17)\nequal(\n args.flat().join('\\n'),\n `10\n11\n12\n13\n14\n15\n16\n17`,\n)"
|
||
|
},
|
||
|
{
|
||
|
"description": "Count down to 7",
|
||
|
"code": "const args = saveArguments(console, 'log')\n\n// Your code\n\nfrom10(7)\nequal(\n args.flat().join('\\n'),\n `10\n9\n8\n7`,\n)"
|
||
|
},
|
||
|
{
|
||
|
"description": "Count down to 3",
|
||
|
"code": "const args = saveArguments(console, 'log')\n\n// Your code\n\nfrom10(-3)\nequal(\n args.flat().join('\\n'),\n `10\n9\n8\n7\n6\n5\n4\n3\n2\n1\n0\n-1\n-2\n-3`,\n)"
|
||
|
},
|
||
|
{
|
||
|
"description": "Count to 10",
|
||
|
"code": "const args = saveArguments(console, 'log')\n\n// Your code\n\nfrom10(10)\nequal(args.flat().join('\\n'), '10')"
|
||
|
}
|
||
|
]
|