2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

これからはJavaScript勉強しよう 2回目 3回目

Last updated at Posted at 2024-03-22

お題はここから

<!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>
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?