Solving Functions Questions by Javascripts.