Skip to content

Commit cf32f9b

Browse files
change answers to use code tag w/ specific classes
1 parent 8b845d2 commit cf32f9b

7 files changed

Lines changed: 7 additions & 8 deletions

File tree

courses/intro/1_string.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ failures = {
5757
module.exports = {
5858
"id": 1,
5959
"title": "Strings",
60-
"instructions": "Start learning JavaScript with us by typing in your *first name* surrounded by quotation marks, and ending with a semicolon. For example, I would type my name like this.\n\n`\"{{username || 'Gregg'}}\";`",
60+
"instructions": "Start learning JavaScript with us by typing in your *first name* surrounded by quotation marks, and ending with a semicolon. For example, I would type my name like this.\n\n<code class=\"inlineCode inlineCode--btn\">\"{{username || 'Gregg'}}\";</code>",
6161
"tests": tests,
6262
"failures": failures,
6363
"answer": "\"Gregg\""

courses/intro/2_methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ JavaScript also has built-in features, called *methods*. In order to call a meth
5555
5656
Don't be afraid when a box pops up, that's your code working, {{username}}!
5757
58-
\`alert();\``,
58+
<code class=\"inlineCode inlineCode--btn\">alert();</code>`,
5959
'hints': [
6060
'Call the alert method by typing the following: `alert();`'
6161
],

courses/intro/3_string_method_parameter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module.exports = {
6161
6262
Well, many methods (like the \`alert\` method) can take instructions, which we call *parameters*. By sending a string into the \`alert\` method, we can put text on the pop-up box. Try it!
6363
64-
\`alert("{{username}}");\``,
64+
<code class=\"inlineCode inlineCode--btn\">alert("{{username}}");</code>`,
6565
'hints': [
6666
"Type in your first name surrounded by double quotes inside the alert method: `alert(\"{{username}}\");`"
6767
],

courses/intro/4_variables.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ module.exports = {
7676
'title': 'Variables',
7777
'instructions': `Often when programming we want to store values in containers so we can use them later; these are called variables. Let’s store your name in a variable, or ‘var’ for short, by typing the following:
7878
79-
\`var firstName = "{{username}}";\``,
79+
<code class=\"inlineCode inlineCode--btn\">var firstName = "{{username}}";</code>`,
8080
'tests': tests,
8181
'failures': failures,
8282
'answer': "var test = 'dan';"

courses/intro/5_variable_value.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ module.exports = {
4747
'title': 'Variable Value',
4848
'instructions': `Now we have a variable called \`firstName\` that has a string stored inside of it. Output it to see what it looks like.
4949
50-
\`firstName;\`
51-
`,
50+
<code class=\"inlineCode inlineCode--btn\">firstName;</code>`,
5251
'tests': tests,
5352
'failures': failures,
5453
'answer': "test;"

courses/intro/7_combining_numbers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = {
4646
'title': 'Combining Numbers',
4747
'instructions': `We can also do math in Javascript! Combine any two numbers likes so:
4848
49-
\`14 + 28;\``,
49+
<code class=\"inlineCode inlineCode--btn\">14 + 28;</code>`,
5050
'tests': tests,
5151
'failures': failures,
5252
'answer': "14 + 28;"

courses/intro/8_combining_strings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Such math skills, good job ! Javascript not only can combine numbers, but string
6060
6161
Create an alert which combines both your name and a string, like below.
6262
63-
\`alert(firstName + " is awesome!");\``,
63+
<code class=\"inlineCode inlineCode--btn\">alert(firstName + " is awesome!");</code>`,
6464
'tests': tests,
6565
'failures': failures,
6666
'answer': "alert(firstName + \" is awesome!\");"

0 commit comments

Comments
 (0)