{"id":122153,"date":"2022-03-19T06:00:29","date_gmt":"2022-03-18T21:00:29","guid":{"rendered":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/?p=122153"},"modified":"2022-05-26T22:13:58","modified_gmt":"2022-05-26T13:13:58","slug":"javascript-arithmeticoperator","status":"publish","type":"post","link":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2022\/03\/javascript-arithmeticoperator.html","title":{"rendered":"\u3010JavaScript\u306e\u5165\u9580\u3011\u7b97\u8853\u6f14\u7b97\u5b50"},"content":{"rendered":"<p>\u591a\u304f\u306e\u6f14\u7b97\u5b50\u306f\u5b66\u6821\u306a\u3069\u3067\u65e2\u306b\u5b66\u3093\u3067\u304a\u308a\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u5834\u3067\u3082\u76f4\u611f\u7684\u306b\u4f7f\u7528\u3057\u3084\u3059\u3044\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u52a0\u7b97<code>+<\/code>\u3084\u6e1b\u7b97<code>-<\/code>\u306a\u3069\u306e\u7b97\u8853\u6f14\u7b97\u5b50\u3067\u3059\u3002<\/p>\n<p><code>+<\/code>\u306f\u3001\u6570\u5024\u540c\u58eb\u3092\u8db3\u3059\u305f\u3081\u306e\u5f79\u5272\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u306f\u6587\u5b57\u5217\u7d50\u5408\u6f14\u7b97\u5b50\u3084\u5358\u9805\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u3068\u547c\u3070\u308c\u308b\u305d\u306e\u4ed6\u306e\u6a5f\u80fd\u3082\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u4eca\u56de\u306f\u3001\u7b97\u8853\u6f14\u7b97\u5b50\u306e\u5f79\u5272\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2 class=\"style2c\">\u30aa\u30da\u30e9\u30f3\u30c9\u3068\u4e8c\u9805\/\u5358\u9805\u6f14\u7b97\u5b50<\/h2>\n<p>\u7b97\u8853\u6f14\u7b97\u5b50\u306e\u8aac\u660e\u306e\u524d\u306b\u3001\u307e\u305a\u30aa\u30da\u30e9\u30f3\u30c9\u3001\u4e8c\u9805\/\u5358\u9805\u6f14\u7b97\u5b50\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u77e5\u3063\u3066\u304a\u304f\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u6f14\u7b97\u5b50\u306f\u3001\u4f55\u304b\u3057\u3089\u5bfe\u8c61\u306e\u3082\u306e\u3092\u6301\u3061\u3001\u305d\u306e\u5bfe\u8c61\u306e\u3053\u3068\u3092\u30aa\u30da\u30e9\u30f3\u30c9\u3068\u547c\u3073\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u300c2 + 3\u300d\u3068\u3044\u3046\u52a0\u7b97\u6f14\u7b97\u3067\u306f\u3001\u300c+\u300d\u304c\u5bfe\u8c61\u3068\u3059\u308b\u300c2\u300d\u3068\u300c3\u300d\u304c\u30aa\u30da\u30e9\u30f3\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>2 + 3;\r\n<\/code><\/pre>\n<\/div>\n<p>\u3053\u308c\u3092\u6587\u5b57\u5316\u3057\u3066\u307f\u308b\u3068\u3001\u52a0\u7b97\u6f14\u7b97\u5b50\u306b\u5bfe\u3057\u3066\u3001\u524d\u3068\u5f8c\u308d\u306b\u30aa\u30da\u30e9\u30f3\u30c9\u304c\u3042\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<br \/>\n\u3053\u306e\u3088\u3046\u306b2\u3064\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u53d6\u308b\u6f14\u7b97\u5b50\u306e\u3053\u3068\u3092\u4e8c\u9805\u6f14\u7b97\u5b50\u3068\u547c\u3073\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ \u4e8c\u9805\u6f14\u7b97\u5b50\r\n\u524d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3000\u6f14\u7b97\u5b50\u3000\u5f8c\u308d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\r\n<\/code><\/pre>\n<\/div>\n<p>\u307e\u305f\u3001\u524d\u5f8c\u306e\u3069\u3061\u3089\u304b\u3060\u3051\u306b\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u53d6\u308b\u6f14\u7b97\u5b50\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306f\u3001\u524d\u7f6e\/\u5f8c\u7f6e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3068\u547c\u3070\u308c\u308b\u6f14\u7b97\u5b50\u3067\u3001\u6f14\u7b97\u5b50\u306e\u524d\u5f8c\u306b\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u7f6e\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ \u524d\u7f6e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\r\n++1;\r\n\/\/\u3000\u5f8c\u7f6e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\r\n1++;\r\n<\/code><\/pre>\n<\/div>\n<p>\u3053\u306e\u3088\u3046\u306b\u30011\u3064\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u53d6\u308b\u6f14\u7b97\u5b50\u306e\u3053\u3068\u3092\u5358\u9805\u6f14\u7b97\u5b50\u3068\u547c\u3073\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ \u5358\u9805\u6f14\u7b97\u5b50\r\n\u30aa\u30da\u30e9\u30f3\u30c9\u3000\u6f14\u7b97\u5b50\r\n\u6f14\u7b97\u5b50\u3000\u30aa\u30da\u30e9\u30f3\u30c9\r\n<\/code><\/pre>\n<\/div>\n<h2 class=\"style2c\">\u7b97\u8853\u6f14\u7b97\u5b50<\/h2>\n<p>\u7b97\u8853\u6f14\u7b97\u5b50\u306f\u3001\u4e3b\u306b\u6570\u5024\u7684\u306a\u8a08\u7b97\u3092\u884c\u3046\u305f\u3081\u306e\u8a18\u53f7\u3067\u3001\u4ee5\u4e0b\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u52a0\u7b97\u300c+\u300d<\/li>\n<li>\u6e1b\u7b97\u300c-\u300d<\/li>\n<li>\u4e57\u7b97\u300c*\u300d<\/li>\n<li>\u9664\u7b97\u300c\/\u300d<\/li>\n<li>\u5270\u4f59\u300c%\u300d<\/li>\n<li>\u3079\u304d\u4e57\u300c**\u300d<\/li>\n<\/ul>\n<h2 class=\"style2c\">\u4e8c\u9805\u6f14\u7b97\u5b50<\/h2>\n<p>\u3067\u306f\u30012\u3064\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u53d6\u308b\u7b97\u8853\u6f14\u7b97\u5b50\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"style3c\">\u52a0\u7b97\u6f14\u7b97\u5b50\uff08+\uff09<\/h3>\n<p>\u52a0\u7b97\u6f14\u7b97\u5b50\u306f\u3001\u6f14\u7b97\u5b50\u306e\u524d\u5f8c\u306b\u3042\u308b\u6570\u5024\u3092\u8db3\u3059\u6f14\u7b97\u5b50\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>console.log(2 + 3); \/\/ 5\r\n<\/code><\/pre>\n<\/div>\n<h3 class=\"style3c\">\u6587\u5b57\u5217\u7d50\u5408\u6f14\u7b97\u5b50\uff08+\uff09<\/h3>\n<p>\u6570\u5024\u3092\u52a0\u7b97\u3059\u308b\u305f\u3081\u306e\u52a0\u7b97\u6f14\u7b97\u5b50\u306f\u3001\u5c11\u3057\u7279\u5225\u3067\u3059\u3002<br \/>\n\u6570\u5024\u3067\u306f\u306a\u304f\u6587\u5b57\u5217\u306b\u9069\u7528\u3055\u308c\u305f\u5834\u5408\u306b\u306f\u3001\u304a\u4e92\u3044\u306e\u6587\u5b57\u5217\u3092\u7d50\u5408\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>console.log('Hello,' + ' World!'); \/\/ Hello, World!\r\n<\/code><\/pre>\n<\/div>\n<p>\u3064\u307e\u308a\u52a0\u7b97\u6f14\u7b97\u5b50\u306f\u3001\u6570\u5024\u540c\u58eb\u3001\u307e\u305f\u306f\u6587\u5b57\u5217\u540c\u58eb\u306b\u6f14\u7b97\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h3 class=\"style3c\">\u6e1b\u7b97\u6f14\u7b97\u5b50\uff08-\uff09<\/h3>\n<p>\u6e1b\u7b97\u6f14\u7b97\u5b50\u306f\u3001\u524d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u304b\u3089\u5f8c\u308d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u5f15\u304f\u6f14\u7b97\u5b50\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>console.log(7 - 2); \/\/ 5\r\n<\/code><\/pre>\n<\/div>\n<h3 class=\"style3c\">\u4e57\u7b97\u6f14\u7b97\u5b50\uff08*\uff09<\/h3>\n<p>\u4e57\u7b97\u6f14\u7b97\u5b50\u306f\u30012\u3064\u306e\u6570\u5024\u3092\u639b\u3051\u308b\u6f14\u7b97\u5b50\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>console.log(2 * 4); \/\/ 8\r\n<\/code><\/pre>\n<\/div>\n<h3 class=\"style3c\">\u9664\u7b97\u6f14\u7b97\u5b50\uff08\/\uff09<\/h3>\n<p>\u9664\u7b97\u6f14\u7b97\u5b50\u306f\u3001\u524d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u5f8c\u308d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3067\u5272\u308b\u6f14\u7b97\u5b50\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>console.log(10 \/ 5); \/\/ 2\r\n<\/code><\/pre>\n<\/div>\n<h3 class=\"style3c\">\u4e57\u9664\u6f14\u7b97\u5b50\uff08%\uff09<\/h3>\n<p>\u5270\u4f59\u6f14\u7b97\u5b50\u306f\u3001\u524d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u5f8c\u308d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3067\u5272\u3063\u305f\u969b\u306e\u4f59\u308a\u3092\u51fa\u3059\u6f14\u7b97\u5b50\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>console.log(4 % 2); \/\/ 0\r\nconsole.log(5 % 3); \/\/ 2\r\n<\/code><\/pre>\n<\/div>\n<h3 class=\"style3c\">\u3079\u304d\u4e57\u6f14\u7b97\u5b50\uff08**\uff09<\/h3>\n<p>\u3079\u304d\u4e57\u6f14\u7b97\u5b50\u306f\u3001\u524d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u5f8c\u308d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u56de\u6570\u639b\u3051\u308b\u6f14\u7b97\u5b50\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>console.log(2 ** 2); \/\/  4\uff082\u306e2\u4e57\uff09\r\nconsole.log(3 ** 5); \/\/ 243\uff083\u306e5\u4e57\uff09\r\n<\/code><\/pre>\n<\/div>\n<h2 class=\"style2c\">\u5358\u9805\u6f14\u7b97\u5b50<\/h2>\n<p>\u6b21\u306b\u30011\u3064\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u53d7\u3051\u53d6\u308b\u7b97\u8853\u6f14\u7b97\u5b50\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"style3c\">\u5358\u9805\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\uff08+\uff09<\/h3>\n<p>\u5358\u9805\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u306f\u3001\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u6570\u5024\u306b\u5909\u63db\u3059\u308b\u6f14\u7b97\u5b50\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>console.log(+1); \/\/ 1\r\n<\/code><\/pre>\n<\/div>\n<p>\u6570\u5024\u306b\u5bfe\u3057\u3066\u5358\u9805\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u3092\u4f7f\u3063\u3066\u3082\u3001\u7d50\u679c\u306f\u8a18\u8ff0\u3057\u305f\u6570\u5024\u304c\u8fd4\u308b\u3060\u3051\u3067\u3042\u308a\u3001\u30e1\u30ea\u30c3\u30c8\u306f\u307b\u307c\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u3057\u304b\u3057\u3001\u6570\u5024\u4ee5\u5916\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u5bfe\u8c61\u3068\u3059\u308b\u3068\u3001\u6570\u5024\u306b\u5909\u66f4\u3067\u304d\u308b\u3082\u306e\u306f\u6570\u5024\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>console.log(+'23'); \/\/ 23\r\n<\/code><\/pre>\n<\/div>\n<p>\u6570\u5024\u306b\u5909\u63db\u3067\u304d\u306a\u3044\u3082\u306e\u306f\u3001NaN\u3068\u3044\u3046\u7279\u6b8a\u306a\u5024\u306b\u5909\u63db\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>console.log(+'string'); \/\/ NaN\r\n<\/code><\/pre>\n<\/div>\n<h3 class=\"style3c\">\u5358\u9805\u30de\u30a4\u30ca\u30b9\u6f14\u7b97\u5b50\uff08-\uff09<\/h3>\n<p>\u5358\u9805\u30de\u30a4\u30ca\u30b9\u6f14\u7b97\u5b50\u306f\u3001\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u8ca0\u306e\u6570\u5024\u306b\u5909\u63db\u3059\u308b\u6f14\u7b97\u5b50\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>console.log(-5); \/\/ -5\r\n<\/code><\/pre>\n<\/div>\n<p>\u5358\u9805\u30de\u30a4\u30ca\u30b9\u6f14\u7b97\u5b50\u3082\u3001\u6570\u5024\u4ee5\u5916\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3067\u6570\u5024\u306b\u5909\u63db\u3067\u304d\u308b\u3082\u306e\u306f\u6570\u5024\u306b\u5909\u63db\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>console.log(-'5'); \/\/ -5\r\nconsole.log(-'string'); \/\/ NaN\r\n<\/code><\/pre>\n<\/div>\n<h3 class=\"style3c\">\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u6f14\u7b97\u5b50\uff08++\uff09<\/h3>\n<p>\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u6f14\u7b97\u5b50\u306f\u3001\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u6570\u5024\u30921\u5897\u3084\u3059\u6f14\u7b97\u5b50\u3067\u3059\u3002<br \/>\n\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u524d\u307e\u305f\u306f\u5f8c\u308d\u306b<code>++<\/code>\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ \u524d\u7f6e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\r\n++\u6570\u5024\uff08\u30aa\u30da\u30e9\u30f3\u30c9\uff09\r\n\/\/ \u5f8c\u7f6e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\r\n\u6570\u5024\uff08\u30aa\u30da\u30e9\u30f3\u30c9\uff09++\r\n<\/code><\/pre>\n<\/div>\n<p>\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u6f14\u7b97\u5b50\u306f\u3001\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u524d\u5f8c\u306e\u3069\u3061\u3089\u306b\u7f6e\u304f\u304b\u306b\u3088\u3063\u3066\u3001\u8a55\u4fa1\u306e\u9806\u756a\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u524d\u7f6e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u306f\u3001\u5909\u6570num\u306b\u5bfe\u3057\u3066\u5148\u306b+1\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n\u305d\u306e\u5f8c\u3001num\u306e\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ \u524d\u7f6e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\r\nlet num = 1;\r\nconsole.log(++num); \/\/ 2\r\nconsole.log(num); \/\/ 2\r\n<\/code><\/pre>\n<\/div>\n<p>\u4e00\u65b9\u3001\u5f8c\u7f6e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u306f\u3001\u5148\u306b\u5909\u6570num\u306e\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\u305d\u306e\u5f8c\u3001num\u306b\u5bfe\u3057\u3066+1\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ \u5f8c\u7f6e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\r\nlet num = 1;\r\nconsole.log(num++); \/\/ 1\r\nconsole.log(num); \/\/ 2\r\n<\/code><\/pre>\n<\/div>\n<p>\u3069\u3061\u3089\u3082\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u6570\u5024\u30921\u5897\u3084\u3059\u3053\u3068\u306b\u5909\u308f\u308a\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u8a55\u4fa1\u306e\u9806\u756a\u304c\u7570\u306a\u308b\u3053\u3068\u3092\u899a\u3048\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"style3c\">\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u6f14\u7b97\u5b50\uff08&#8211;\uff09<\/h3>\n<p>\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u6f14\u7b97\u5b50\u306f\u3001\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u6570\u5024\u30921\u6e1b\u3089\u3059\u6f14\u7b97\u5b50\u3067\u3059\u3002<br \/>\n\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u524d\u307e\u305f\u306f\u5f8c\u308d\u306b<code>--<\/code>\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ \u524d\u7f6e\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\r\n--\u6570\u5024\uff08\u30aa\u30da\u30e9\u30f3\u30c9\uff09\r\n\/\/ \u5f8c\u7f6e\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\r\n\u6570\u5024\uff08\u30aa\u30da\u30e9\u30f3\u30c9\uff09--\r\n<\/code><\/pre>\n<\/div>\n<p>\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u6f14\u7b97\u5b50\u3082\u3001\u524d\u7f6e\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u304b\u5f8c\u7f6e\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u304b\u306b\u3088\u3063\u3066\u3001\u8a55\u4fa1\u306e\u9806\u756a\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ \u524d\u7f6e\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\r\nlet num = 1;\r\nconsole.log(--num); \/\/ 0\r\nconsole.log(num); \/\/ 0\r\n\r\n\/\/ \u5f8c\u7f6e\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\r\nlet num = 1;\r\nconsole.log(num--); \/\/ 1\r\nconsole.log(num); \/\/ 0\r\n<\/code><\/pre>\n<\/div>\n<h2 class=\"style2c\">\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306f\u3001\u4e8c\u9805\/\u5358\u9805\u6f14\u7b97\u5b50\u3092\u4ea4\u3048\u306a\u304c\u3089\u3001\u7b97\u8853\u6f14\u7b97\u5b50\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u7b97\u8853\u6f14\u7b97\u5b50\u306f\u3001\u5358\u7d14\u306a\u8db3\u3057\u7b97\u3084\u5f15\u304d\u7b97\u3092\u884c\u3046\u56db\u5247\u6f14\u7b97\u306b\u4f7f\u308f\u308c\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u5024\u306b1\u3092\u5897\u6e1b\u3055\u305b\u308b\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u5f79\u5272\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>\/\/ \u30ad\u30fc\u30ef\u30fc\u30c9\r\n* \u30aa\u30da\u30e9\u30f3\u30c9\r\n* \u4e8c\u9805\u6f14\u7b97\u5b50\uff08\u52a0\u7b97\u3001\u6e1b\u7b97\u3001\u4e57\u7b97\u3001\u9664\u7b97\u3001\u5270\u4f59\u3001\u3079\u304d\u4e57\uff09\r\n* \u5358\u9805\u6f14\u7b97\u5b50\uff08\u5358\u9805\u30d7\u30e9\u30b9\/\u30de\u30a4\u30ca\u30b9\u3001\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\/\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\uff09\r\n<\/code><\/pre>\n<\/div>\n<p>\u307e\u305a\u306f\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u982d\u306b\u5165\u308c\u3001\u5b9f\u969b\u306b\u4f7f\u3044\u306a\u304c\u3089\u305d\u308c\u305e\u308c\u306e\u5f79\u5272\u3092\u899a\u3048\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 class=\"style5\">\u5408\u308f\u305b\u3066\u8aad\u307f\u305f\u3044\u6f14\u7b97\u5b50\u5165\u9580\u30b7\u30ea\u30fc\u30ba<\/h2>\n<p>\u7b2c1\u56de\uff1a<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2022\/03\/javascript-operator-priority.html\"><strong>\u6f14\u7b97\u5b50\u306e\u512a\u5148\u9806\u4f4d<\/strong><\/a><br \/>\n\u7b2c2\u56de\uff1a<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2021\/05\/javascript-operators.html\"><strong>\u6f14\u7b97\u5b50\u306e\u7a2e\u985e\u3068\u5f79\u5272<\/strong><\/a><br \/>\n\u7b2c3\u56de\uff1a<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2022\/03\/javascript-arithmeticoperator.html\"><strong>\u7b97\u8853\u6f14\u7b97\u5b50<\/strong><\/a>\uff08\u5f53\u8a18\u4e8b\uff09<br \/>\n\u7b2c4\u56de\uff1a<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2022\/03\/javascript-assignmentoperator.html\"><strong>\u4ee3\u5165\u6f14\u7b97\u5b50<\/strong><\/a><br \/>\n\u7b2c5\u56de\uff1a<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2022\/03\/javascript-comparisonoperator.html\"><strong>\u6bd4\u8f03\u6f14\u7b97\u5b50<\/strong><\/a><br \/>\n\u7b2c6\u56de\uff1a<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2022\/03\/javascript-logicaloperator.html\"><strong>\u8ad6\u7406\u6f14\u7b97\u5b50<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\u591a\u304f\u306e\u6f14\u7b97\u5b50\u306f\u5b66\u6821\u306a\u3069\u3067\u65e2\u306b\u5b66\u3093\u3067\u304a\u308a\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u5834\u3067\u3082\u76f4\u611f\u7684\u306b\u4f7f\u7528\u3057\u3084\u3059\u3044\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u52a0\u7b97+\u3084\u6e1b\u7b97-\u306a\u3069\u306e\u7b97\u8853\u6f14\u7b97\u5b50\u3067\u3059\u3002 +\u306f\u3001\u6570\u5024\u540c\u58eb\u3092\u8db3\u3059\u305f\u3081\u306e\u5f79\u5272\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u306f\u6587\u5b57\u5217\u7d50\u5408\u6f14\u7b97\u5b50\u3084\u5358\u9805\u30d7 [&hellip;]","protected":false},"author":1,"featured_media":123919,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1141],"tags":[964],"class_list":["post-122153","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript-intro","tag-javascript"],"_links":{"self":[{"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/posts\/122153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/comments?post=122153"}],"version-history":[{"count":0,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/posts\/122153\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/media\/123919"}],"wp:attachment":[{"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/media?parent=122153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/categories?post=122153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/tags?post=122153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}