0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【javascript】【jQuery】文字列を結合代入する += を使う 数値を加算減算する

Last updated at Posted at 2022-06-29

コード

process.stdin.resume();
process.stdin.setEncoding('utf8');
let results = [
    {'name' : '田中,',  'japanese' : 83},
    {'name' : '渡部,',  'japanese' : 62},
    {'name' : '品川,',  'japanese' : 23},
    {'name' : '滝谷,',  'japanese' : 93},
    {'name' : '川原田,','japanese' : 55},
    {'name' : '一色',  'japanese' : 27},
];
let name = '';
results.forEach((result) => {
   name += result.name
})
console.log(name);

結果

田中,渡部,品川,滝谷,川原田,一色

コード

process.stdin.resume();
process.stdin.setEncoding('utf8');
currentValue -= 4;
currentValue += 4;
0
0
2

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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?