Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Calculator

0

49
Views
How do I console.log only the highestRated rating and the Movie-title of highestRated rating

I have been trying to out only the rating and title of the movie but when consolelog highestRated I keep on getting the full object. How do I console.log only the highestRated rating and the Movie-title of highestRated rating

sample output;

highest rated : Joker (10)

7 months ago · Juan Pablo Isaza
1 answers
Answer question

0

To get highestRated rating and highestRated movieTitle

// movieTitle
console.log(highestRated.movieTitle);
// rating
console.log(highestRated.rating);

// Output highest rated: Joker(10)
console.log(`highest rated : ${highestRated.movieTitle} (${highestRated.rating})`);
7 months ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2023 PeakU Inc. All Rights Reserved.