e.g. typed-array
example:
[diamonds@localhost bytewiser]$ bytewiser verify typed-array.js
Verifying "Typed Arrays"...
ACTUAL: "{\"0\":115,\"1\":101,\"2\":99,\"3\":114,\"4\":101,\"5\":116,\"6\":32,\"7\":109,\"8
\":101,\"9\":115,\"10\":115,\"11\":97,\"12\":103,\"13\":101,\"BYTES_PER_ELEMENT\":1,\"buffer\
":{\"0\":115,\"1\":101,\"2\":99,\"3\":114,\"4\":101,\"5\":116,\"6\":32,\"7\":109,\"8\":101,\"
9\":115,\"10\":115,\"11\":97,\"12\":103,\"13\":101,\"byteLength\":14},\"length\":14,\"byteOff
set\":0,\"byteLength\":14}"
EXPECTED: "{\"0\":115,\"1\":101,\"2\":99,\"3\":114,\"4\":101,\"5\":116,\"6\":32,\"7\":109,\"8
\":101,\"9\":115,\"10\":115,\"11\":97,\"12\":103,\"13\":101,\"BYTES_PER_ELEMENT\":1,\"buffer\
":{\"0\":115,\"1\":101,\"2\":99,\"3\":114,\"4\":101,\"5\":116,\"6\":32,\"7\":109,\"8\":101,\"
9\":115,\"10\":115,\"11\":97,\"12\":103,\"13\":101,\"byteLength\":14},\"length\":14,\"byteOff
set\":0,\"byteLength\":14}"
ACTUAL: null
EXPECTED: ""
# FAIL
Your solution to Typed Arrays didn't match the expected output.
Try again!
I thought doing stuff with streams rather than sync console.logging was more proper & nodey so I've been trying to do that. If the exercise specifically requires a trailing newline, this should be stated clearly or "use console.log" or "process.stdout.write" given as hints or just explicitly "The output should end with a newline char, so if you're not using console.log or process.stdout.write, you'll need to add it explicitly."