my practice javascript code