get

Request.get(name)

Returns the value of a request parameter by its name (key).

Parameters

The method has the following parameter:

ParametersDescription
nameName (key) of the request parameter. .
Example

This example shows printing the value of three request parameters:

var email = request.get("email");
var title = request.get("title");
var location = request.get("location");

console.log(email);
console.log(title);
console.log(location);
[email protected]
Engineer
Barcelona