practic to use JavaScrip