{"ScriptPreparationCode":"var TEXT = (\r\n \u0027== Inventory ==\\n\\n\u0027 \u002B\r\n \u0027Battery\\n\u0027 \u002B\r\n \u0027Small dog\\n\u0027 \u002B\r\n \u00271 x arm\\n\u0027 \u002B\r\n \u0027Snickers\u0027\r\n);\r\n\r\nvar sentinal = (text) =\u003E {\r\n let i = 0;\r\n let count = 0;\r\n for (;;) {\r\n const c = text[i\u002B\u002B];\r\n if (c === undefined) {\r\n return count;\r\n }\r\n if (c === \u0027\\n\u0027) {\r\n \u002B\u002Bcount;\r\n }\r\n }\r\n};\r\n\r\nvar subscription = (text) =\u003E {\r\n const {\r\n length\r\n } = text;\r\n let count = 0;\r\n for (let i = 0; i \u003C length; \u002B\u002Bi) {\r\n if (text[i] === \u0027\\n\u0027) {\r\n \u002B\u002Bcount;\r\n }\r\n }\r\n return count;\r\n};","TestCases":[{"Name":"sentinal","Code":"sentinal(TEXT);","IsDeferred":false},{"Name":"subscription","Code":"subscription(TEXT);","IsDeferred":false}]}