← Back to challenges

Same ASCII?

JavaScriptHardstringsvalidation

Instructions

Return true if the sum of ASCII values of the first string is same as the sum of ASCII values of the second string, otherwise return false.

Examples

sameAscii("a", "a") ➞ true

sameAscii("AA", "B@") ➞ true

sameAscii("Innokodakademija", "INNOKODAKADEMIJA") ➞ false
javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Check If Lines Are Parallel