educative.io

Unable to complete exercise. Getting exceptions

I tried completing the exercise(my solution : ans=a / ((a + 10) * (a - 10) * (a % 10)); ), but the last excdricse throws below exceptions:

(node:21) UnhandledPromiseRejectionWarning: ReferenceError: a is not defined
    at square (/usercode/index.js:8:1)
    at executeTests (/usercode/index.js:34:25)
    at _callee$ (/usercode/index.js:52:23)
    at tryCatch (/usr/local/lib/node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:65:40)
    at Generator.invoke [as _invoke] (/usr/local/lib/node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:303:22)
    at Generator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:117:21)
    at step (/usercode/index.js:1:129)
    at /usercode/index.js:1:375
    at new Promise (<anonymous>)
    at /usercode/index.js:1:37
(node:21) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:21) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

HAd no issues completing the other three exercises.