Program Using Function In Javascript Syntax