We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. Tutorials
  3. 10 Days of Javascript
  4. Day 1: Let and Const
  5. Discussions

Day 1: Let and Const

Problem
Submissions
Leaderboard
Discussions
Editorial
Topics

Sort 176 Discussions, By:

recency

Please Login in order to post a comment

  • xXxAboodxXx
    1 week ago+ 0 comments
    let PI = Math.PI
        let r = readLine()
        console.log((PI * Math.pow(r,2)))
        console.log(2 * PI * r)
        return 1
    
    0|
    Permalink
  • manjunathpy05
    2 weeks ago+ 0 comments

    const PI = Math.PI; let r = parseFloat(readLine()); // Print the area of the circle: let area = PI * r * r; console.log(area); // Print the perimeter of the circle: let perimeter = 2 * PI * r; console.log(perimeter);

    0|
    Permalink
  • manjunathpy05
    2 weeks ago+ 0 comments

    const PI = Math.PI; let r = parseFloat(readLine()); // Print the area of the circle: let area = PI * r * r; console.log(area); // Print the perimeter of the circle: let perimeter = 2 * PI * r; console.log(perimeter);

    0|
    Permalink
  • awoladhosen2022
    2 weeks ago+ 0 comments

    function main() { // Write your code here. Read input using 'readLine()' and print output using 'console.log()'. const PI = Math.PI; // Math.P****I means (π=Math.PI) let r = readLine(); // Print the area of the circle: console.log(PI * (r2)); //the area of the circle means = πr^2 // Print the perimeter of the circle: console.log(2*PI*r); //the perimeter of the circle means =2πr

    0|
    Permalink
  • financelearning1
    2 months ago+ 0 comments

    Here are the solution of Day 1: Let and Const | 10 Days of JavaScript – Hacker Rank Solution https://www.chase2learn.com/day-1-let-and-const-10-days-of-javascript-hacker-rank-solution/

    0|
    Permalink
Load more conversations

Need Help?


View editorial
View top submissions
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy