We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4fc2885 + 3b285b9 commit 1e85f98Copy full SHA for 1e85f98
3 files changed
docs/1-trial-session/08-loop/_samples/is-prime-using-and/script.js
@@ -1,4 +1,4 @@
1
-let n = 89; //任意の整数
+const n = 89; //任意の整数
2
3
let isPrime = true;
4
if (n <= 1) {
docs/1-trial-session/08-loop/_samples/is-prime/script.js
-let n = 57; // 任意の整数
+const n = 57; // 任意の整数
docs/1-trial-session/08-loop/index.md
@@ -248,7 +248,7 @@ document.write(product);
248
変数の、最後に代入した値のみを保持する性質を利用します。
249
250
```javascript
251
252
253
254
@@ -276,7 +276,7 @@ if (isPrime) {
276
前項で割ったあまりが0でないこととの `&&` (AND) をとることで帰納的に求めることもできます。
277
278
279
-let n = 89; // 任意の整数
+const n = 89; // 任意の整数
280
281
282
0 commit comments