Add some code highlighting

pull/1742/head
benmcmahon100 2015-08-13 17:36:02 +01:00
parent c0140a9510
commit 299405694b
1 changed files with 2 additions and 2 deletions

View File

@ -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');",