From 57fc0b61b11b025989e92b32092c57a71cc34e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20K=C3=A1n=C4=9B?= Date: Thu, 11 Jul 2019 23:15:47 +0200 Subject: [PATCH] Use short operator for better readability. --- patekLogo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patekLogo.js b/patekLogo.js index f4e5574..7b0d2df 100644 --- a/patekLogo.js +++ b/patekLogo.js @@ -17,7 +17,7 @@ class PatekLogo extends HTMLElement { let outputChar = String.fromCharCode(0); for (let i = 0; i < normalizedInputValue.length; i++) { - outputChar = outputChar ^ normalizedInputValue[i].charCodeAt(0); + outputChar ^= normalizedInputValue[i].charCodeAt(0); } const opacities = outputChar.toString(2);