The getParam() method is used to return the first value of a given parameter.
It takes 3 parameters:
It takes 3 parameters:
- params - the parameters to be searched
- name - the name of the parameter you want the first value of
- defaultValue - the default value to return if no parameter of the given name can be found