Thanks! Did you test this? You've only changed the loadFromJSON method, which is used by the unit tests. The loadfromXML method is used when an exam is displayed in a browser. It would make more sense to clean the value of this.marks in the finaliseLoad method, which runs after loading, whichever loading method is used.
Thanks! Did you test this? You've only changed the
loadFromJSON
method, which is used by the unit tests. TheloadfromXML
method is used when an exam is displayed in a browser. It would make more sense to clean the value ofthis.marks
in thefinaliseLoad
method, which runs after loading, whichever loading method is used.