JSFiddle - React, Tailwind, and code Playground
by GioLogist
HTML
<div id="wtf">
</div>
JavaScript
function otherFunc(arr,str){
arr[0] = 'logist'
str = 'after'
}
let func = function(){
let arr = ['amy','becky']
let str = 'before'
let test = otherFunc(arr, str)
document.getElementById('wtf').innerText = `${arr} - ${str}`
}()