1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【備忘録】Udemy講座まとめ JavaScript vol.1

Posted at

算術演算子

JavaScript
result = result + 5;
result += 5;

上の2つは同じ意味

クウォートの中の改行

JavaScript
string = 'Hello\nWorld'
string = `Hello
World`;

バッククウォートでは、そのまま改行ができる

文字列と型の変換

JavaScript
const useInput = '10';
let calcResult;
calcResult = Number(useInput) + 10;

useInputは、文字列のままなので、Number()を使って数字に型を変換する

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?