The newAssignment method is a function that creates a new assignment object with specified parameters. It is used to add assignments to a program or system.
Think of the newAssignment method as creating a blank canvas for an assignment. Just like how you start with a blank piece of paper before drawing or writing, the newAssignment method sets up the structure and properties of an assignment before any content is added.
submitAssignment method: This method allows students to turn in their completed assignments for grading.
getGradeDecimal method: This method retrieves the grade for an assignment as a decimal value, which can be useful for calculations or comparisons.
assignment object: An assignment object represents an individual assignment and contains information such as its title, due date, and point value.
Study guides for the entire semester
200k practice questions
Glossary of 50k key terms - memorize important vocab
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.