Tuesday, June 5, 2018

Dev Tips: DevTools: Argument Hints for JavaScript code ✨

Dev Tips

 

DevTools: 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  

If you have any troubles viewing this animated gif, check out: umaar.com/dev-tips/172-argument-hints
Tweet
Email Marketing Powered by MailChimp

Copyright © 2018 Umar, All rights reserved.
You are receiving this email because you signed up for Dev Tips.

unsubscribe from this list    update subscription preferences 

No comments:

Post a Comment