-2
I have a question that is consuming me here concerning this little piece of code:
let word = "APPLE"
//CONVERTED TO ARRAY
let res = word.slice(3,5)
//RES = LE
let res1 = res.split("")
//REVERSE THE ARRAY NOW IS "E,L"
let res2 = res1.reverse()
//MERGE INTO A STRING
let res3 = res2.toString()
//FINALLY RETURN INTO "E L"
I want you to go out on the "E L" console, instead of "E,L," I want a space between the lyrics, I tried a lot of method and I couldn’t, please if anyone can help me I would be very grateful
It is not better to use
.join(' ')
?– MarceloBoni
Uncaught Typeerror: res3.Join is not a Function at <Anonymous>:1:6 this message appears on the console
– Saul44
IS
res2.join
...– hkotsubo