-
Notifications
You must be signed in to change notification settings - Fork 46
Functions #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Open
Functions #75
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
c594079
Translate 1-if-else-required
rasoolkhan16 e2877f1
Translate 2-rewrite-function-question0or
rasoolkhan16 722a4e1
fix numbering
rskhan167 906f4e8
fix autochange done by IDE
rskhan167 0c4bd5e
fix changes made by IDE
rskhan167 1e5439e
Translate 3-min
rskhan167 fbb4ea7
Merge branch 'master' of github-personal:rskhan167/hi.javascript.info
rskhan167 f0d15ad
fix autochange by IDE
rskhan167 952f447
Translate article
rskhan167 74b6581
Merge branch 'master' of github-personal:rskhan167/hi.javascript.info
rskhan167 b632892
fix translate
rskhan167 1d42753
fix IDE's autochanges
rskhan167 93aa7be
fix IDE's autochanges
rskhan167 f39ab2b
fix IDE's autochanges
rskhan167 5bf0d16
fix some translations
rskhan167 badd33b
Update task.md
rskhan167 1eac281
Update task.md
rskhan167 de48b64
Update task.md
rskhan167 dc463a3
Update article.md
rskhan167 300a818
Update task.md
rskhan167 582983e
Update article.md
rskhan167 c8a43e6
Update article.md
rskhan167 1b5f2a9
Update article.md
rskhan167 97871c6
Update task.md
rskhan167 4dd3856
Update task.md
rskhan167 6b4f682
Update task.md
rskhan167 1ff58cc
Update task.md
rskhan167 5601c33
Update task.md
rskhan167 6913971
Update task.md
rskhan167 f9696dd
Update article.md
rskhan167 56a438d
Update article.md
rskhan167 c8ecd51
Merge branch 'javascript-tutorial:master' into master
rskhan167 7b70801
Merge branch 'javascript-tutorial:master' into master
rskhan167 270a393
Update article.md
rskhan167 ac357ca
Update article.md
rskhan167 0588885
Update article.md
rskhan167 7611a3f
Update article.md
rskhan167 3ad84fb
Update article.md
rskhan167 e37cbf2
Update task.md
rskhan167 a04785d
Update task.md
rskhan167 d5900ab
Merge branch 'javascript-tutorial:master' into master
rskhan167 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
1-js/02-first-steps/15-function-basics/1-if-else-required/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| No difference. | ||
| कोई फर्क नहीं। |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
1-js/02-first-steps/15-function-basics/2-rewrite-function-question-or/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,17 @@ | ||
| Using a question mark operator `'?'`: | ||
| प्रश्न चिह्न ऑपरेटर का उपयोग करते हुए `?`: | ||
|
|
||
| ```js | ||
| function checkAge(age) { | ||
| return (age > 18) ? true : confirm('Did parents allow you?'); | ||
| return (age > 18) ? true : confirm('क्या माता-पिता ने आपको अनुमति दी थी?'); | ||
| } | ||
| ``` | ||
|
|
||
| Using OR `||` (the shortest variant): | ||
| OR ऑपरेटर का उपयोग करते हुए `||` (सबसे छोटा संस्करण) | ||
|
|
||
| ```js | ||
| function checkAge(age) { | ||
| return (age > 18) || confirm('Did parents allow you?'); | ||
| return (age > 18) || confirm('क्या माता-पिता ने आपको अनुमति दी थ?'); | ||
| } | ||
| ``` | ||
|
|
||
| Note that the parentheses around `age > 18` are not required here. They exist for better readabilty. | ||
| ध्यान दें कि यहां `age > 18` के आसपास के कोष्ठकों की आवश्यकता नहीं है। वे बेहतर पठनीयता के लिए मौजूद हैं। |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.