Definition: A subroutine is a group of statements that have been collected together and given a name. This group of statements can then be run from several different places within the program by calling it by name. You can pass parameters to a subroutine telling it what to process. A subroutine diifers from a function in that a function returns a value while a subroutine does not. While other programming languages may use different means of calling functions and subroutines - eg 'call subroutine();' and 'x = function();' - Javascript makes no distinction between subroutine and function calls.
Examples:
mySubroutine(x,y);

