I'm working on Koans by liammclennan and I'm stuck on the "about_truthyness" section with the following code:
module("About Truthyness (topics/about_truthyness.js)");
test("truthyness of positive numbers", function() {
var oneIsTruthy = 1 ? true : false;
equal(true, oneIsTruthy, 'is one truthy?');
});
test("truthyness of negative numbers", function() {
var negativeOneIsTruthy = -1 ? true : false;
equal(true, negativeOneIsTruthy, 'is -1 truthy?');
});
test("truthyness of zero", function() {
var zeroIsTruthy = 0 ? true : false;
equal(false, zeroIsTruthy, 'is 0 truthy?');
});
test("truthyness of null", function() {
var nullIsTruthy = null ? true : false;
equal(false, nullIsTruthy, 'is null truthy?');
});
I'm getting this error:
About Truthyness (topics/about_truthyness.js): global failure (1, 0, 1)Rerun0 ms
Uncaught SyntaxError: missing ) after argument list
Source:
https://preview.c9users.io/dyczol/koans-javascript/topics/about_assignment.js:11
Thanks in advance for any help!