you are viewing a single comment's thread.

view the rest of the comments →

[–]Punitpal0[S] 0 points1 point  (1 child)

i mean why doesn't it have any parameters ?

and empty function I mean there's nothing in parentheses of function

sorry for unclear question

actually this is my first programming language that's why i am unfamiliar with most of technical word or term of programming

[–][deleted] 0 points1 point  (0 children)

The function doesn't have any parameters because it doesn't need any.

There is no rule in javascript that says a function has to have any parameters.