Parameters and functions in javascript

Can parameters of a function be inputs of a user typing? Or can those parameters be previous variables that were declared outside that function?Maybe pass those previous variables as arguments when invoking the function?

you can pass anything into a function, the arguments of a function can come from anywhere. In a big project the arguments of a function are rarely hardcoded in

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.