{"ScriptPreparationCode":"var min = 100;\r\nvar max = 600000;\r\nvar num = 300001;\r\nvar between = (x, min, max) =\u003E {\r\n\treturn x \u003E= min \u0026\u0026 x \u003C= max;\r\n}\r\nvar inRange = (x, min, max) =\u003E {\r\n\treturn ((x-min)*(x-max) \u003C= 0);\r\n}","TestCases":[{"Name":"Using greater than and less than","Code":"let i = 0;\r\nwhile (i \u003C 10000) {\r\n i\u002B\u002B;\r\n between(num, min, max)\r\n}","IsDeferred":false},{"Name":"Using a single comparison","Code":"let i = 0;\r\nwhile (i \u003C 10000) {\r\n i\u002B\u002B;\r\n inRange(num, min, max)\r\n}","IsDeferred":false}]}