I like it a lot, I was just wondering why I couldn’t use hero.getCooldown(“bash”) I thought it would be a number but it didn’t complete the level, maybe because it would be 0. Anyway I like the level a lot.
var alolol = "faults"; // OK
// var blolol = someVariableName;
// var blolol = hero.health;
var blolol = hero.distanceTo(Vector(0,0));
pet.say(blolol);
In the HINTS can be noted that these pots can contain only strings and numbers. The level passes if you put in a variable logical true and fails with false . If your code is:
var someVariableName = "a string";
var lolol = 42;
var olol = 'ooh';
var lolol = true;
pet.say(lolol);
var same_var = “a string”;
var same_var = 42;
var same_var = true;
var same_var = false;
Is that expected?
ps:
I have a suggestion for making the level less error-prone and instructive for beginners.
Enforced unique declaration of variable. Pots contain: first: numeric value; second: string; third: Boolean value; fourth: null
var varStr = "a string";
var varNum = 42;
var varBool = true;
var varNull = null;
and var arr = {firstName: "Bob", lastName: "Zealot"};
are both invalid, not sure if it’s a bug or if anonymous functions and associative arrays just aren’t implimented in CC.