/dev tips

(171) Shareable Network Recordings Query Objects (173)

Chrome DevTools: Argument Hints for built-in and user-defined JavaScript code

5th June 2018
Argument Hints for built-in and user-defined JavaScript code

The new Argument Hints feature within the Console Panel informs you of function signatures. This can be useful for exploring lesser known web platform APIs.

Try activating the Argument Hints feature on the following code snippets.

// f(type, listener, ?options)
$('body').addEventListener

// f(constraints, successCallback, errorCallback)
navigator.getUserMedia

function hi(required, optional=1, ...remaining) {}

// f(required, ?optional, ...remaining)
hi

Sign up to receive a developer tip, in the form of a gif, in your inbox each week.