From b0b5253f66f5ba6e031f5a88dc1bef613517b3b6 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 26 Jan 2017 23:26:20 +0100 Subject: Refactor remaining codebase to use 'const' --- src/scripts/error404.entry.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/scripts/error404.entry.ts') diff --git a/src/scripts/error404.entry.ts b/src/scripts/error404.entry.ts index 07dc9ca0..477a46c0 100644 --- a/src/scripts/error404.entry.ts +++ b/src/scripts/error404.entry.ts @@ -3,24 +3,24 @@ import * as $ from "jquery"; $(document).ready(() => { - let text = + const text = " oo oooo oo
" + " oo oo oo oo
" + " oo oo oo oo
" + " oooooo oo oo oooooo
" + " oo oo oo oo
" + " oo oooo oo
"; - let charList = text.split(''); + const charList = text.split(''); - let binary = "01001111011100000110010101101110010001000100001100100001"; - let binaryIndex = 0; + const binaryString = "01001111011100000110010101101110010001000100001100100001"; + let binaryIndex = 0; for (let i = 0; i < charList.length; i++) { if (charList[i] === "o") { - charList[i] = binary[binaryIndex]; + charList[i] = binaryString[binaryIndex]; binaryIndex++; } } $(".code-block").html(charList.join("")); -}); \ No newline at end of file +}); -- cgit v1.2.3