Code:
<script language="javascript">
function xyz(){
//var arr = new Array('Italy','France','Bangladesh','UK','USA');
var arr = new Array(50,70,10,20,30);
arr.sort();
alert(arr);
}
</script>
<input type="button" value ="Sort Array" onClick="xyz()" />
Comments
Post a Comment