js training assignment