回答編集履歴
2
修正
test
CHANGED
@@ -7,5 +7,6 @@
|
|
7
7
|
もしくはデフォルト値を設定しておくとか
|
8
8
|
```javascript
|
9
9
|
var count = Cookies.get("count")??null;
|
10
|
-
if(
|
10
|
+
if(count === null){
|
11
11
|
```
|
12
|
+
※すみません、表記間違えてたので修正しました
|
1
調整
test
CHANGED
@@ -4,3 +4,8 @@
|
|
4
4
|
↓↓↓
|
5
5
|
if(typeof count === "undefined"){
|
6
6
|
```
|
7
|
+
もしくはデフォルト値を設定しておくとか
|
8
|
+
```javascript
|
9
|
+
var count = Cookies.get("count")??null;
|
10
|
+
if(typeof count === null){
|
11
|
+
```
|