JavaScript HTML DOM Events. Referencia de JavaScript. Objetos globales Valor de las propiedades Las propiedades globales regresan un valor simple. Propiedades de la Función Funciones globales retornando el resultado de una rutina específica. Sentencias For an alphabetical listing see the sidebar on the left. Control flow Block A block statement is used to group zero or more statements.
Break Terminates the current loop, switch, or label statement and transfers program control to the statement following the terminated statement. continue Terminates execution of the statements in the current iteration of the current or labeled loop, and continues execution of the loop with the next iteration. Empty An empty statement is used to provide no statement, although the JavaScript syntax would expect one. if...else Executes a statement if a specified condition is true.
Switch Evaluates an expression, matching the expression's value to a case clause, and executes statements associated with that case. throw Throws a user-defined exception. try...catch Declarations var let. JavaScript console - for debugging JavaScript and remote debugging mobile web apps. JavaScript. JavaScript (JS) es un lenguaje de programación ligero, interpretado, o compilado justo-a-tiempo (just-in-time) con funciones de primera clase. Si bien es más conocido como un lenguaje de scripting (secuencias de comandos) para páginas web, y es usado en muchos entornos fuera del navegador, tal como Node.js, Apache CouchDB y Adobe Acrobat JavaScript es un lenguaje de programación basada en prototipos, multiparadigma, de un solo hilo, dinámico, con soporte para programación orientada a objetos, imperativa y declarativa (por ejemplo programación funcional). Lee más en acerca de JavaScript. Esta sección está dedicada al lenguaje JavaScript en sí, y no a las partes que son específicas de las páginas web u otros entornos host.
Para información acerca de APIs específicas para páginas Web, consulta APIs Web y DOM. El estándar para JavaScript es ECMAScript (ECMA-262) y la especificación de la API para la Internacionalización de ECMAScript (ECMA-402). Empieza aquí Tutoriales JavaScript asíncrono. JsPerf: JavaScript performance playground. Tutorial: Debugging. This tutorial introduces you to using Google Chrome's built-in Developer Tools to interactively debug an extension. To follow this tutorial, you need the Hello World extension that was featured in Getting Started. In this section, you'll load the extension and take a look at its information in the Extensions page.
Load the Hello World extension if it isn't already running. If the extension is running, you'll see the Hello World icon to the right of your browser's address bar. If the Hello World extension isn't already running, find the extension files and load them. If you don't have a handy copy of the files, extract them from this ZIP file. As long as your browser is in Developer mode, it's easy to inspect popups.
Go to the Extensions page ( and make sure Developer mode is still enabled. The popup remains open as long as the Developer Tools window does. In this section, you'll follow the execution of the popup page as it adds images to itself. Debugging JavaScript. This document is intended to help developers writing JavaScript code in Mozilla, mainly for Mozilla itself, but it may also be useful for web developers. It should give pointers to tools, aids and tricks which make debugging your code easier. Web Console This is the first place to go when you're debugging a web page; open the Web console using the Web Console option in the Web Developer menu. This shows any JavaScript errors in your app, as well as any logging calls from the console API.
Browser Console The Browser Console lets you see all JavaScript errors and logging in the browser, including from Firefox code. You can also start the Browser Console when you launch Firefox, by launching Firefox from the command line and passing --jsconsole as a flag: /path/to/firefox --jsconsole Log to the Browser Console using the standard console API after importing Console.jsm: let console = (Cu.import(" {})).console; console.log("Hello from Firefox code");
Internet Explorer Learning - F12 Developer Tools. Internet Explorer 8 fue el primer navegador en proporcionar herramientas de desarrollo integradas para ayudar a los desarrolladores en la creación rápida de prototipos, pruebas y depurar páginas Web y permitirles ver los cambios realizados por ellos, directamente en el navegador. Como novedades en Internet Explorer 9 se incluye la posibilidad de cambiar a versiones anteriores del navegador IE, un inspector de tráfico de red, un analizador de JavaScript mejorado y soporte integrado para los nuevos estándares web con Internet Explorer 9.
Tutoriales Volver arriba Videos Circular Memory Leak DetectionEn este vídeo, Matt Hester discute mejoras de administración de memoria de Internet Explorer que reducirá los efectos de pérdidas de memoria creados por referencias circulares entre objetos de Microsoft Jscript y Document Object Model (DOM). Depurar JavaScriptEn este vídeo, Matt Hester muestra las herramientas integradas de Internet Explorer y cómo utilizarlos eficazmente para depurar JavaScript.
JavaScript Guide - JavaScript. JavaScriptSource.com - Free JavaScripts, Tutorials, Example Code, Reference, Resources, And Help.