-
Notifications
You must be signed in to change notification settings - Fork 0
add previous lessons #1
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| body { | ||
| background-color: rgba(49, 61, 55, 0.87); | ||
| } | ||
| h1 { | ||
| text-align: center; | ||
| margin: 150px; | ||
| font-size: 140px; | ||
| text-shadow: 2px -4px 16px rgb(186, 93, 240); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| // 1. Задание | ||
| alert("What is the radius of the circle?"); | ||
| prompt(" Your version? "); | ||
| alert("Correct answer: " + "R = P : 2 * π"); | ||
|
|
||
| // 2. Задание | ||
|
|
||
| let distance = prompt( | ||
| "What is the distance in kilometers between the two cities ?" | ||
| ); | ||
| let time = prompt("How many hours he wants to get there ?"); | ||
|
|
||
| alert( | ||
| " If you want to get there in " + | ||
| time + | ||
| " hours, we need to go an average of " + | ||
| distance / time + | ||
| " km per hour " | ||
| ); | ||
|
|
||
| // 3. Задание | ||
|
|
||
| let exDollar = 28.4; | ||
| ``; | ||
| let exEuro = 32.1; | ||
| let myPrice = prompt("Введите суму в долларах"); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remember about |
||
|
|
||
| alert( | ||
| " Если ты хочешь поменять " + | ||
| myPrice + | ||
| ", ты получишь " + | ||
| (exDollar * myPrice) / exEuro + | ||
| " евро " | ||
| ); | ||
|
|
||
| // 4. Задание | ||
| let result; //выплаченные проценты, | ||
| let moneyCount; //первоначальная сумма вложений, | ||
| let betYear = 5; //годовая ставка | ||
| let betDays = 60; //количество дней вклада, | ||
| let year = 365; //количество дней в году | ||
| let perCent = 100; | ||
|
|
||
| moneyCount = prompt(`amount of money : `); | ||
| result = (moneyCount * betYear * betDays) / year / perCent; | ||
| alert(`You will receive this cash: ${result.toFixed(1)}`); | ||
|
|
||
| // 5. Задание | ||
| let num = 2 && 0 && 3; | ||
| let num2 = 2 || 0 || 3; | ||
| let num3 = (2 && 0) || 3; | ||
| console.log(num); | ||
| console.log(num2); | ||
| console.log(num3); | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line of code is not needed heere