Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var fruits = ["Banana", "Orange", "Apple", "Mango"];
- document.getElementById("demo").innerHTML = fruits;
- function myFunction() {
- fruits.sort();
- document.getElementById("demo").innerHTML = fruits;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement