Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

replace js

function spinWords(pw){
	let a = ''
    if(pw.length <= 5){
      a +=pw.split("").reverse()
      console.log(a.replaceAll(',' , ''))
    }else {
      console.log("olá")
    }
}

let hey = "hello";
spinWords(hey) // olleh
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #replace #js
ADD COMMENT
Topic
Name
7+4 =