Skip to content

Commit f30241e

Browse files
authored
Update task.md
1 parent f6bf406 commit f30241e

File tree

1 file changed

+3
-3
lines changed
  • 1-js/02-first-steps/15-function-basics/4-pow

1 file changed

+3
-3
lines changed

1-js/02-first-steps/15-function-basics/4-pow/task.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ importance: 4
44

55
# Function pow(x,n)
66

7-
एक फ़ंक्शन लिखें `pow(x,n)` जो `x` को `n` की घात में लौटाता है। या, दूसरे शब्दों में, `x` को अपने आप से `n` बार गुणा करता है और परिणाम देता है।
7+
Write a function `pow(x,n)` that returns `x` in power `n`. Or, in other words, multiplies `x` by itself `n` times and returns the result.
88

99
```js
1010
pow(3, 2) = 3 * 3 = 9
1111
pow(3, 3) = 3 * 3 * 3 = 27
1212
pow(1, 100) = 1 * 1 * ...* 1 = 1
1313
```
1414

15-
एक वेब पेज बनाएं जो `x` और `n` के लिए prompt करता है, और फिर `pow(x,n)` का परिणाम दिखाता है।
15+
Create a web-page that prompts for `x` and `n`, and then shows the result of `pow(x,n)`.
1616

1717
[demo]
1818

19-
नोट: इस टास्क में function को केवल `n` के प्राकृतिक मानों को स्वीकार करना चाहिए: `1` से ऊपर के पूर्णांक।
19+
P.S. In this task the function should support only natural values of `n`: integers up from `1`.

0 commit comments

Comments
 (0)