Console is not showing output

My console is not showing any output. Calling the fun() I am getting this Error.
Uncaught ReferenceError: fun is not defined
at :1:1

I am using Brackets.