varは初期値を与えずに宣言だけすると、最初はundefinedの状態。 var x console.log(x) // undefined var x = 10 // 初期値を与える例1console.log(x) // 10 var x = “abc” // 初期値を与える例2console.log(x) // abc varは毎回新しく変数を宣言する。 {}の…
左辺がなくてもいい。=がなくてもいい。 プログラミング初心者なので、まだ感覚的に体得できていない感じがある。 いままでは、 配列を数値に変換して計算させたり、 この条件ならば計算Aそれ以外は計算Bなど、 計算をするプログラムが多かった。 つまり va…
Values -* string : 文字列 var x = "abc", var x = "10", var x = "false"-* number: 数字 var x = 10-* boolean: 真偽値 var x = true または var x = false-* null: 何もない var x = null-* undefined: 未定義 var x; - Object - * function: 関数 var x…
・絶対値に変換する Math.abs ・値の分割var nums = line.split(" "); // lineに入った文字列をスペース文字で分解 ・改行コード /n ・改行で分割する 【JavaScript入門】split()で文字列の分割&正規表現の活用法まとめ! | 侍エンジニア塾ブログ | プログ…
2018年 12月 paiza転職、というサイトのD問題 105問全部。 udemy Javascript video 呪文一覧作成 階乗 閏年 2019年 1月 2月 4月開始のBoot Camp 申し込める段階にあるか判断 3月
さっきアップしたやつ、もう絶滅しかかってるやり方でやってたらしい。虚。 ahochauyo.hatenablog.com てことで、現役のやり方に修正しました。 Modified code JavaScript function loop(){ var n = document.getElementById("nb").value; var x = n; while(x…
次の課題はこんなかんじでした。ちょっと時間かかったなあ。 テキストボックスを一つ用意して、 そこに打ち込んだ数字を1000を超えるまで自分の累乗をしていって、その都度途中の値をconsole.logで出力するプログラムを作る 例えば5って打ち込まれてなんかex…
次の課題はこんなかんじ。 テキストボックスを二つ用意して 一つ目のテキストボックスに打ち込まれた文字を二つ目のテキストボックスに打ち込まれた回数alertで繰り返し表示してみて 例えば test 3 って二つ打ち込まれとったら testって書いたアラートが3回…
次の課題はこんなかんじ。 四則演算のやついこ 数字を入れるテキストボックス2つと、その間に+,-, x, ÷を選べるセレクタを用意して、 ボタン押したら計算結果をアラートしよかほしたら Language HTML/ Javascript My code <html lang="en"> <head> <meta charset="utf-8"> <title>Arithmetic</title> </head> <body> <form id="arthmetic"> <input type="text" id="n1"> <select id="op"> </select></form></body></html>
今現在3つめの課題でちょっと苦戦中。ある程度コードを書いたが、なにかが呼ばれていない模様で 動作しない。 そこで、タイトルのとおり、console.log() なるものがあるよと教えてもらう。 右クリックするとでてくるInspectの画面をつかう。 右側のやつ 上の…
前回記事をdocumentを使わずにやってみようという話。 ahochauyo.hatenablog.com Language HTML CSS Javascript Code HTML/ Javascript <html lang="en"> <head> <meta charset="utf-8"> <title>googrun</title> <link rel="stylesheet" href="stylesheet.css"> </head> <body> <div class="container"> </div></body></html>
次の課題はこんなかんじ。 テキストボックスに何か入力してボタン押したら テキストボックスの中に入れた文字がアラートで表示されるように 前回検索ボックスをつくったのでそのまま流用することに。 Language HTML (前回分から一部変更) CSS (前回分から変…
最初の課題はグーグルみたいなトップページをつくるというチャレンジ。ボタンを押したらどこかに飛ぶ、などの動きはなし。見た目のみ。 Language HTMLCSS My code HTML <html lang="en"> <head> <meta charset="utf-8"> <title>googrun</title> <link rel="stylesheet" href="stylesheet.css"> </head> <body> <div class="container"> <img src="googrun.jpg" alt="logo"> <…</div></body></html>
必ず、CSS classごとに、display: flex; というpropertyを忘れないように。 これはHTMLでいう開始タグみたいなもので、 この宣言をしないと、flexboxは効かない。 参考までに自分のCSSで解説すると、赤字をぬかして青字だけ書いてました。 .container { disp…
友人のエンジニアの人に少し前から手ほどきをしてもらっている ネットの情報や、ベルリンでBoot campに参加され大胆なキャリアチェンジを成功させた佐藤さんのブログを参考にさせていただき、自分も目標は1000時間にしようとおもう。 来年の春か夏でBoot cam…
Recently, my situation has changed dynamicaly. I am working as a full-time worker at the cafe, and have quited another part-time job. The cafe's shifts are totally randam, so I'm dialing my rythm now, still doing. By the way, yesterday, I …
My husband will go to Shanghai next year for a year. But the visa is only for him not for family. So what should I do? Going back to Japan? I think South East Asia is good. Thailand or the Phillipines? During staying in Canada I would lear…
I had a bad stiff neck on the right side. The fatigue is spreaded from head muscle to under back. Working as a barista and being on the computer for prolonged time are causes, I guess. Sometimes I do stretching or rotating neck and shoulde…
Happy Friday! It'll be busy today. I'll have new hair color and highlights, go to a walk-in clinic, and go to work. When I woke up today, I felt somethig in my throat. Ohh, not good. From next Monday night, my husband is coming! he'll stay…
Uninformed construction suddenly started yesterday. They did something for water pype. Water stopped. At night water resumed. BUT it stopped again in this morning. The street had filled up water and city staff came here... Still water outa…
I've got my new planner for 2019!! I have loved scheduling. And also I love taking note. Two month ago, I started taking accountability, taking what I've done into blank note, always moleskine plain large size, every single day. It was ama…
My friends invited me to her "friendsgiving party". It was so beautiful. It was actually vegan party, but I made regular meal and vege one. Oh that seemed to be fine because I didn't know that was vegan party but..I felt bad. While Japanes…
It was such a beautiful day.... One of my friends invited me to her Thanksgiving dinner at her home. That was so private party, except for me, everyone was her family, grandfather, parents, sister, cousin, boyfriend, sposes. My eyes were t…
I had a bad hsadache again an threw up. I don't know why. I am oviously not sick. Perhaps, shoulder stiff? I have some tension on my head, neck and upper back, espeially right side. --- 一昨夜、頭痛がひどくて吐いてしまった。特に理由はわか…
I'm a practical person. And I had spent poor time when I was junior high and high school because of father's problem. So I usually don't take risks. I always prepare somthing for just in case. Now, I the cafe offered me extra shifts. But t…
Why many things happen at the same time?? I had a first job of new part-time job, because my cafe owner informed me to cut shifts in winter time. But the cafe owner offered me more shifts, because one of my work friends has decided to leav…
I write two paes notes ro blank pages everyday. That's not a diary, that's a recording. I write what I've done on the left page, and recent tasks on the top of the right page. And then, I write the review of the day on the next day. It had…
木の葉の色が秋めいてきました Good morning! I've started to read "The power of when" like I said testerday. Only for looking through raghly some contents which relate to my and mu husband's type. My type is Lion, and his type is Bear. And n…
Do you know your Chronotype?? I am really into this kinds of quiz!Cnsiquently, my chronotype is Lion. My next book will be this one. The Power of When: Discover Your Chronotype--and the Best Time to Eat Lunch, Ask for a Raise, Have Sex, Wr…
Reading is a great way to learn English for me. Recent my favourites are "TIME FOR KIDS"!! Those are written in easy English. Contents are pretty informative. For example, Why does my foot fall asleep? Messages between your brain and the r…