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
| 'use strict'; | |
| function calcAge(birthYear) { | |
| const date = new Date().getFullYear(); | |
| const res = date - birthYear; | |
| if (date !== birthYear) { | |
| return res; | |
| } else { | |
| return console.log(`Год рождения не должен быть равен текушему ${date} году!`); | |
| } | |
| } |
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
| const helloGuest = function(nameGuest) { | |
| const dt = new Date(); | |
| const hour = dt.getHours(); | |
| return function(){ | |
| if(hour >= 0 && hour <6 ) { | |
| console.log(`Good Night ${nameGuest}`); | |
| } | |
| else if (hour > 6 && hour < 12) { |
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
| #!/bin/bash | |
| sudo su | |
| apt-get --purge remove linux-sound-base alsa-base alsa-utils | |
| apt-get install linux-sound-base alsa-base alsa-utils | |
| apt-get install gdm ubuntu-desktop | |
| reboot |
OlderNewer