LoginSignup
0
1

More than 3 years have passed since last update.

[JavaScript] すごく初歩のJavaScript (コメントアウト,省略形,テンプレートリテラル)

Last updated at Posted at 2020-12-08

JavaScript (コメントアウト,省略形,テンプレートリテラル)

JavaScript 自分用の覚え書きです。

script.js
// ←はコメントアウトのマーク

// 計算式の省略形
number = number + 3;
number += 3;

number = number / 2;
number /= 2;

// テンプレートリテラル
const name = "佐藤";
console.log(`名前は${name}です`);
0
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
0
1