{"ScriptPreparationCode":null,"TestCases":[{"Name":"bitLen using while loop","Code":"function bitLength(number) {\r\n let bitsCounter = 0;\r\n\r\n while ((1 \u003C\u003C bitsCounter) \u003C= number) {\r\n bitsCounter \u002B= 1;\r\n }\r\n\r\n return bitsCounter;\r\n}","IsDeferred":false},{"Name":"bitLen using Number","Code":"function bitLength(number) {\r\n return Number(number).toString(2).length;\r\n}","IsDeferred":false}]}