Enter the URL for a layer in a map service to access metadata about a layer in a map service using esriRequest.
Check the console for the full response. Here we'll display Field names, aliases and types: