implement atob()
2022年5月1日小于 1 分钟
implement atob()
Question
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.
Code
/**
* @param {string} encoded
* @return {string}
*/
function myAtob(encoded) {
// your code here
}