Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Go through the digits, writing down the value of each digit. If it were hexadecimal then it would be possible to get by with bit shift and mask operations.
Find the remainder of division by 10 , write the character as the value of the character "0" plus the value of the remainder.
Convert the memory address for writing the string down. Then divide by 10 if it is greater than zero then repeat the cycle otherwise exit.
data to base64 ?
const toDataURL = url => fetch(url)
.then(response => response.blob())
.then(blob => new Promise((resolve, reject) => {
const reader = new FileReader()
reader.onloadend = () => resolve(reader.result)
reader.onerror = reject
reader.readAsDataURL(blob)
}))
toDataURL('https://www.gravatar.com/avatar/d50c83cc0c6523b4d3f6085295c953e0')
.then(dataUrl => {
console.log('RESULT:', dataUrl)
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question