関数宣言文の方は仮引数パラのメーターですね!【Day65 of 100】

https://www.udemy.com/course/javascript-complete

思い切ってUdemyの講座購入しました(と行っても買い切り1500円なんですけどね)

なんと46時間以上の講座でたった1500円、、、。恐ろしいです。そして今のところとても内容もわかりやすい。充実している!


gitのコマンド、だいぶ分かってきた

git add .でステージに。ステージ前ならgit restoreで戻す。git commit -m ブラブラブラでメッセージ追加しながらコミット

今日書店で読んだ本がすごくまとまっててgitの基本的な使い方がだいぶ頭に入った

git status見るだけ。確認
ワークツリー↓
git restore (git add前なら変更を元に戻す)
git add .↓
ステージングエリア↓
git status見るだけ。確認
git commit -m "aaa"↓
Git ディレクトリ
ここからgithubにプッシュするのはVS Codeの青ボタンでいまのところやる、。

変更ファイル:html_ver/index24.html, html_ver/index24.js

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Udemy Sec. 2</title>
<!-- ソース属性をつけると中のjsはすべて無視される -->
<script src="index24.js">
alert("bad aho");
</script>
</head>
<body>
<h1>Udemy Sec. 2</h1>
</body>
</html>

'use strict';
let count = 5;
console.log(count);
count = 30;
console.log(count);
let newCount = 0;
const daysInWeek = 7;
console.log(daysInWeek);
let tomatoCount;
let tonatocount;
let $tomatoCount;
let _tomatoCount;
let __tomatoCount;
let tomatoCount7;
let add = 2 * 4;

関数宣言文の方は仮引数パラ(仮の補助的な)メーター。呼び出しの関数はargument実態のある実引数

変更ファイル:html_ver/index24.html, html_ver/index24.js

        <div>
            <a
                href="https://www.udemy.com/course/javascript-complete/learn/lecture/32337068#notes"
                >https://www.udemy.com/course/javascript-complete/learn/lecture/32337068#notes</a
            >
        </div>
        <div>何を学習したかはコンソールログを見てね</div>

console.log(array[3][1]);
array = [];
array.push('apple');
console.log(array);
const coffee = {
    name: 'Chololate Mocha',
    size: 350,
    isHot: true,
    toppings: ['Cinammon', 'Caramel'],
    nutritions: {
        calories: 430,
        sugar: 53,
    },
};
console.log(coffee);
console.log(coffee.nutritions.sugar);
coffee.isHot = false;
console.log(coffee.isHot);
coffee.barista = 'ちゃんやま';
coffee.staff = 'ごま';
console.log(coffee);
let userInfo = null;
console.log(typeof userInfo);

今日の振り返り

コミット2本でまとまった実装ができました。各変更の意図を理解しながら進めることで、コードの構造に対する理解が深まってきています。


今日の成果物 🎉

成果物スクリーンショット

👉 https://kiyo4810.github.io/autocal/html_ver/index24.html


コメントを残す

猫でデザインとプログラミングを学ぶをもっと見る

今すぐ購読し、続きを読んで、すべてのアーカイブにアクセスしましょう。

続きを読む