Add some code highlighting
This commit is contained in:
@ -30,10 +30,10 @@
|
||||
"typeof is a useful method that we can use to check the type of a variable",
|
||||
"One thing to be careful of is that an array has the type objects",
|
||||
"Try using each of these to see the types they have",
|
||||
"console.log(typeof(\"\"));",
|
||||
"<code>console.log(typeof(\"\"));",
|
||||
"console.log(typeof(0));",
|
||||
"console.log(typeof([]));",
|
||||
"console.log(typeof({}));"
|
||||
"console.log(typeof({}));</code>"
|
||||
],
|
||||
"tests":[
|
||||
"assert(editor.getValue().match(/console\\.log\\(typeof\\(\"\"\\)\\);/gi), 'You should console.log the typeof a string');",
|
||||
|
Reference in New Issue
Block a user