Skip to content

Commit 1a91e7f

Browse files
committed
Add createCircle function
1 parent a085a08 commit 1a91e7f

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Adds two numbers.
1010
**Parameters**
1111

1212
**x**: number
13-
13+
circumference
1414
**y**: number
1515

1616
**Returns**: number, the sum
@@ -169,3 +169,13 @@ Joins two strings with a space.
169169
**word2**: string
170170

171171
**Returns**: string, joined the words joined with a space
172+
173+
createCircle(radius)
174+
-----------------------------
175+
Returns a circle object with the properties `circumferance` and `area`.
176+
177+
**Parameters**
178+
179+
**radius**: number
180+
181+
**Returns**: object, circle

script.js

+6
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,9 @@
9898
* @param {string} word2 `
9999
* @return {string} joined the words joined with a space
100100
*/
101+
102+
/**
103+
* Returns a circle object with the properties `circumferance` and `area`.
104+
* @param {number} radius `
105+
* @return {object} circle
106+
*/

0 commit comments

Comments
 (0)