Codemoji

Your code ยท JS

var arr = [10, 12, 5, 3, 8]; is the unsorted array.

Output

Press โ–ถ Run - whatever your code prints with console.log shows up here.