«   Previous tip Next tip   »

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

Last updated: 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
«   Previous tip Next tip   »

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