160. implement atob()

JavaScript

medium  - accepted / - tried

atob() decodes a string of data which has been encoded using Base64 encoding.

Please implement your own myAtob()

myAtob('QkZFLmRldg==') // 'BFE.dev'myAtob('Q') // Error

Please don't use atob() directly in your code.

Always try to find a better approach.