Add some code highlighting

This commit is contained in:
benmcmahon100
2015-08-13 17:36:02 +01:00
parent c0140a9510
commit 299405694b

View File

@ -30,10 +30,10 @@
"typeof is a useful method that we can use to check the type of a variable", "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", "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", "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(0));",
"console.log(typeof([]));", "console.log(typeof([]));",
"console.log(typeof({}));" "console.log(typeof({}));</code>"
], ],
"tests":[ "tests":[
"assert(editor.getValue().match(/console\\.log\\(typeof\\(\"\"\\)\\);/gi), 'You should console.log the typeof a string');", "assert(editor.getValue().match(/console\\.log\\(typeof\\(\"\"\\)\\);/gi), 'You should console.log the typeof a string');",