お題はここから
<!DOCTYPE html>
<html lang="ja">
<script>
zzz = [100,500,"aiueo",1000,"JavaScript",3000,"プログラミング"]
for ( i = 0; i < zzz.length; i++) {
if(isNaN(zzz[i])) {
console.log(zzz[i]);
} else {
}
}
</script>
</html>
<!DOCTYPE html>
<html lang="ja">
<button id="btn">変化</button>
<script>
const btn = document.getElementById('btn');
btn.addEventListener('click', () => {btn.textContent = '押されました';})
</script>
</html>
mouseoverした版
<!DOCTYPE html>
<html lang="ja">
<button id="btn">変化</button>
<script>
const btn = document.getElementById('btn');
btn.addEventListener('mouseover', () => {btn.textContent = '押されました';})
</script>
</html>