let str = "JavaScript"; console.log(scramble(str)); function scramble(val) { let max = val.length; let temp = ""; for(let i=0;i