{"ScriptPreparationCode":"window.input = document.querySelector(\u0027input\u0027);\r\nwindow.input.value = \u0027This is very long text very long text\u0027;\r\nwindow.vWas = input.value;\r\nwindow.vSame = input.value;\r\n\r\ninput.value \u002B= \u0022!!!\u0022;\r\nwindow.vDiff = input.value;","TestCases":[{"Name":"Compare by char","Code":"for (let i = 0; i \u003C vDiff.length; \u002B\u002Bi) {\r\n if (vWas[i] !== vDiff[i]) {\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"Compare by char-code","Code":"for (let i = 0; i \u003C vDiff.length; \u002B\u002Bi) {\r\n if (vWas.charCodeAt(i) !== vDiff.charCodeAt(i)) {\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"Compare whole strings (different)","Code":"let isChanged = vWas !== vDiff;","IsDeferred":false},{"Name":"Compare whole strings (same)","Code":"let isChanged = vWas === vSame;","IsDeferred":false}]}