question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typo in challenge code: calulateCircumference

See original GitHub issue

Challenge use-the-const-keyword has an issue. User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:51.0) Gecko/20100101 Firefox/51.0. Please describe how to reproduce this issue, and include links to screenshots if possible.

There is typo in “calulateCircumference” - should be “calculateCircumference”.



// change 'var' to 'let' or 'const'
// rename constant variables
var pi = 3.14;
var radius = 10;
var calulateCircumference = function(r) {
  var diameter = 2 * r;
  var result = pi * diameter;
  return result;
};
// Test your code
console.log(calulateCircumference(radius));

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JosephLivengoodcommented, Feb 20, 2017

@OFFLlNE I’m all for a first-timers-only, we both were labeling and commenting at once it seems like! 👍

0reactions
JosephLivengoodcommented, Feb 21, 2017

@griffste All yours! You can look at how to contribute here. If you run into trouble feel free to join us on gitter for help!

Happy Coding! 🥇

Read more comments on GitHub >

github_iconTop Results From Across the Web

Program to find Circumference of a Circle - GeeksforGeeks
Circumference of a circle can simply be evaluated using following formula. Circumference = 2*pi*r where r is the radius of circle and value...
Read more >
Circumference Calculator
Use this free circumference calculator to find the area, circumference and diameter of a circle.
Read more >
Calculate the Best Circumference - CodeHS
Exercise Calculate the Best Circumference​​ In this activity, you are given the approximate diameter of the International Space Station Orbit. The space station ......
Read more >
Perimeter Challenge Cards - Math Resource (Teacher-Made)
Use these hand, palm-sized challenge cards to test your class' knowledge of shapes and perimeter. Each card has two Math problems for your...
Read more >
How to calculate perimeter and area of square in Java ...
Anyway, here is complete Java Program to calculate area and perimeter of a Square in Java: import java.util.Scanner; /* * Java Program to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found