← Back to challenges

Come Check Out This Crazy Function

JavaScriptHardbit_operationscryptography

Instructions

You are given two numbers, a and b. Write a function which uses an expression to return the expected output. I am not going to tell you what the expression is because that will spoil the fun! :)

Examples

crazyfunction(10, 20) ➞ 30

crazyfunction(17, 35) ➞ 50

crazyfunction(61, 233) ➞ 212

Notes

Hint: Notice the tags?

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Filter out Strings from an Array