Skip to content
Snippets Groups Projects
Commit 7324d798 authored by Bastien's avatar Bastien
Browse files

classe film

parent 64ab8941
No related branches found
No related tags found
No related merge requests found
module.exports = class Movie{
constructor(id, name, author, note){
constructor(id, name, note){
this.id = id;
this.name = name;
this.note = note;
......@@ -26,6 +26,6 @@ module.exports = class Movie{
*/
toMovie(param){
return new Movie;
return new Movie(param.tconst,param.primaryTitle, param.note);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment