-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from sidharth-23/master
Variables
- Loading branch information
Showing
5 changed files
with
161 additions
and
138 deletions.
There are no files selected for viewing
This file contains 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 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
16 changes: 8 additions & 8 deletions
16
1-js/02-first-steps/04-variables/2-declare-variables/solution.md
This file contains 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,21 +1,21 @@ | ||
## The variable for our planet | ||
## നമ്മുടെ ഗ്രഹത്തിനായുള്ള വേരിയബിൾ | ||
|
||
That's simple: | ||
അത് സിംപിളാണ്: | ||
|
||
```js | ||
let ourPlanetName = "Earth"; | ||
``` | ||
|
||
Note, we could use a shorter name `planet`, but it might not be obvious what planet it refers to. It's nice to be more verbose. At least until the variable isNotTooLong. | ||
കുറിപ്പ്, നമുക്ക് ഒരു ചെറിയ പേര് ഉപയോഗിക്കാം `planet`, എന്നാൽ അത് ഏത് ഗ്രഹത്തെയാണ് സൂചിപ്പിക്കുന്നത് എന്ന് വ്യക്തമല്ലായിരിക്കാം. കൂടുതൽ അർത്ഥം നൽകുന്നത് നല്ലതാണ്. കുറഞ്ഞത് വേരിയബിൾ വളരെ ദൈർഘ്യമേറിയതാവാതെ സൂക്ഷിക്കുക. | ||
|
||
## The name of the current visitor | ||
## നിലവിലെ സന്ദർശകന്റെ പേര് | ||
|
||
```js | ||
let currentUserName = "John"; | ||
``` | ||
|
||
Again, we could shorten that to `userName` if we know for sure that the user is current. | ||
വീണ്ടും, നമുക്ക് അത് ചുരുക്കാം `userName` ഉപയോക്താവ് നിലവിലുള്ളതാണെന്ന് ഞങ്ങൾക്ക് ഉറപ്പുണ്ടെങ്കിൽ മാത്രം. | ||
ആധുനിക എഡിറ്ററുകളും ഓട്ടോ-കബ്ളീട്ടും | ||
Modern editors and autocomplete നീളമുള്ള വേരിയബിൾ പേരുകൾ എഴുതാൻ സഹായിക്കും. 3 വാക്കുകളുള്ള ഒരു പേര് കുഴപ്പമില്ല. | ||
|
||
Modern editors and autocomplete make long variable names easy to write. Don't save on them. A name with 3 words in it is fine. | ||
|
||
And if your editor does not have proper autocompletion, get [a new one](/code-editors). | ||
നിങ്ങളുടെ എഡിറ്ററിന് ശരിയായ ഓട്ടോ-കബ്ളീട്ട് ഇല്ലെങ്കിൽ, പുതിയൊരെണ്ണം കണ്ടെത്തുക [a new one](/code-editors). |
This file contains 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,8 +1,9 @@ | ||
importance: 3 | ||
പ്രാധാന്യം: 3 | ||
|
||
--- | ||
|
||
# Giving the right name | ||
# ശരിയായ പേര് നൽക്കുക | ||
|
||
1. Create a variable with the name of our planet. How would you name such a variable? | ||
2. Create a variable to store the name of a current visitor to a website. How would you name that variable? | ||
1. നമ്മുടെ ഗ്രഹത്തിന്റെ പേര് ഉപയോഗിച്ച് ഒരു വേരിയബിൾ ഉണ്ടാക്കുക. അത്തരമൊരു വേരിയബിളിന് നിങ്ങൾ എങ്ങനെ പേര് നൽകും? | ||
|
||
2.ഒരു വെബ്സൈറ്റിലെ നിലവിലെ സന്ദർശകന്റെ പേര് സംഭരിക്കുന്നതിന് ഒരു വേരിയബിൾ സൃഷ്ടിക്കുക. ആ വേരിയബിളിന് നിങ്ങൾ എങ്ങനെ പേര് നൽകും? |
Oops, something went wrong.