input :
example movieTitles = "spiderman"
getMovies(movieTitles).then(result => { console.log("list of " + movieTitles + " movies") console.log(result); console.log("total movies : " + result.length); });
output :
list of spiderman movies [ 'Fighting, Flying and Driving: The Stunts of Spiderman 3', 'Italian Spiderman', 'Spiderman', 'Spiderman 5', 'Spiderman in Cannes', 'Superman, Spiderman or Batman' ] total movies : 6