Device Monitoring Studio - Monitor, log and analyze data coming through PC ports and connections
Download Device Monitoring Studio Hide this button

return Statement

return statement has the following syntax:

return expr;

Evaluates the passed expression and sets the current native function's return value. It also exits the current function. If used outside the function body, an exception is generated.

function square(x)
{
    return x * x;
}