const num = [4, 1, 63, 8, 5, 100, 9, 75];

console.log('Before');
console.log(num);
console.log(`\n----------------------------------------------\n`);


const sort2 = num.sort();

console.log(`returns element: ${sort2}`);
console.log('\nAfter');
console.log(num);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://codepen.io/nullobject/pen/cngzI.js