Convert a Number or a String

kaozdev

KaozDev

Posted on September 27, 2021

Convert a Number or a String

Hi everyone, I'm new to the "React" javascript framework to improve my skills, I gave myself as an exercise to convert a number or string into a symbol. For example a number will convert like this and a string will convert like this <?L> I present to you my code that I was able to write to reach the end of my exercise on pastebin:
https://pastebin.com/uKeMM1zT

and here is the result I get in return
Alt Text

characters such as <?d> or <?L> do not appear as many times as the string inserted in the input

if I could get some help from the more experienced or someone who has any idea how to fix this it will warm my heart.
I've been looking for a solution on the internet for 3 days, but nothing solves my problem or maybe I'm not typing the right keywords.

💖 💪 🙅 🚩
kaozdev
KaozDev

Posted on September 27, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related