Skip to content

Commit 8469084

Browse files
committed
weired comparisonはview soruceのままに
1 parent 4b04494 commit 8469084

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!doctype html>
2+
<html lang="ja">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Title</title>
6+
</head>
7+
<body>
8+
<script src="./script.js"></script>
9+
</body>
10+
</html>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
let takaoHeight = 599;
2+
let everestHeight = 8849;
3+
let fujiHeight = 3776;
4+
document.write(takaoHeight < everestHeight < fujiHeight);
5+
// prettier-ignore
6+
document.write(takaoHeight = everestHeight);

docs/1-trial-session/07-boolean/index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ document.write(takaoHeight = everestHeight);
9898
- JavaScript で、数値と論理値に比較<Term>演算子</Term>を適用すると、`true``1`として、`false``0`として比較されます。
9999
- `=`は代入演算子です。代入<Term>演算子</Term>の<Term>式</Term>が<Term>評価</Term>されると、右辺の<Term>値</Term>になります。
100100

101+
<ViewSource url={import.meta.url} path="_samples/weird-comparison" />
102+
101103
:::
102104

103105
## 演習問題

0 commit comments

Comments
 (0)