issues
search
oldoc63
/
learningFS
Web development back and front
0
stars
0
forks
source link
Create a setter for numberOfStudents
#975
Open
oldoc63
opened
2 years ago
oldoc63
commented
2 years ago
Create a setter for numberOfStudents. The method should first check if the input (newNumberOfStudents) is a number.
If it is a number, then set the numberOfStudents property. If not, log, 'Invalid input: numberOfStudents must be set to a number.'