Created
July 24, 2017 09:11
-
-
Save aaayushsingh/d1088719c90cdbb70866a6269612198b to your computer and use it in GitHub Desktop.
Gets hexor for the array, init array dynamically when using. {N}, Helfis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr = [03,01,00,170,25,01]; | |
var dem = 00; | |
arr.forEach(function(e) { | |
dem ^= e; | |
}, this); | |
console.log("answer:" + dem.toString(16)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment