Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc3057d9

Browse files
committed
init release
1 parent0507f08 commitc3057d9

File tree

3 files changed

+14
-71
lines changed

3 files changed

+14
-71
lines changed

‎.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
node_modules
2-
tutorial/_temp.spec.js
2+
tutorial/.temp*

‎coderoad.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{
1212
"description":"Run the `varTest` function and look in the console.",
1313
"tests": [
14-
"1/01/01"
14+
"01/01"
1515
],
1616
"hints": [
1717
"Click\"SAVE\". ⌘ + S on Mac, ctrl + S on Windows"
@@ -24,7 +24,7 @@
2424
{
2525
"description":"Change `var` to `let` and run the `letTest` function. Don't forget to look in the console.",
2626
"tests": [
27-
"1/01/02"
27+
"01/02"
2828
],
2929
"actions": [
3030
"insert('\n// use `let` and call `letTest()`\nfunction letTest() {\n\tvar x = 3;\n\tif (true) {\n\t\tvar x = 4;\n\t\tconsole.log(x);\n\t}\n\tconsole.log(x);\n}\nletTest();\n\n\n')"
@@ -33,7 +33,7 @@
3333
{
3434
"description":"fix the broken loop to log numbers 1 to 5",
3535
"tests": [
36-
"1/01/03"
36+
"01/03"
3737
],
3838
"actions": [
3939
"insert('\n// log numbers from 1 to 5\nfor (var i = 1; i <= 5 ; i++ ) {\n setTimeout(function() {\n console.log(i);\n })\n}\n// 6 6 6 6 6\n\n')"
@@ -49,7 +49,7 @@
4949
{
5050
"description":"Declare\"person\" as a `const`",
5151
"tests": [
52-
"1/02/01"
52+
"02/01"
5353
],
5454
"actions": [
5555
"open('const.js')",
@@ -59,7 +59,7 @@
5959
{
6060
"description":"Declare\"person\" as a constant. Check the log to see what will happen.",
6161
"tests": [
62-
"1/02/02"
62+
"02/02"
6363
],
6464
"actions": [
6565
"insert('\n// declare person as a const\n// cannot be redeclared\nvar person = {\n name: 'Shawn',\n city: 'Vancouver'\n};\n\nperson = {\n name: 'Unknown',\n city: 'Las Vegas'\n};\n\nperson.favoriteColor = 'blue';\n\n// what will the output be?\nconsole.log(person);\n\n\n')"
@@ -68,7 +68,7 @@
6868
{
6969
"description":"Declare\"people\" as a constant. Check the log again.",
7070
"tests": [
71-
"1/02/03"
71+
"02/03"
7272
],
7373
"actions": [
7474
"insert('\n// declare people as a const\n\nvar people = ['Mandi', 'Mack', 'Ben'];\n\npeople = [];\n\npeople.push('Shawn');\n\n// what will the output be?\nconsole.log(people);\n\n')"
@@ -83,7 +83,7 @@
8383
{
8484
"description":"Change the\"greet\" function to use an `=>` function",
8585
"tests": [
86-
"1/03/01"
86+
"03/01"
8787
],
8888
"actions": [
8989
"open('arrow-function.js')",
@@ -93,7 +93,7 @@
9393
{
9494
"description":"Change the\"getName\" function to use an `=>` function without using the keyword `return`",
9595
"tests": [
96-
"1/03/02"
96+
"03/02"
9797
],
9898
"actions": [
9999
"insert('\n// use => no return statement\nconst getName = function getName() {\n\treturn 'Joe';\n}\n\n\n')"
@@ -102,7 +102,7 @@
102102
{
103103
"description":"Fix the broken clock by using arrow functions.",
104104
"tests": [
105-
"1/03/03"
105+
"03/03"
106106
],
107107
"actions": [
108108
"insert('\n// fix the clock\n// http://codepen.io/redacademy/pen/mPjXVW\n\n')"
@@ -122,13 +122,13 @@
122122
"set('// change the output to a template literal\n\nfunction template() {\n console.log('I know what a backtick is');\n}\ntemplate();\n\n\n')"
123123
],
124124
"tests": [
125-
"1/04/01"
125+
"04/01"
126126
]
127127
},
128128
{
129129
"description":"rewrite `multiline` to use template literals",
130130
"tests": [
131-
"1/04/02"
131+
"04/02"
132132
],
133133
"actions": [
134134
"insert('\nfunction multiline() {\n\tconsole.log('1.\\n2.\\n3.');\n}\nmultiline();\n// 1.\n// 2.\n// 3.\n\n\n')"
@@ -137,7 +137,7 @@
137137
{
138138
"description":"rewrite `expressions` to use template literals",
139139
"tests": [
140-
"1/04/03"
140+
"04/03"
141141
],
142142
"hints": [
143143
"Use `${expressions}`"
@@ -160,7 +160,7 @@
160160
"set('// rewrite in a simpler way\nfunction getPersonObj(name, city) {\n return {\n name: name,\n city: city\n };\n}\n')"
161161
],
162162
"tests": [
163-
"1/05/01"
163+
"05/01"
164164
]
165165
}
166166
]

‎tutorial/.tmp.spec.js

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp