We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bdb2c0 commit a70b65fCopy full SHA for a70b65f
docs/1-trial-session/10-loop/_samples/index.html
@@ -0,0 +1,10 @@
1
+<!doctype html>
2
+<html lang="ja">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>ネストされたループ</title>
6
+ </head>
7
+ <body>
8
+ <script src="./script.js"></script>
9
+ </body>
10
+</html>
docs/1-trial-session/10-loop/_samples/script.js
@@ -0,0 +1,5 @@
+for (let x = 0; x < 5; x += 1) {
+ for (let y = 0; y < 5; y += 1) {
+ document.write(`(x, y) = (${x}, ${y})<br>`);
+ }
+}
docs/1-trial-session/10-loop/index.mdx
@@ -135,6 +135,8 @@ for (let x = 0; x < 5; x += 1) {
135
}
136
```
137
138
+<ViewSource url={import.meta.url} path="_samples/nested-loop" />
139
+
140
:::tip[テンプレートリテラル]
141
142
テンプレートリテラルは、文字列をプログラム中に記述する方法の一種です。ただ、文字列中に別の式を埋め込めるという特徴があります。
0 commit comments