I have some names. ( last name , first name )I want to show that as ( first name , last name )I tried but cannot figure how out to write code in javascript to dothat. Can anyone please give me any clue.
Look at the split() function and then it should becomevery clear.
<script>function showNames(last, first){alert(first + ' ' + last);}</script>