Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript function parameters type required

/* @flow */
function foo(x: string, y: number): string {
  return x.length * y;
}
foo('Hello', 42);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #function #parameters #type #required
ADD COMMENT
Topic
Name
9+2 =