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
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 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
// Online Javascript Editor for free | |
// Write, Edit and Run your Javascript code using JS Online Compiler | |
const obj = { | |
name: 'Iacov', | |
age: function(yearOfBirth) { | |
const date = new Date().getFullYear(); | |
const res = date - yearOfBirth; | |
return console.log(`I'm ${res} years old`); |
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
#!/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 |