SOURCE

console 命令行工具 X clear

                    
>
console
Array.prototype.Ucase = function(){
	for(var i = 0; i< this.length; i++){
		this[i] = this[i].toUpperCase();
	}
}

function myFunc(){
	var fruit = ['apple','melon','banana','orange'];
	fruit.Ucase();
	var x = document.getElementById('demo');
	x.innerHTML = fruit;
}
<p id="demo">显示</p>
<button onclick="myFunc()">点我</button>