Add some code highlighting
parent
c0140a9510
commit
299405694b
|
@ -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');",
|
||||
|
|
Loading…
Reference in New Issue