요소

반응형

    Node.JS)04.19( ObjectArray(객체 배열), 구조 분해, 배열 요소 추출 )

    목차 2022.04.20 - [Programming/BACKEND] - Node.JS)04.19( Array(배열) : 배열의 요소 추가/제거 방법 ) 1. ObjectArray 객체 배열 1.1. 객체를 배열의 요소로 추가 function Student(name, korean, math, english, science){ this.name = name; this.kor = korean; this.math = math; this.english = english; this.science = science; this.getSum = function(){ return this.kor + this.math + this.english + this.science; } this.getAvg = function(){ ..

반응형