Merge pull request #13501 from donofriov/fix/typo-in-challenge-code-calculate-circumference
Fixed typo in Challenge Code - calculateCircumferencepull/13368/head
commit
4ded8169cb
|
@ -115,19 +115,19 @@
|
||||||
"// rename constant variables",
|
"// rename constant variables",
|
||||||
"var pi = 3.14;",
|
"var pi = 3.14;",
|
||||||
"var radius = 10;",
|
"var radius = 10;",
|
||||||
"var calulateCircumference = function(r) {",
|
"var calculateCircumference = function(r) {",
|
||||||
" var diameter = 2 * r;",
|
" var diameter = 2 * r;",
|
||||||
" var result = pi * diameter;",
|
" var result = pi * diameter;",
|
||||||
" return result;",
|
" return result;",
|
||||||
"};",
|
"};",
|
||||||
"// Test your code",
|
"// Test your code",
|
||||||
"console.log(calulateCircumference(radius));"
|
"console.log(calculateCircumference(radius));"
|
||||||
],
|
],
|
||||||
"tests": [
|
"tests": [
|
||||||
"// Test user replaced all var keyword",
|
"// Test user replaced all var keyword",
|
||||||
"// Test PI is const",
|
"// Test PI is const",
|
||||||
"// Test calculateCircumference is const",
|
"// Test calculateCircumference is const",
|
||||||
"// Test pi and calulateCircumference has been renamed"
|
"// Test pi and calculateCircumference has been renamed"
|
||||||
],
|
],
|
||||||
"type": "waypoint",
|
"type": "waypoint",
|
||||||
"releasedOn": "Feb 17, 2017",
|
"releasedOn": "Feb 17, 2017",
|
||||||
|
|
Loading…
Reference in New Issue