This page demonstrates the CRM Web API's Query operations using JavaScript.
Choose your preferences and run the JavaScript code. Use your browser's developer tools to view the output written to the console (e.g.: in IE11 or Edge, press F12 to load the Developer Tools).