Create practice

some javascript code I wrote to practice basic skills