CINXE.COM
JavaScript - Wikipedia, a enciclopedia libre
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="gl" dir="ltr"> <head> <meta charset="UTF-8"> <title>JavaScript - Wikipedia, a enciclopedia libre</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )glwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":[",\t.",".\t,"],"wgDigitTransformTable":["",""], "wgDefaultDateFormat":"dmy","wgMonthNames":["","xaneiro","febreiro","marzo","abril","maio","xuño","xullo","agosto","setembro","outubro","novembro","decembro"],"wgRequestId":"d7c2ad46-f9e8-49e9-b1d0-70da28360336","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"JavaScript","wgTitle":"JavaScript","wgCurRevisionId":6617393,"wgRevisionId":6617393,"wgArticleId":73799,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Linguaxes interpretadas"],"wgPageViewLanguage":"gl","wgPageContentLanguage":"gl","wgPageContentModel":"wikitext","wgRelevantPageName":"JavaScript","wgRelevantArticleId":73799,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{ "pageLanguageCode":"gl","pageLanguageDir":"ltr","pageVariantFallbacks":"gl"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":20000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q2005","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.gadget.charinsert-styles":"ready","ext.gadget.PortalClass":"ready","ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready", "ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.cite.styles":"ready","ext.pygments":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","ext.pygments.view","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips","ext.gadget.refToolbar","ext.gadget.charinsert","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming", "ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=gl&modules=ext.cite.styles%7Cext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=gl&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=gl&modules=ext.gadget.PortalClass%2Ccharinsert-styles&only=styles&skin=vector-2022"> <link rel="stylesheet" href="/w/load.php?lang=gl&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="JavaScript - Wikipedia, a enciclopedia libre"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//gl.m.wikipedia.org/wiki/JavaScript"> <link rel="alternate" type="application/x-wiki" title="Editar" href="/w/index.php?title=JavaScript&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (gl)"> <link rel="EditURI" type="application/rsd+xml" href="//gl.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://gl.wikipedia.org/wiki/JavaScript"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.gl"> <link rel="alternate" type="application/atom+xml" title="Fonte Atom de novas de Wikipedia" href="/w/index.php?title=Especial:Cambios_recentes&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-JavaScript rootpage-JavaScript skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Saltar ao contido</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Sitio"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Menú principal" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Menú principal</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Menú principal</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">mover á barra lateral</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">agochar</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navegación </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Portada" title="Visitar a páxina principal [z]" accesskey="z"><span>Portada</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Portal_da_comunidade" title="Información acerca do proxecto, do que pode facer e dos lugares onde atopar as cousas"><span>Portal da comunidade</span></a></li><li id="n-A-Taberna" class="mw-list-item"><a href="/wiki/Wikipedia:A_Taberna"><span>A Taberna</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Wikipedia:Actualidade" title="Información acerca de acontecementos de actualidade"><span>Actualidade</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Especial:Cambios_recentes" title="A lista de modificacións recentes no wiki [r]" accesskey="r"><span>Cambios recentes</span></a></li><li id="n-Artigos-de-calidade" class="mw-list-item"><a href="/wiki/Wikipedia:Artigos_de_calidade"><span>Artigos de calidade</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Especial:Ao_chou" title="Cargar unha páxina ao chou [x]" accesskey="x"><span>Páxina ao chou</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Wikipedia:Axuda" title="O lugar para informarse"><span>Axuda</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Portada" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="a Wikipedia en galego" src="/static/images/mobile/copyright/wikipedia-tagline-gl.svg" width="118" height="13" style="width: 7.375em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Especial:Procurar" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Procurar neste wiki [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Procura</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Procurar en Wikipedia" aria-label="Procurar en Wikipedia" autocapitalize="sentences" title="Procurar neste wiki [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Especial:Procurar"> </div> <button class="cdx-button cdx-search-input__end-button">Procurar</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Ferramentas persoais"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Aparencia"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Cambia a aparencia do tamaño da fonte, o ancho e a cor da páxina" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Aparencia" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Aparencia</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_gl.wikipedia.org&uselang=gl" class=""><span>Doazóns</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Especial:Crear_unha_conta&returnto=JavaScript" title="É recomendable que cree unha conta e acceda ao sistema, se ben non é obrigatorio" class=""><span>Crear unha conta</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Especial:Iniciar_sesi%C3%B3n&returnto=JavaScript" title="É recomendable que se rexistre, se ben non é obrigatorio [o]" accesskey="o" class=""><span>Acceder ao sistema</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Máis opcións" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Ferramentas persoais" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Ferramentas persoais</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="Menú de usuario" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_gl.wikipedia.org&uselang=gl"><span>Doazóns</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Especial:Crear_unha_conta&returnto=JavaScript" title="É recomendable que cree unha conta e acceda ao sistema, se ben non é obrigatorio"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Crear unha conta</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Especial:Iniciar_sesi%C3%B3n&returnto=JavaScript" title="É recomendable que se rexistre, se ben non é obrigatorio [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Acceder ao sistema</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Páxinas para os editores sen a sesión iniciada <a href="/wiki/Axuda:Introduci%C3%B3n" aria-label="Máis información sobre a edición"><span>máis información</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Especial:As_mi%C3%B1as_contribuci%C3%B3ns" title="Unha lista das modificacións feitas desde este enderezo IP [y]" accesskey="y"><span>Contribucións</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Especial:A_mi%C3%B1a_conversa" title="Conversa acerca de edicións feitas desde este enderezo IP [n]" accesskey="n"><span>Conversa</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Sitio"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contidos" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contidos</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">mover á barra lateral</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">agochar</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">Inicio</div> </a> </li> <li id="toc-Historia" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Historia"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Historia</span> </div> </a> <button aria-controls="toc-Historia-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Mostrar ou agochar a subsección "Historia"</span> </button> <ul id="toc-Historia-sublist" class="vector-toc-list"> <li id="toc-Comezos" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Comezos"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>Comezos</span> </div> </a> <ul id="toc-Comezos-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Adopción_por_parte_de_Microsoft" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Adopción_por_parte_de_Microsoft"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.2</span> <span>Adopción por parte de Microsoft</span> </div> </a> <ul id="toc-Adopción_por_parte_de_Microsoft-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Estandarización" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Estandarización"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.3</span> <span>Estandarización</span> </div> </a> <ul id="toc-Estandarización-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Características" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Características"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Características</span> </div> </a> <ul id="toc-Características-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Exemplos_de_sintaxe" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Exemplos_de_sintaxe"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Exemplos de sintaxe</span> </div> </a> <button aria-controls="toc-Exemplos_de_sintaxe-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Mostrar ou agochar a subsección "Exemplos de sintaxe"</span> </button> <ul id="toc-Exemplos_de_sintaxe-sublist" class="vector-toc-list"> <li id="toc-Definición_de_variables" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Definición_de_variables"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.1</span> <span>Definición de variables</span> </div> </a> <ul id="toc-Definición_de_variables-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Función_recursiva" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Función_recursiva"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.2</span> <span>Función recursiva</span> </div> </a> <ul id="toc-Función_recursiva-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Exemplo_avanzado" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Exemplo_avanzado"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.3</span> <span>Exemplo avanzado</span> </div> </a> <ul id="toc-Exemplo_avanzado-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Uso_en_páxinas_web" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Uso_en_páxinas_web"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Uso en páxinas web</span> </div> </a> <ul id="toc-Uso_en_páxinas_web-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Notas" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Notas"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Notas</span> </div> </a> <ul id="toc-Notas-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Véxase_tamén" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Véxase_tamén"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Véxase tamén</span> </div> </a> <button aria-controls="toc-Véxase_tamén-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Mostrar ou agochar a subsección "Véxase tamén"</span> </button> <ul id="toc-Véxase_tamén-sublist" class="vector-toc-list"> <li id="toc-Outros_artigos" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Outros_artigos"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.1</span> <span>Outros artigos</span> </div> </a> <ul id="toc-Outros_artigos-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Bibliografía" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Bibliografía"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.2</span> <span>Bibliografía</span> </div> </a> <ul id="toc-Bibliografía-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Ligazóns_externas" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Ligazóns_externas"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.3</span> <span>Ligazóns externas</span> </div> </a> <ul id="toc-Ligazóns_externas-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contidos" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Mostrar ou agochar a táboa de contidos" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Mostrar ou agochar a táboa de contidos</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">JavaScript</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Ir a un artigo noutra lingua. Dispoñible en 109 linguas" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-109" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">109 linguas</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-af mw-list-item"><a href="https://af.wikipedia.org/wiki/JavaScript" title="JavaScript – afrikaans" lang="af" hreflang="af" data-title="JavaScript" data-language-autonym="Afrikaans" data-language-local-name="afrikaans" class="interlanguage-link-target"><span>Afrikaans</span></a></li><li class="interlanguage-link interwiki-an mw-list-item"><a href="https://an.wikipedia.org/wiki/JavaScript" title="JavaScript – aragonés" lang="an" hreflang="an" data-title="JavaScript" data-language-autonym="Aragonés" data-language-local-name="aragonés" class="interlanguage-link-target"><span>Aragonés</span></a></li><li class="interlanguage-link interwiki-ang mw-list-item"><a href="https://ang.wikipedia.org/wiki/JavaScript" title="JavaScript – inglês antigo" lang="ang" hreflang="ang" data-title="JavaScript" data-language-autonym="Ænglisc" data-language-local-name="inglês antigo" class="interlanguage-link-target"><span>Ænglisc</span></a></li><li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D8%AC%D8%A7%D9%81%D8%A7_%D8%B3%D9%83%D8%B1%D9%8A%D8%A8%D8%AA" title="جافا سكريبت – árabe" lang="ar" hreflang="ar" data-title="جافا سكريبت" data-language-autonym="العربية" data-language-local-name="árabe" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-arz mw-list-item"><a href="https://arz.wikipedia.org/wiki/%D8%AC%D8%A7%D9%81%D8%A7_%D8%B3%D9%83%D8%B1%D9%8A%D8%A8%D8%AA" title="جافا سكريبت – Egyptian Arabic" lang="arz" hreflang="arz" data-title="جافا سكريبت" data-language-autonym="مصرى" data-language-local-name="Egyptian Arabic" class="interlanguage-link-target"><span>مصرى</span></a></li><li class="interlanguage-link interwiki-ast mw-list-item"><a href="https://ast.wikipedia.org/wiki/JavaScript" title="JavaScript – asturiano" lang="ast" hreflang="ast" data-title="JavaScript" data-language-autonym="Asturianu" data-language-local-name="asturiano" class="interlanguage-link-target"><span>Asturianu</span></a></li><li class="interlanguage-link interwiki-az mw-list-item"><a href="https://az.wikipedia.org/wiki/JavaScript" title="JavaScript – acerbaixano" lang="az" hreflang="az" data-title="JavaScript" data-language-autonym="Azərbaycanca" data-language-local-name="acerbaixano" class="interlanguage-link-target"><span>Azərbaycanca</span></a></li><li class="interlanguage-link interwiki-azb mw-list-item"><a href="https://azb.wikipedia.org/wiki/%D8%AC%D8%A7%D9%88%D8%A7%D8%A7%D8%B3%DA%A9%D8%B1%DB%8C%D9%BE%D8%AA" title="جاوااسکریپت – South Azerbaijani" lang="azb" hreflang="azb" data-title="جاوااسکریپت" data-language-autonym="تۆرکجه" data-language-local-name="South Azerbaijani" class="interlanguage-link-target"><span>تۆرکجه</span></a></li><li class="interlanguage-link interwiki-bat-smg mw-list-item"><a href="https://bat-smg.wikipedia.org/wiki/JavaScript" title="JavaScript – Samogitian" lang="sgs" hreflang="sgs" data-title="JavaScript" data-language-autonym="Žemaitėška" data-language-local-name="Samogitian" class="interlanguage-link-target"><span>Žemaitėška</span></a></li><li class="interlanguage-link interwiki-be mw-list-item"><a href="https://be.wikipedia.org/wiki/JavaScript" title="JavaScript – belaruso" lang="be" hreflang="be" data-title="JavaScript" data-language-autonym="Беларуская" data-language-local-name="belaruso" class="interlanguage-link-target"><span>Беларуская</span></a></li><li class="interlanguage-link interwiki-be-x-old mw-list-item"><a href="https://be-tarask.wikipedia.org/wiki/JavaScript" title="JavaScript – Belarusian (Taraškievica orthography)" lang="be-tarask" hreflang="be-tarask" data-title="JavaScript" data-language-autonym="Беларуская (тарашкевіца)" data-language-local-name="Belarusian (Taraškievica orthography)" class="interlanguage-link-target"><span>Беларуская (тарашкевіца)</span></a></li><li class="interlanguage-link interwiki-bg mw-list-item"><a href="https://bg.wikipedia.org/wiki/JavaScript" title="JavaScript – búlgaro" lang="bg" hreflang="bg" data-title="JavaScript" data-language-autonym="Български" data-language-local-name="búlgaro" class="interlanguage-link-target"><span>Български</span></a></li><li class="interlanguage-link interwiki-blk mw-list-item"><a href="https://blk.wikipedia.org/wiki/JavaScript" title="JavaScript – Pa'O" lang="blk" hreflang="blk" data-title="JavaScript" data-language-autonym="ပအိုဝ်ႏဘာႏသာႏ" data-language-local-name="Pa'O" class="interlanguage-link-target"><span>ပအိုဝ်ႏဘာႏသာႏ</span></a></li><li class="interlanguage-link interwiki-bn mw-list-item"><a href="https://bn.wikipedia.org/wiki/%E0%A6%9C%E0%A6%BE%E0%A6%AD%E0%A6%BE%E0%A6%B8%E0%A7%8D%E0%A6%95%E0%A7%8D%E0%A6%B0%E0%A6%BF%E0%A6%AA%E0%A7%8D%E0%A6%9F" title="জাভাস্ক্রিপ্ট – bengalí" lang="bn" hreflang="bn" data-title="জাভাস্ক্রিপ্ট" data-language-autonym="বাংলা" data-language-local-name="bengalí" class="interlanguage-link-target"><span>বাংলা</span></a></li><li class="interlanguage-link interwiki-br mw-list-item"><a href="https://br.wikipedia.org/wiki/Javascript" title="Javascript – bretón" lang="br" hreflang="br" data-title="Javascript" data-language-autonym="Brezhoneg" data-language-local-name="bretón" class="interlanguage-link-target"><span>Brezhoneg</span></a></li><li class="interlanguage-link interwiki-bug mw-list-item"><a href="https://bug.wikipedia.org/wiki/JavaScript" title="JavaScript – buginés" lang="bug" hreflang="bug" data-title="JavaScript" data-language-autonym="Basa Ugi" data-language-local-name="buginés" class="interlanguage-link-target"><span>Basa Ugi</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/JavaScript" title="JavaScript – catalán" lang="ca" hreflang="ca" data-title="JavaScript" data-language-autonym="Català" data-language-local-name="catalán" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-cdo mw-list-item"><a href="https://cdo.wikipedia.org/wiki/JavaScript" title="JavaScript – Mindong" lang="cdo" hreflang="cdo" data-title="JavaScript" data-language-autonym="閩東語 / Mìng-dĕ̤ng-ngṳ̄" data-language-local-name="Mindong" class="interlanguage-link-target"><span>閩東語 / Mìng-dĕ̤ng-ngṳ̄</span></a></li><li class="interlanguage-link interwiki-ckb mw-list-item"><a href="https://ckb.wikipedia.org/wiki/%D8%AC%D8%A7%DA%A4%D8%A7%D8%B3%DA%A9%D8%B1%DB%8C%D9%BE%D8%AA" title="جاڤاسکریپت – kurdo central" lang="ckb" hreflang="ckb" data-title="جاڤاسکریپت" data-language-autonym="کوردی" data-language-local-name="kurdo central" class="interlanguage-link-target"><span>کوردی</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/JavaScript" title="JavaScript – checo" lang="cs" hreflang="cs" data-title="JavaScript" data-language-autonym="Čeština" data-language-local-name="checo" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-cv mw-list-item"><a href="https://cv.wikipedia.org/wiki/JavaScript" title="JavaScript – chuvaxo" lang="cv" hreflang="cv" data-title="JavaScript" data-language-autonym="Чӑвашла" data-language-local-name="chuvaxo" class="interlanguage-link-target"><span>Чӑвашла</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikipedia.org/wiki/JavaScript" title="JavaScript – dinamarqués" lang="da" hreflang="da" data-title="JavaScript" data-language-autonym="Dansk" data-language-local-name="dinamarqués" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/JavaScript" title="JavaScript – alemán" lang="de" hreflang="de" data-title="JavaScript" data-language-autonym="Deutsch" data-language-local-name="alemán" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-el mw-list-item"><a href="https://el.wikipedia.org/wiki/JavaScript" title="JavaScript – grego" lang="el" hreflang="el" data-title="JavaScript" data-language-autonym="Ελληνικά" data-language-local-name="grego" class="interlanguage-link-target"><span>Ελληνικά</span></a></li><li class="interlanguage-link interwiki-en mw-list-item"><a href="https://en.wikipedia.org/wiki/JavaScript" title="JavaScript – inglés" lang="en" hreflang="en" data-title="JavaScript" data-language-autonym="English" data-language-local-name="inglés" class="interlanguage-link-target"><span>English</span></a></li><li class="interlanguage-link interwiki-eo mw-list-item"><a href="https://eo.wikipedia.org/wiki/JavaScript" title="JavaScript – esperanto" lang="eo" hreflang="eo" data-title="JavaScript" data-language-autonym="Esperanto" data-language-local-name="esperanto" class="interlanguage-link-target"><span>Esperanto</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/JavaScript" title="JavaScript – español" lang="es" hreflang="es" data-title="JavaScript" data-language-autonym="Español" data-language-local-name="español" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-et mw-list-item"><a href="https://et.wikipedia.org/wiki/JavaScript" title="JavaScript – estoniano" lang="et" hreflang="et" data-title="JavaScript" data-language-autonym="Eesti" data-language-local-name="estoniano" class="interlanguage-link-target"><span>Eesti</span></a></li><li class="interlanguage-link interwiki-eu mw-list-item"><a href="https://eu.wikipedia.org/wiki/JavaScript" title="JavaScript – éuscaro" lang="eu" hreflang="eu" data-title="JavaScript" data-language-autonym="Euskara" data-language-local-name="éuscaro" class="interlanguage-link-target"><span>Euskara</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D8%AC%D8%A7%D9%88%D8%A7%D8%A7%D8%B3%DA%A9%D8%B1%DB%8C%D9%BE%D8%AA" title="جاوااسکریپت – persa" lang="fa" hreflang="fa" data-title="جاوااسکریپت" data-language-autonym="فارسی" data-language-local-name="persa" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/JavaScript" title="JavaScript – finés" lang="fi" hreflang="fi" data-title="JavaScript" data-language-autonym="Suomi" data-language-local-name="finés" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/JavaScript" title="JavaScript – francés" lang="fr" hreflang="fr" data-title="JavaScript" data-language-autonym="Français" data-language-local-name="francés" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-frr mw-list-item"><a href="https://frr.wikipedia.org/wiki/JavaScript" title="JavaScript – frisón setentrional" lang="frr" hreflang="frr" data-title="JavaScript" data-language-autonym="Nordfriisk" data-language-local-name="frisón setentrional" class="interlanguage-link-target"><span>Nordfriisk</span></a></li><li class="interlanguage-link interwiki-ha mw-list-item"><a href="https://ha.wikipedia.org/wiki/JavaScript" title="JavaScript – hausa" lang="ha" hreflang="ha" data-title="JavaScript" data-language-autonym="Hausa" data-language-local-name="hausa" class="interlanguage-link-target"><span>Hausa</span></a></li><li class="interlanguage-link interwiki-hak mw-list-item"><a href="https://hak.wikipedia.org/wiki/JavaScript" title="JavaScript – Hakka Chinese" lang="hak" hreflang="hak" data-title="JavaScript" data-language-autonym="客家語 / Hak-kâ-ngî" data-language-local-name="Hakka Chinese" class="interlanguage-link-target"><span>客家語 / Hak-kâ-ngî</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikipedia.org/wiki/JavaScript" title="JavaScript – hebreo" lang="he" hreflang="he" data-title="JavaScript" data-language-autonym="עברית" data-language-local-name="hebreo" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-hi mw-list-item"><a href="https://hi.wikipedia.org/wiki/%E0%A4%9C%E0%A4%BE%E0%A4%B5%E0%A4%BE%E0%A4%B8%E0%A5%8D%E0%A4%95%E0%A5%8D%E0%A4%B0%E0%A4%BF%E0%A4%AA%E0%A5%8D%E0%A4%9F" title="जावास्क्रिप्ट – hindi" lang="hi" hreflang="hi" data-title="जावास्क्रिप्ट" data-language-autonym="हिन्दी" data-language-local-name="hindi" class="interlanguage-link-target"><span>हिन्दी</span></a></li><li class="interlanguage-link interwiki-hr mw-list-item"><a href="https://hr.wikipedia.org/wiki/JavaScript" title="JavaScript – croata" lang="hr" hreflang="hr" data-title="JavaScript" data-language-autonym="Hrvatski" data-language-local-name="croata" class="interlanguage-link-target"><span>Hrvatski</span></a></li><li class="interlanguage-link interwiki-hu mw-list-item"><a href="https://hu.wikipedia.org/wiki/JavaScript" title="JavaScript – húngaro" lang="hu" hreflang="hu" data-title="JavaScript" data-language-autonym="Magyar" data-language-local-name="húngaro" class="interlanguage-link-target"><span>Magyar</span></a></li><li class="interlanguage-link interwiki-hy mw-list-item"><a href="https://hy.wikipedia.org/wiki/%D5%8B%D5%A1%D5%BE%D5%A1%D5%8D%D5%AF%D6%80%D5%AB%D5%BA%D5%BF" title="ՋավաՍկրիպտ – armenio" lang="hy" hreflang="hy" data-title="ՋավաՍկրիպտ" data-language-autonym="Հայերեն" data-language-local-name="armenio" class="interlanguage-link-target"><span>Հայերեն</span></a></li><li class="interlanguage-link interwiki-ia mw-list-item"><a href="https://ia.wikipedia.org/wiki/JavaScript" title="JavaScript – interlingua" lang="ia" hreflang="ia" data-title="JavaScript" data-language-autonym="Interlingua" data-language-local-name="interlingua" class="interlanguage-link-target"><span>Interlingua</span></a></li><li class="interlanguage-link interwiki-id mw-list-item"><a href="https://id.wikipedia.org/wiki/JavaScript" title="JavaScript – indonesio" lang="id" hreflang="id" data-title="JavaScript" data-language-autonym="Bahasa Indonesia" data-language-local-name="indonesio" class="interlanguage-link-target"><span>Bahasa Indonesia</span></a></li><li class="interlanguage-link interwiki-io mw-list-item"><a href="https://io.wikipedia.org/wiki/JavaScript" title="JavaScript – ido" lang="io" hreflang="io" data-title="JavaScript" data-language-autonym="Ido" data-language-local-name="ido" class="interlanguage-link-target"><span>Ido</span></a></li><li class="interlanguage-link interwiki-is mw-list-item"><a href="https://is.wikipedia.org/wiki/JavaScript" title="JavaScript – islandés" lang="is" hreflang="is" data-title="JavaScript" data-language-autonym="Íslenska" data-language-local-name="islandés" class="interlanguage-link-target"><span>Íslenska</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/JavaScript" title="JavaScript – italiano" lang="it" hreflang="it" data-title="JavaScript" data-language-autonym="Italiano" data-language-local-name="italiano" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/JavaScript" title="JavaScript – xaponés" lang="ja" hreflang="ja" data-title="JavaScript" data-language-autonym="日本語" data-language-local-name="xaponés" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-jv mw-list-item"><a href="https://jv.wikipedia.org/wiki/JavaScript" title="JavaScript – xavanés" lang="jv" hreflang="jv" data-title="JavaScript" data-language-autonym="Jawa" data-language-local-name="xavanés" class="interlanguage-link-target"><span>Jawa</span></a></li><li class="interlanguage-link interwiki-ka mw-list-item"><a href="https://ka.wikipedia.org/wiki/JavaScript" title="JavaScript – xeorxiano" lang="ka" hreflang="ka" data-title="JavaScript" data-language-autonym="ქართული" data-language-local-name="xeorxiano" class="interlanguage-link-target"><span>ქართული</span></a></li><li class="interlanguage-link interwiki-kaa mw-list-item"><a href="https://kaa.wikipedia.org/wiki/JavaScript" title="JavaScript – Kara-Kalpak" lang="kaa" hreflang="kaa" data-title="JavaScript" data-language-autonym="Qaraqalpaqsha" data-language-local-name="Kara-Kalpak" class="interlanguage-link-target"><span>Qaraqalpaqsha</span></a></li><li class="interlanguage-link interwiki-kab mw-list-item"><a href="https://kab.wikipedia.org/wiki/JavaScript" title="JavaScript – cabila" lang="kab" hreflang="kab" data-title="JavaScript" data-language-autonym="Taqbaylit" data-language-local-name="cabila" class="interlanguage-link-target"><span>Taqbaylit</span></a></li><li class="interlanguage-link interwiki-kk mw-list-item"><a href="https://kk.wikipedia.org/wiki/JavaScript" title="JavaScript – kazako" lang="kk" hreflang="kk" data-title="JavaScript" data-language-autonym="Қазақша" data-language-local-name="kazako" class="interlanguage-link-target"><span>Қазақша</span></a></li><li class="interlanguage-link interwiki-km mw-list-item"><a href="https://km.wikipedia.org/wiki/JavaScript" title="JavaScript – khmer" lang="km" hreflang="km" data-title="JavaScript" data-language-autonym="ភាសាខ្មែរ" data-language-local-name="khmer" class="interlanguage-link-target"><span>ភាសាខ្មែរ</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8" title="자바스크립트 – coreano" lang="ko" hreflang="ko" data-title="자바스크립트" data-language-autonym="한국어" data-language-local-name="coreano" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-ku mw-list-item"><a href="https://ku.wikipedia.org/wiki/JavaScript" title="JavaScript – kurdo" lang="ku" hreflang="ku" data-title="JavaScript" data-language-autonym="Kurdî" data-language-local-name="kurdo" class="interlanguage-link-target"><span>Kurdî</span></a></li><li class="interlanguage-link interwiki-ky mw-list-item"><a href="https://ky.wikipedia.org/wiki/JavaScript" title="JavaScript – kirguiz" lang="ky" hreflang="ky" data-title="JavaScript" data-language-autonym="Кыргызча" data-language-local-name="kirguiz" class="interlanguage-link-target"><span>Кыргызча</span></a></li><li class="interlanguage-link interwiki-la mw-list-item"><a href="https://la.wikipedia.org/wiki/JavaScript" title="JavaScript – latín" lang="la" hreflang="la" data-title="JavaScript" data-language-autonym="Latina" data-language-local-name="latín" class="interlanguage-link-target"><span>Latina</span></a></li><li class="interlanguage-link interwiki-lfn mw-list-item"><a href="https://lfn.wikipedia.org/wiki/JavaScript" title="JavaScript – Lingua Franca Nova" lang="lfn" hreflang="lfn" data-title="JavaScript" data-language-autonym="Lingua Franca Nova" data-language-local-name="Lingua Franca Nova" class="interlanguage-link-target"><span>Lingua Franca Nova</span></a></li><li class="interlanguage-link interwiki-lmo mw-list-item"><a href="https://lmo.wikipedia.org/wiki/JavaScript" title="JavaScript – Lombard" lang="lmo" hreflang="lmo" data-title="JavaScript" data-language-autonym="Lombard" data-language-local-name="Lombard" class="interlanguage-link-target"><span>Lombard</span></a></li><li class="interlanguage-link interwiki-lt mw-list-item"><a href="https://lt.wikipedia.org/wiki/JavaScript" title="JavaScript – lituano" lang="lt" hreflang="lt" data-title="JavaScript" data-language-autonym="Lietuvių" data-language-local-name="lituano" class="interlanguage-link-target"><span>Lietuvių</span></a></li><li class="interlanguage-link interwiki-lv mw-list-item"><a href="https://lv.wikipedia.org/wiki/JavaScript" title="JavaScript – letón" lang="lv" hreflang="lv" data-title="JavaScript" data-language-autonym="Latviešu" data-language-local-name="letón" class="interlanguage-link-target"><span>Latviešu</span></a></li><li class="interlanguage-link interwiki-mk mw-list-item"><a href="https://mk.wikipedia.org/wiki/JavaScript" title="JavaScript – macedonio" lang="mk" hreflang="mk" data-title="JavaScript" data-language-autonym="Македонски" data-language-local-name="macedonio" class="interlanguage-link-target"><span>Македонски</span></a></li><li class="interlanguage-link interwiki-ml mw-list-item"><a href="https://ml.wikipedia.org/wiki/%E0%B4%9C%E0%B4%BE%E0%B4%B5%E0%B4%BE%E0%B4%B8%E0%B5%8D%E0%B4%95%E0%B5%8D%E0%B4%B0%E0%B4%BF%E0%B4%AA%E0%B5%8D%E0%B4%B1%E0%B5%8D%E0%B4%B1%E0%B5%8D" title="ജാവാസ്ക്രിപ്റ്റ് – malabar" lang="ml" hreflang="ml" data-title="ജാവാസ്ക്രിപ്റ്റ്" data-language-autonym="മലയാളം" data-language-local-name="malabar" class="interlanguage-link-target"><span>മലയാളം</span></a></li><li class="interlanguage-link interwiki-mn mw-list-item"><a href="https://mn.wikipedia.org/wiki/JavaScript" title="JavaScript – mongol" lang="mn" hreflang="mn" data-title="JavaScript" data-language-autonym="Монгол" data-language-local-name="mongol" class="interlanguage-link-target"><span>Монгол</span></a></li><li class="interlanguage-link interwiki-mr mw-list-item"><a href="https://mr.wikipedia.org/wiki/%E0%A4%9C%E0%A4%BE%E0%A4%B5%E0%A4%BE%E0%A4%B8%E0%A5%8D%E0%A4%95%E0%A5%8D%E0%A4%B0%E0%A4%BF%E0%A4%AA%E0%A5%8D%E0%A4%9F" title="जावास्क्रिप्ट – marathi" lang="mr" hreflang="mr" data-title="जावास्क्रिप्ट" data-language-autonym="मराठी" data-language-local-name="marathi" class="interlanguage-link-target"><span>मराठी</span></a></li><li class="interlanguage-link interwiki-ms mw-list-item"><a href="https://ms.wikipedia.org/wiki/JavaScript" title="JavaScript – malaio" lang="ms" hreflang="ms" data-title="JavaScript" data-language-autonym="Bahasa Melayu" data-language-local-name="malaio" class="interlanguage-link-target"><span>Bahasa Melayu</span></a></li><li class="interlanguage-link interwiki-my mw-list-item"><a href="https://my.wikipedia.org/wiki/JavaScript" title="JavaScript – birmano" lang="my" hreflang="my" data-title="JavaScript" data-language-autonym="မြန်မာဘာသာ" data-language-local-name="birmano" class="interlanguage-link-target"><span>မြန်မာဘာသာ</span></a></li><li class="interlanguage-link interwiki-mzn mw-list-item"><a href="https://mzn.wikipedia.org/wiki/%D8%AC%D8%A7%D9%88%D8%A7%D8%A7%D8%B3%DA%A9%D8%B1%DB%8C%D9%BE%D8%AA" title="جاوااسکریپت – mazandaraní" lang="mzn" hreflang="mzn" data-title="جاوااسکریپت" data-language-autonym="مازِرونی" data-language-local-name="mazandaraní" class="interlanguage-link-target"><span>مازِرونی</span></a></li><li class="interlanguage-link interwiki-ne mw-list-item"><a href="https://ne.wikipedia.org/wiki/%E0%A4%9C%E0%A4%BE%E0%A4%AD%E0%A4%BE%E0%A4%B8%E0%A5%8D%E0%A4%95%E0%A5%8D%E0%A4%B0%E0%A4%BF%E0%A4%AA%E0%A5%8D%E0%A4%9F" title="जाभास्क्रिप्ट – nepalí" lang="ne" hreflang="ne" data-title="जाभास्क्रिप्ट" data-language-autonym="नेपाली" data-language-local-name="nepalí" class="interlanguage-link-target"><span>नेपाली</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/JavaScript" title="JavaScript – neerlandés" lang="nl" hreflang="nl" data-title="JavaScript" data-language-autonym="Nederlands" data-language-local-name="neerlandés" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/JavaScript" title="JavaScript – noruegués bokmål" lang="nb" hreflang="nb" data-title="JavaScript" data-language-autonym="Norsk bokmål" data-language-local-name="noruegués bokmål" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-or mw-list-item"><a href="https://or.wikipedia.org/wiki/%E0%AC%9C%E0%AC%BE%E0%AC%AD%E0%AC%BE%E0%AC%B8%E0%AD%8D%E0%AC%95%E0%AD%8D%E0%AC%B0%E0%AC%BF%E0%AC%AA%E0%AD%8D%E0%AC%9F" title="ଜାଭାସ୍କ୍ରିପ୍ଟ – odiá" lang="or" hreflang="or" data-title="ଜାଭାସ୍କ୍ରିପ୍ଟ" data-language-autonym="ଓଡ଼ିଆ" data-language-local-name="odiá" class="interlanguage-link-target"><span>ଓଡ଼ିଆ</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikipedia.org/wiki/JavaScript" title="JavaScript – polaco" lang="pl" hreflang="pl" data-title="JavaScript" data-language-autonym="Polski" data-language-local-name="polaco" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pnb mw-list-item"><a href="https://pnb.wikipedia.org/wiki/%D8%AC%D8%A7%D9%88%D8%A7_%D8%B3%DA%A9%D8%B1%D9%BE%D9%B9" title="جاوا سکرپٹ – Western Punjabi" lang="pnb" hreflang="pnb" data-title="جاوا سکرپٹ" data-language-autonym="پنجابی" data-language-local-name="Western Punjabi" class="interlanguage-link-target"><span>پنجابی</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/JavaScript" title="JavaScript – portugués" lang="pt" hreflang="pt" data-title="JavaScript" data-language-autonym="Português" data-language-local-name="portugués" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-pwn mw-list-item"><a href="https://pwn.wikipedia.org/wiki/JavaScript" title="JavaScript – Paiwan" lang="pwn" hreflang="pwn" data-title="JavaScript" data-language-autonym="Pinayuanan" data-language-local-name="Paiwan" class="interlanguage-link-target"><span>Pinayuanan</span></a></li><li class="interlanguage-link interwiki-qu mw-list-item"><a href="https://qu.wikipedia.org/wiki/JavaScript" title="JavaScript – quechua" lang="qu" hreflang="qu" data-title="JavaScript" data-language-autonym="Runa Simi" data-language-local-name="quechua" class="interlanguage-link-target"><span>Runa Simi</span></a></li><li class="interlanguage-link interwiki-ro mw-list-item"><a href="https://ro.wikipedia.org/wiki/JavaScript" title="JavaScript – romanés" lang="ro" hreflang="ro" data-title="JavaScript" data-language-autonym="Română" data-language-local-name="romanés" class="interlanguage-link-target"><span>Română</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/JavaScript" title="JavaScript – ruso" lang="ru" hreflang="ru" data-title="JavaScript" data-language-autonym="Русский" data-language-local-name="ruso" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-sah mw-list-item"><a href="https://sah.wikipedia.org/wiki/JavaScript" title="JavaScript – iacuto" lang="sah" hreflang="sah" data-title="JavaScript" data-language-autonym="Саха тыла" data-language-local-name="iacuto" class="interlanguage-link-target"><span>Саха тыла</span></a></li><li class="interlanguage-link interwiki-sco mw-list-item"><a href="https://sco.wikipedia.org/wiki/JavaScript" title="JavaScript – escocés" lang="sco" hreflang="sco" data-title="JavaScript" data-language-autonym="Scots" data-language-local-name="escocés" class="interlanguage-link-target"><span>Scots</span></a></li><li class="interlanguage-link interwiki-sh mw-list-item"><a href="https://sh.wikipedia.org/wiki/JavaScript" title="JavaScript – serbocroata" lang="sh" hreflang="sh" data-title="JavaScript" data-language-autonym="Srpskohrvatski / српскохрватски" data-language-local-name="serbocroata" class="interlanguage-link-target"><span>Srpskohrvatski / српскохрватски</span></a></li><li class="interlanguage-link interwiki-si mw-list-item"><a href="https://si.wikipedia.org/wiki/%E0%B6%A2%E0%B7%8F%E0%B7%80%E0%B7%8F_%E0%B6%8B%E0%B6%B4%E0%B6%AF%E0%B7%9A%E0%B7%81%E0%B7%8F%E0%B7%80%E0%B6%BD%E0%B7%92%E0%B6%BA" title="ජාවා උපදේශාවලිය – cingalés" lang="si" hreflang="si" data-title="ජාවා උපදේශාවලිය" data-language-autonym="සිංහල" data-language-local-name="cingalés" class="interlanguage-link-target"><span>සිංහල</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/JavaScript" title="JavaScript – Simple English" lang="en-simple" hreflang="en-simple" data-title="JavaScript" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-sk mw-list-item"><a href="https://sk.wikipedia.org/wiki/JavaScript" title="JavaScript – eslovaco" lang="sk" hreflang="sk" data-title="JavaScript" data-language-autonym="Slovenčina" data-language-local-name="eslovaco" class="interlanguage-link-target"><span>Slovenčina</span></a></li><li class="interlanguage-link interwiki-sl mw-list-item"><a href="https://sl.wikipedia.org/wiki/JavaScript" title="JavaScript – esloveno" lang="sl" hreflang="sl" data-title="JavaScript" data-language-autonym="Slovenščina" data-language-local-name="esloveno" class="interlanguage-link-target"><span>Slovenščina</span></a></li><li class="interlanguage-link interwiki-so mw-list-item"><a href="https://so.wikipedia.org/wiki/JavaScript" title="JavaScript – somalí" lang="so" hreflang="so" data-title="JavaScript" data-language-autonym="Soomaaliga" data-language-local-name="somalí" class="interlanguage-link-target"><span>Soomaaliga</span></a></li><li class="interlanguage-link interwiki-sq mw-list-item"><a href="https://sq.wikipedia.org/wiki/JavaScript" title="JavaScript – albanés" lang="sq" hreflang="sq" data-title="JavaScript" data-language-autonym="Shqip" data-language-local-name="albanés" class="interlanguage-link-target"><span>Shqip</span></a></li><li class="interlanguage-link interwiki-sr mw-list-item"><a href="https://sr.wikipedia.org/wiki/JavaScript" title="JavaScript – serbio" lang="sr" hreflang="sr" data-title="JavaScript" data-language-autonym="Српски / srpski" data-language-local-name="serbio" class="interlanguage-link-target"><span>Српски / srpski</span></a></li><li class="interlanguage-link interwiki-su mw-list-item"><a href="https://su.wikipedia.org/wiki/JavaScript" title="JavaScript – sundanés" lang="su" hreflang="su" data-title="JavaScript" data-language-autonym="Sunda" data-language-local-name="sundanés" class="interlanguage-link-target"><span>Sunda</span></a></li><li class="interlanguage-link interwiki-sv mw-list-item"><a href="https://sv.wikipedia.org/wiki/Javascript" title="Javascript – sueco" lang="sv" hreflang="sv" data-title="Javascript" data-language-autonym="Svenska" data-language-local-name="sueco" class="interlanguage-link-target"><span>Svenska</span></a></li><li class="interlanguage-link interwiki-sw mw-list-item"><a href="https://sw.wikipedia.org/wiki/JavaScript" title="JavaScript – suahili" lang="sw" hreflang="sw" data-title="JavaScript" data-language-autonym="Kiswahili" data-language-local-name="suahili" class="interlanguage-link-target"><span>Kiswahili</span></a></li><li class="interlanguage-link interwiki-ta mw-list-item"><a href="https://ta.wikipedia.org/wiki/%E0%AE%AF%E0%AE%BE%E0%AE%B5%E0%AE%BE%E0%AE%95%E0%AF%8D%E0%AE%95%E0%AE%BF%E0%AE%B1%E0%AE%BF%E0%AE%9F%E0%AF%8D%E0%AE%9F%E0%AF%81" title="யாவாக்கிறிட்டு – támil" lang="ta" hreflang="ta" data-title="யாவாக்கிறிட்டு" data-language-autonym="தமிழ்" data-language-local-name="támil" class="interlanguage-link-target"><span>தமிழ்</span></a></li><li class="interlanguage-link interwiki-te mw-list-item"><a href="https://te.wikipedia.org/wiki/%E0%B0%9C%E0%B0%BE%E0%B0%B5%E0%B0%BE%E0%B0%B8%E0%B1%8D%E0%B0%95%E0%B1%8D%E0%B0%B0%E0%B0%BF%E0%B0%AA%E0%B1%8D%E0%B0%9F%E0%B1%81" title="జావాస్క్రిప్టు – telugu" lang="te" hreflang="te" data-title="జావాస్క్రిప్టు" data-language-autonym="తెలుగు" data-language-local-name="telugu" class="interlanguage-link-target"><span>తెలుగు</span></a></li><li class="interlanguage-link interwiki-tet mw-list-item"><a href="https://tet.wikipedia.org/wiki/JavaScript" title="JavaScript – tetun" lang="tet" hreflang="tet" data-title="JavaScript" data-language-autonym="Tetun" data-language-local-name="tetun" class="interlanguage-link-target"><span>Tetun</span></a></li><li class="interlanguage-link interwiki-th mw-list-item"><a href="https://th.wikipedia.org/wiki/%E0%B8%88%E0%B8%B2%E0%B8%A7%E0%B8%B2%E0%B8%AA%E0%B8%84%E0%B8%A3%E0%B8%B4%E0%B8%9B%E0%B8%95%E0%B9%8C" title="จาวาสคริปต์ – tailandés" lang="th" hreflang="th" data-title="จาวาสคริปต์" data-language-autonym="ไทย" data-language-local-name="tailandés" class="interlanguage-link-target"><span>ไทย</span></a></li><li class="interlanguage-link interwiki-tk mw-list-item"><a href="https://tk.wikipedia.org/wiki/JavaScript" title="JavaScript – turkmeno" lang="tk" hreflang="tk" data-title="JavaScript" data-language-autonym="Türkmençe" data-language-local-name="turkmeno" class="interlanguage-link-target"><span>Türkmençe</span></a></li><li class="interlanguage-link interwiki-tl mw-list-item"><a href="https://tl.wikipedia.org/wiki/JavaScript" title="JavaScript – tagalo" lang="tl" hreflang="tl" data-title="JavaScript" data-language-autonym="Tagalog" data-language-local-name="tagalo" class="interlanguage-link-target"><span>Tagalog</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/JavaScript" title="JavaScript – turco" lang="tr" hreflang="tr" data-title="JavaScript" data-language-autonym="Türkçe" data-language-local-name="turco" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-tt mw-list-item"><a href="https://tt.wikipedia.org/wiki/JavaScript" title="JavaScript – tártaro" lang="tt" hreflang="tt" data-title="JavaScript" data-language-autonym="Татарча / tatarça" data-language-local-name="tártaro" class="interlanguage-link-target"><span>Татарча / tatarça</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/JavaScript" title="JavaScript – ucraíno" lang="uk" hreflang="uk" data-title="JavaScript" data-language-autonym="Українська" data-language-local-name="ucraíno" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-ur mw-list-item"><a href="https://ur.wikipedia.org/wiki/%D8%AC%D8%A7%D9%88%D8%A7_%D8%A7%D8%B3%DA%A9%D8%B1%D9%BE%D9%B9" title="جاوا اسکرپٹ – urdú" lang="ur" hreflang="ur" data-title="جاوا اسکرپٹ" data-language-autonym="اردو" data-language-local-name="urdú" class="interlanguage-link-target"><span>اردو</span></a></li><li class="interlanguage-link interwiki-uz mw-list-item"><a href="https://uz.wikipedia.org/wiki/JavaScript" title="JavaScript – uzbeko" lang="uz" hreflang="uz" data-title="JavaScript" data-language-autonym="Oʻzbekcha / ўзбекча" data-language-local-name="uzbeko" class="interlanguage-link-target"><span>Oʻzbekcha / ўзбекча</span></a></li><li class="interlanguage-link interwiki-vec mw-list-item"><a href="https://vec.wikipedia.org/wiki/JavaScript" title="JavaScript – Venetian" lang="vec" hreflang="vec" data-title="JavaScript" data-language-autonym="Vèneto" data-language-local-name="Venetian" class="interlanguage-link-target"><span>Vèneto</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/JavaScript" title="JavaScript – vietnamita" lang="vi" hreflang="vi" data-title="JavaScript" data-language-autonym="Tiếng Việt" data-language-local-name="vietnamita" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-wuu mw-list-item"><a href="https://wuu.wikipedia.org/wiki/JavaScript" title="JavaScript – chinés wu" lang="wuu" hreflang="wuu" data-title="JavaScript" data-language-autonym="吴语" data-language-local-name="chinés wu" class="interlanguage-link-target"><span>吴语</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/JavaScript" title="JavaScript – chinés" lang="zh" hreflang="zh" data-title="JavaScript" data-language-autonym="中文" data-language-local-name="chinés" class="interlanguage-link-target"><span>中文</span></a></li><li class="interlanguage-link interwiki-zh-classical mw-list-item"><a href="https://zh-classical.wikipedia.org/wiki/%E7%88%AA%E5%93%87%E6%89%8B%E7%A8%BF%E8%AA%9E" title="爪哇手稿語 – Literary Chinese" lang="lzh" hreflang="lzh" data-title="爪哇手稿語" data-language-autonym="文言" data-language-local-name="Literary Chinese" class="interlanguage-link-target"><span>文言</span></a></li><li class="interlanguage-link interwiki-zh-min-nan mw-list-item"><a href="https://zh-min-nan.wikipedia.org/wiki/JavaScript" title="JavaScript – Minnan" lang="nan" hreflang="nan" data-title="JavaScript" data-language-autonym="閩南語 / Bân-lâm-gú" data-language-local-name="Minnan" class="interlanguage-link-target"><span>閩南語 / Bân-lâm-gú</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/JavaScript" title="JavaScript – cantonés" lang="yue" hreflang="yue" data-title="JavaScript" data-language-autonym="粵語" data-language-local-name="cantonés" class="interlanguage-link-target"><span>粵語</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q2005#sitelinks-wikipedia" title="Editar as ligazóns interlingüísticas" class="wbc-editpage">Editar as ligazóns</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Espazos de nomes"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/JavaScript" title="Ver o contido da páxina [c]" accesskey="c"><span>Artigo</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Conversa:JavaScript" rel="discussion" title="Conversa acerca do contido desta páxina [t]" accesskey="t"><span>Conversa</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Cambiar a variante de lingua" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">galego</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Vistas"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/JavaScript"><span>Ler</span></a></li><li id="ca-ve-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=JavaScript&veaction=edit" title="Editar esta páxina [v]" accesskey="v"><span>Editar</span></a></li><li id="ca-edit" class="collapsible vector-tab-noicon mw-list-item"><a href="/w/index.php?title=JavaScript&action=edit" title="Editar o código fonte desta páxina [e]" accesskey="e"><span>Editar a fonte</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=JavaScript&action=history" title="Versións anteriores desta páxina [h]" accesskey="h"><span>Ver o historial</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Ferramentas das páxinas"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Ferramentas" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Ferramentas</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Ferramentas</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">mover á barra lateral</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">agochar</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="Máis opcións" > <div class="vector-menu-heading"> Accións </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/JavaScript"><span>Ler</span></a></li><li id="ca-more-ve-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=JavaScript&veaction=edit" title="Editar esta páxina [v]" accesskey="v"><span>Editar</span></a></li><li id="ca-more-edit" class="collapsible vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=JavaScript&action=edit" title="Editar o código fonte desta páxina [e]" accesskey="e"><span>Editar a fonte</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=JavaScript&action=history"><span>Ver o historial</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> Xeral </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Especial:P%C3%A1xinas_que_ligan_con_esta/JavaScript" title="Lista de todas as páxinas do wiki que ligan cara a aquí [j]" accesskey="j"><span>Páxinas que ligan con esta</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Especial:Cambios_relacionados/JavaScript" rel="nofollow" title="Cambios recentes nas páxinas ligadas desde esta [k]" accesskey="k"><span>Cambios relacionados</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Especial:P%C3%A1xinas_especiais" title="Lista de todas as páxinas especiais [q]" accesskey="q"><span>Páxinas especiais</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=JavaScript&oldid=6617393" title="Ligazón permanente a esta versión desta páxina"><span>Ligazón permanente</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=JavaScript&action=info" title="Máis información sobre esta páxina"><span>Información da páxina</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Especial:Cita&page=JavaScript&id=6617393&wpFormIdentifier=titleform" title="Información sobre como citar esta páxina"><span>Citar esta páxina</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Especial:UrlShortener&url=https%3A%2F%2Fgl.wikipedia.org%2Fwiki%2FJavaScript"><span>Xerar URL acurtado</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Especial:QrCode&url=https%3A%2F%2Fgl.wikipedia.org%2Fwiki%2FJavaScript"><span>Descargar o código QR</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Imprimir/exportar </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Especial:Libro&bookcmd=book_creator&referer=JavaScript"><span>Crear un libro</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Especial:DownloadAsPdf&page=JavaScript&action=show-download-screen"><span>Descargar como PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=JavaScript&printable=yes" title="Versión para imprimir da páxina [p]" accesskey="p"><span>Versión para imprimir</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> Noutros proxectos </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Category:JavaScript" hreflang="en"><span>Wikimedia Commons</span></a></li><li class="wb-otherproject-link wb-otherproject-mediawiki mw-list-item"><a href="https://www.mediawiki.org/wiki/JavaScript" hreflang="en"><span>MediaWiki</span></a></li><li class="wb-otherproject-link wb-otherproject-wikibooks mw-list-item"><a href="https://gl.wikibooks.org/wiki/JavaScript" hreflang="gl"><span>Wikibooks</span></a></li><li class="wb-otherproject-link wb-otherproject-wikifunctions mw-list-item"><a href="https://www.wikifunctions.org/wiki/Z600" hreflang="en"><span>Wikifunctions</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q2005" title="Ligazón ao elemento conectado no repositorio de datos [g]" accesskey="g"><span>Elemento de Wikidata</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Ferramentas das páxinas"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Aparencia"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Aparencia</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">mover á barra lateral</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">agochar</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">Na Galipedia, a Wikipedia en galego.</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="gl" dir="ltr"><table class="infobox" style="width:22em"><tbody><tr><th colspan="2" style="text-align:center;font-size:125%;font-weight:bold">JavaScript</th></tr><tr><td colspan="2" class="infobox-full-data infobox-data" style="text-align:center"><span typeof="mw:File"><a href="/wiki/Ficheiro:Unofficial_JavaScript_logo_2.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/9/99/Unofficial_JavaScript_logo_2.svg/70px-Unofficial_JavaScript_logo_2.svg.png" decoding="async" width="70" height="70" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/9/99/Unofficial_JavaScript_logo_2.svg/105px-Unofficial_JavaScript_logo_2.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/9/99/Unofficial_JavaScript_logo_2.svg/140px-Unofficial_JavaScript_logo_2.svg.png 2x" data-file-width="512" data-file-height="512" /></a></span></td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Paradigma_de_programaci%C3%B3n" title="Paradigma de programación">Paradigma</a></th><td class="infobox-data"><a href="/w/index.php?title=Programaci%C3%B3n_baseada_en_prototipos&action=edit&redlink=1" class="new" title="Programación baseada en prototipos (a páxina aínda non existe)">Baseado en prototipos</a>, <a href="/wiki/Programaci%C3%B3n_orientada_a_obxectos" title="Programación orientada a obxectos">Programación orientada a obxectos</a></td></tr><tr><th scope="row" class="infobox-label">Data</th><td class="infobox-data"><a href="/wiki/4_de_decembro" title="4 de decembro">4 de decembro</a> de <a href="/wiki/1995" title="1995">1995</a></td></tr><tr><th scope="row" class="infobox-label">Deseñador</th><td class="infobox-data"><a href="/w/index.php?title=Brendan_Eich&action=edit&redlink=1" class="new" title="Brendan Eich (a páxina aínda non existe)">Brendan Eich</a></td></tr><tr><th scope="row" class="infobox-label">Desenvolvedor</th><td class="infobox-data"><a href="/w/index.php?title=Netscape_Communications&action=edit&redlink=1" class="new" title="Netscape Communications (a páxina aínda non existe)">Netscape Communications</a>, <a href="/wiki/Mozilla_Foundation" class="mw-redirect" title="Mozilla Foundation">Mozilla Foundation</a></td></tr><tr><th scope="row" class="infobox-label">Última versión</th><td class="infobox-data">1.8.5<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span>[</span>1<span>]</span></a></sup></td></tr><tr><th scope="row" class="infobox-label">Tipo de dato</th><td class="infobox-data">Débil, dinámico</td></tr><tr><th scope="row" class="infobox-label">Postas en funcionamento</th><td class="infobox-data"><a href="/w/index.php?title=KJS&action=edit&redlink=1" class="new" title="KJS (a páxina aínda non existe)">KJS</a>, <a href="/w/index.php?title=Rhino&action=edit&redlink=1" class="new" title="Rhino (a páxina aínda non existe)">Rhino</a>, <a href="/w/index.php?title=SpiderMonkey&action=edit&redlink=1" class="new" title="SpiderMonkey (a páxina aínda non existe)">SpiderMonkey</a>, <a href="/w/index.php?title=V8_(JavaScript)&action=edit&redlink=1" class="new" title="V8 (JavaScript) (a páxina aínda non existe)">V8</a>, <a href="/w/index.php?title=Carakan&action=edit&redlink=1" class="new" title="Carakan (a páxina aínda non existe)">Carakan</a>, <a href="/w/index.php?title=Chakra&action=edit&redlink=1" class="new" title="Chakra (a páxina aínda non existe)">Chakra</a></td></tr><tr><th scope="row" class="infobox-label">Dialectos</th><td class="infobox-data">JavaScript estándar e JScript (Javascript para <a href="/wiki/Internet_Explorer" title="Internet Explorer">IE</a>)</td></tr><tr><th scope="row" class="infobox-label">Influído por</th><td class="infobox-data"><a href="/wiki/Linguaxe_Java" class="mw-redirect" title="Linguaxe Java">Java</a></td></tr><tr><th scope="row" class="infobox-label">Influíu</th><td class="infobox-data"><a href="/wiki/ActionScript" title="ActionScript">ActionScript</a>, <a href="/w/index.php?title=AtScript&action=edit&redlink=1" class="new" title="AtScript (a páxina aínda non existe)">AtScript</a>, <a href="/w/index.php?title=CoffeeScript&action=edit&redlink=1" class="new" title="CoffeeScript (a páxina aínda non existe)">CoffeeScript</a>, <a href="/w/index.php?title=Dart&action=edit&redlink=1" class="new" title="Dart (a páxina aínda non existe)">Dart</a>, <a href="/w/index.php?title=JScript_.NET&action=edit&redlink=1" class="new" title="JScript .NET (a páxina aínda non existe)">JScript .NET</a>, <a href="/w/index.php?title=Objective-J&action=edit&redlink=1" class="new" title="Objective-J (a páxina aínda non existe)">Objective-J</a>, <a href="/w/index.php?title=QML&action=edit&redlink=1" class="new" title="QML (a páxina aínda non existe)">QML</a>, <a href="/w/index.php?title=TypeScript&action=edit&redlink=1" class="new" title="TypeScript (a páxina aínda non existe)">TypeScript</a>, <a href="/w/index.php?title=LiveScript&action=edit&redlink=1" class="new" title="LiveScript (a páxina aínda non existe)">LiveScript</a></td></tr></tbody></table> <p><b>JavaScript</b> (<b>JS</b>) é unha <a href="/wiki/Linguaxe_interpretada" title="Linguaxe interpretada">linguaxe de programación interpretada</a>, é dicir, que non require <a href="/wiki/Compilaci%C3%B3n" title="Compilación">compilación</a>, utilizada principalmente en <a href="/wiki/P%C3%A1xina_web" title="Páxina web">páxinas web</a>, cunha sintaxe semellante á da <a href="/wiki/Linguaxe_Java" class="mw-redirect" title="Linguaxe Java">Linguaxe Java</a> e a <a href="/wiki/Linguaxe_de_programaci%C3%B3n_C" class="mw-redirect" title="Linguaxe de programación C">linguaxe C</a>. </p><p>Ao contrario que <a href="/wiki/Linguaxe_Java" class="mw-redirect" title="Linguaxe Java">Java</a>, JavaScript non é unha linguaxe <a href="/wiki/Programaci%C3%B3n_orientada_a_obxectos" title="Programación orientada a obxectos">orientada a obxectos</a> propiamente<sup id="cite_ref-ECMA-262_2-0" class="reference"><a href="#cite_note-ECMA-262-2"><span>[</span>2<span>]</span></a></sup>, xa que non dispón de <a href="/w/index.php?title=Herdanza_(programaci%C3%B3n_orientada_a_obxectos)&action=edit&redlink=1" class="new" title="Herdanza (programación orientada a obxectos) (a páxina aínda non existe)">herdanza</a>, é máis ben unha linguaxe <a href="/w/index.php?title=Programaci%C3%B3n_baseada_en_prototipos&action=edit&redlink=1" class="new" title="Programación baseada en prototipos (a páxina aínda non existe)">baseado en prototipos</a>, xa que as novas clases xéranse clonando as clases base (prototipos) e estendendo a súa funcionalidade.<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span>[</span>3<span>]</span></a></sup> </p><p>Todos os <a href="/wiki/Navegador_web" title="Navegador web">navegadores</a> interpretan o código JavaScript integrado dentro das páxinas web. Para interactuar cunha páxina web provese á linguaxe JavaScript dun desenvolvemento do <a href="/w/index.php?title=DOM&action=edit&redlink=1" class="new" title="DOM (a páxina aínda non existe)">DOM</a>. O seu uso máis estendido atópase en páxinas web <a href="/wiki/HTML" title="HTML">HTML</a> para realizar tarefas e operacións no marco da aplicación unicamente cliente, sen acceso a funcións do servidor. JavaScript execútase no <a href="/w/index.php?title=Axente_de_usuario&action=edit&redlink=1" class="new" title="Axente de usuario (a páxina aínda non existe)">axente de usuario</a> ao mesmo tempo que as sentenzas van descargándose xunto co código <a href="/wiki/HTML" title="HTML">HTML</a>. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Historia">Historia</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=JavaScript&veaction=edit&section=1" title="Editar a sección: «Historia»" class="mw-editsection-visualeditor"><span>editar</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=JavaScript&action=edit&section=1" title="Editar o código fonte da sección: Historia"><span>editar a fonte</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading3"><h3 id="Comezos">Comezos</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=JavaScript&veaction=edit&section=2" title="Editar a sección: «Comezos»" class="mw-editsection-visualeditor"><span>editar</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=JavaScript&action=edit&section=2" title="Editar o código fonte da sección: Comezos"><span>editar a fonte</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>A linguaxe foi inicialmente definida por <a href="/w/index.php?title=Brendan_Eich&action=edit&redlink=1" class="new" title="Brendan Eich (a páxina aínda non existe)">Brendan Eich</a> na empresa <a href="/w/index.php?title=Netscape_Communications&action=edit&redlink=1" class="new" title="Netscape Communications (a páxina aínda non existe)">Netscape Communications</a>. Netscape buscaba unha linguaxe interpretada máis lixeira que complementase á linguaxe <a href="/wiki/Linguaxe_Java" class="mw-redirect" title="Linguaxe Java">Java</a> atraendo a programadores non profesionais dunha forma semellante ao <a href="/w/index.php?title=Microsoft_Visual_Basic&action=edit&redlink=1" class="new" title="Microsoft Visual Basic (a páxina aínda non existe)">Microsoft Visual Basic</a>.<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span>[</span>4<span>]</span></a></sup> </p><p>Inicialmente déuselle o nome de <i>Mocha</i>, e posteriormente <i>LiveScript</i> nas súas primeiras inclusións en versións beta do <a href="/w/index.php?title=Netscape_Navigator_2.0&action=edit&redlink=1" class="new" title="Netscape Navigator 2.0 (a páxina aínda non existe)">Netscape Navigator 2.0</a>, en setembro de <a href="/wiki/1995" title="1995">1995</a>. Foi renomeada coma JavaScript nun anuncio conxunto de Netscape e Sun<sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span>[</span>5<span>]</span></a></sup> cando se lanzou na versión 2.0B3 do navegador de Netscape.<sup id="cite_ref-techvision_6-0" class="reference"><a href="#cite_note-techvision-6"><span>[</span>6<span>]</span></a></sup> </p><p>O nome final de <i>JavaScript</i> causou confusión dando a impresión de que a linguaxe era derivada de <a href="/wiki/Linguaxe_Java" class="mw-redirect" title="Linguaxe Java">Java</a>, polo que a elección do nome foi caracterizada coma unha manobra de mercadotecnia de Netscape para darlle máis renome grazas á popularidade da outra linguaxe.<sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span>[</span>7<span>]</span></a></sup><sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span>[</span>8<span>]</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="Adopción_por_parte_de_Microsoft"><span id="Adopci.C3.B3n_por_parte_de_Microsoft"></span>Adopción por parte de Microsoft</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=JavaScript&veaction=edit&section=3" title="Editar a sección: «Adopción por parte de Microsoft»" class="mw-editsection-visualeditor"><span>editar</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=JavaScript&action=edit&section=3" title="Editar o código fonte da sección: Adopción por parte de Microsoft"><span>editar a fonte</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>As tecnoloxías de <a href="/wiki/Microsoft_Windows" title="Microsoft Windows">Microsoft Windows</a> <a href="/w/index.php?title=VBScript&action=edit&redlink=1" class="new" title="VBScript (a páxina aínda non existe)">VBScript</a> e <a href="/w/index.php?title=JScript&action=edit&redlink=1" class="new" title="JScript (a páxina aínda non existe)">JScript</a> lanzáronse en <a href="/wiki/1996" title="1996">1996</a>. JScript, adaptado dende o JavaScript de Netscape, formou parte do lanzamento o 16 de xullo de 1996 do <a href="/w/index.php?title=Internet_Explorer_3&action=edit&redlink=1" class="new" title="Internet Explorer 3 (a páxina aínda non existe)">Internet Explorer 3</a>, ademais de incluírse do lado do servidor no <a href="/w/index.php?title=Internet_Information_Server&action=edit&redlink=1" class="new" title="Internet Information Server (a páxina aínda non existe)">Internet Information Server</a>. IE3 tamén incluíu o primeiro soporte de Microsoft para <a href="/wiki/CSS" title="CSS">CSS</a> e varias extensións de <a href="/wiki/HTML" title="HTML">HTML</a>, pero os desenvolvementos eran notablemente diferentes ás do <a href="/wiki/Netscape_Navigator" title="Netscape Navigator">Netscape Navigator</a>.<sup id="cite_ref-O'Reilly-2001_9-0" class="reference"><a href="#cite_note-O'Reilly-2001-9"><span>[</span>9<span>]</span></a></sup><sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span>[</span>10<span>]</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="Estandarización"><span id="Estandarizaci.C3.B3n"></span>Estandarización</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=JavaScript&veaction=edit&section=4" title="Editar a sección: «Estandarización»" class="mw-editsection-visualeditor"><span>editar</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=JavaScript&action=edit&section=4" title="Editar o código fonte da sección: Estandarización"><span>editar a fonte</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>En <a href="/wiki/1997" title="1997">1997</a> os autores propuxeron JavaScript para que fose adoptado como estándar da <i>European Computer Manufacturers Association (<a href="/w/index.php?title=ECMA&action=edit&redlink=1" class="new" title="ECMA (a páxina aínda non existe)">ECMA</a>)</i>, que a pesar do seu nome non é europea senón internacional, con sede en <a href="/wiki/Xenebra,_Su%C3%ADza" title="Xenebra, Suíza">Xenebra</a>. En <a href="/wiki/Xu%C3%B1o" title="Xuño">xuño</a> de <a href="/wiki/1997" title="1997">1997</a> foi adoptado como un estándar ECMA, co nome de <a href="/w/index.php?title=ECMAScript&action=edit&redlink=1" class="new" title="ECMAScript (a páxina aínda non existe)">ECMAScript</a>. En <a href="/wiki/1998" title="1998">1998</a> foi a linguaxe foi adaptada á <a href="/wiki/ISO" class="mw-redirect" title="ISO">ISO/IEC-16262</a>. A última versión do estándar <a href="/w/index.php?title=ECMAScript&action=edit&redlink=1" class="new" title="ECMAScript (a páxina aínda non existe)">ECMAScript</a> é a 5.1, que data do ano <a href="/wiki/2011" title="2011">2011</a>.<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span>[</span>11<span>]</span></a></sup> </p><p>Ademais, para evitar incompatibilidades, o <a href="/wiki/World_Wide_Web_Consortium" title="World Wide Web Consortium">World Wide Web Consortium</a> deseñou o estándar <a href="/w/index.php?title=Document_Object_Model&action=edit&redlink=1" class="new" title="Document Object Model (a páxina aínda non existe)">Document Object Model</a> (DOM, o Modelo de Documento Obxecto), que incorporan <a href="/wiki/Konqueror" title="Konqueror">Konqueror</a>, as versións 6 de <a href="/wiki/Internet_Explorer" title="Internet Explorer">Internet Explorer</a> e <a href="/wiki/Netscape_Navigator" title="Netscape Navigator">Netscape Navigator</a>, <a href="/wiki/Opera_(navegador)" title="Opera (navegador)">Opera</a> versión 7, e <a href="/wiki/Mozilla_Application_Suite" title="Mozilla Application Suite">Mozilla Application Suite</a> e <a href="/wiki/Mozilla_Firefox" title="Mozilla Firefox">Mozilla Firefox</a> desde a súa primeira versión. </p> <div class="mw-heading mw-heading2"><h2 id="Características"><span id="Caracter.C3.ADsticas"></span>Características</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=JavaScript&veaction=edit&section=5" title="Editar a sección: «Características»" class="mw-editsection-visualeditor"><span>editar</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=JavaScript&action=edit&section=5" title="Editar o código fonte da sección: Características"><span>editar a fonte</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Algunhas das características compartidas polas distintas versións de JavaScript son: </p> <ul><li><b>Imperativa e estruturada</b></li> <li><b>Dinámica</b> <ul><li>Uso de tipos dinámicos</li> <li>Baseada en <a href="/w/index.php?title=Obxecto_(inform%C3%A1tica&action=edit&redlink=1" class="new" title="Obxecto (informática (a páxina aínda non existe)">obxectos</a></li> <li>Capacidades de <a href="/w/index.php?title=Avaliaci%C3%B3n_en_tempo_de_execuci%C3%B3n&action=edit&redlink=1" class="new" title="Avaliación en tempo de execución (a páxina aínda non existe)">avaliación en tempo de execución</a></li></ul></li> <li><b>Funcional</b> <ul><li>Uso de <a href="/w/index.php?title=Funci%C3%B3n_de_primeira_clase&action=edit&redlink=1" class="new" title="Función de primeira clase (a páxina aínda non existe)">funcións de primeira clase</a></li></ul></li> <li><b>Baseada en prototipos</b> <ul><li>Uso de <a href="/w/index.php?title=Prototipo&action=edit&redlink=1" class="new" title="Prototipo (a páxina aínda non existe)">prototipos</a></li> <li>Uso de funcións como construtoras de obxectos</li> <li>Uso de funcións coma <a href="/w/index.php?title=M%C3%A9todo_(inform%C3%A1tica&action=edit&redlink=1" class="new" title="Método (informática (a páxina aínda non existe)">métodos</a></li></ul></li> <li><b>Delegación explícita e implícita</b> <ul><li>Uso de funcións coma roles</li> <li>Composición de obxectos e herdos</li></ul></li></ul> <div class="mw-heading mw-heading2"><h2 id="Exemplos_de_sintaxe">Exemplos de sintaxe</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=JavaScript&veaction=edit&section=6" title="Editar a sección: «Exemplos de sintaxe»" class="mw-editsection-visualeditor"><span>editar</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=JavaScript&action=edit&section=6" title="Editar o código fonte da sección: Exemplos de sintaxe"><span>editar a fonte</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading4"><h4 id="Definición_de_variables"><span id="Definici.C3.B3n_de_variables"></span>Definición de variables</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=JavaScript&veaction=edit&section=7" title="Editar a sección: «Definición de variables»" class="mw-editsection-visualeditor"><span>editar</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=JavaScript&action=edit&section=7" title="Editar o código fonte da sección: Definición de variables"><span>editar a fonte</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>As <a href="/w/index.php?title=Variable_(inform%C3%A1tica)&action=edit&redlink=1" class="new" title="Variable (informática) (a páxina aínda non existe)">variables</a> en JavaScript defínense empregando a palabra chave <kbd>var</kbd><sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span>[</span>12<span>]</span></a></sup> </p> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">var</span><span class="w"> </span><span class="nx">x</span><span class="p">;</span><span class="w"> </span><span class="c1">// defines the variable x, although no value is assigned to it by default</span> <span class="kd">var</span><span class="w"> </span><span class="nx">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">2</span><span class="p">;</span><span class="w"> </span><span class="c1">// defines the variable y and assigns the value of 2 to it</span> </pre></div> <p>Os <a href="/w/index.php?title=Comentario_(programaci%C3%B3n)&action=edit&redlink=1" class="new" title="Comentario (programación) (a páxina aínda non existe)">comentarios</a> do exemplo anterior van precedidos polos caractéres "//". </p> <div class="mw-heading mw-heading4"><h4 id="Función_recursiva"><span id="Funci.C3.B3n_recursiva"></span>Función recursiva</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=JavaScript&veaction=edit&section=8" title="Editar a sección: «Función recursiva»" class="mw-editsection-visualeditor"><span>editar</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=JavaScript&action=edit&section=8" title="Editar o código fonte da sección: Función recursiva"><span>editar a fonte</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Unha <a href="/w/index.php?title=Recursividade_(inform%C3%A1tica)&action=edit&redlink=1" class="new" title="Recursividade (informática) (a páxina aínda non existe)">función recursiva</a> sinxela sería da forma: </p> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">function</span><span class="w"> </span><span class="nx">factorial</span><span class="p">(</span><span class="nx">n</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nx">n</span><span class="w"> </span><span class="o">===</span><span class="w"> </span><span class="mf">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mf">1</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nx">n</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nx">factorial</span><span class="p">(</span><span class="nx">n</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mf">1</span><span class="p">);</span> <span class="p">}</span> </pre></div> <div class="mw-heading mw-heading4"><h4 id="Exemplo_avanzado">Exemplo avanzado</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=JavaScript&veaction=edit&section=9" title="Editar a sección: «Exemplo avanzado»" class="mw-editsection-visualeditor"><span>editar</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=JavaScript&action=edit&section=9" title="Editar o código fonte da sección: Exemplo avanzado"><span>editar a fonte</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Cálculo do <a href="/wiki/M%C3%ADnimo_com%C3%BAn_m%C3%BAltiplo" title="Mínimo común múltiplo">mínimo común múltiplo</a> de dous números: </p> <div style="overflow:auto;"> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="cm">/* Finds the lowest common multiple (LCM) of two numbers */</span> <span class="kd">function</span><span class="w"> </span><span class="nx">LCMCalculator</span><span class="p">(</span><span class="nx">x</span><span class="p">,</span><span class="w"> </span><span class="nx">y</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// constructor function</span> <span class="w"> </span><span class="kd">var</span><span class="w"> </span><span class="nx">checkInt</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="kd">function</span><span class="w"> </span><span class="p">(</span><span class="nx">x</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// inner function</span> <span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nx">x</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="mf">1</span><span class="w"> </span><span class="o">!==</span><span class="w"> </span><span class="mf">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">throw</span><span class="w"> </span><span class="ow">new</span><span class="w"> </span><span class="ne">TypeError</span><span class="p">(</span><span class="nx">x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="s2">" is not an integer"</span><span class="p">);</span><span class="w"> </span><span class="c1">// throw an exception</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nx">x</span><span class="p">;</span> <span class="w"> </span><span class="p">};</span> <span class="w"> </span><span class="k">this</span><span class="p">.</span><span class="nx">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">checkInt</span><span class="p">(</span><span class="nx">x</span><span class="p">)</span> <span class="w"> </span><span class="c1">// semicolons ^^^^ are optional, a newline is enough</span> <span class="w"> </span><span class="k">this</span><span class="p">.</span><span class="nx">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">checkInt</span><span class="p">(</span><span class="nx">y</span><span class="p">);</span> <span class="p">}</span> <span class="c1">// The prototype of object instances created by a constructor is</span> <span class="c1">// that constructor's "prototype" property.</span> <span class="nx">LCMCalculator</span><span class="p">.</span><span class="nx">prototype</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// object literal</span> <span class="w"> </span><span class="kr">constructor</span><span class="o">:</span><span class="w"> </span><span class="nx">LCMCalculator</span><span class="p">,</span><span class="w"> </span><span class="c1">// when reassigning a prototype, set the constructor property appropriately</span> <span class="w"> </span><span class="nx">gcd</span><span class="o">:</span><span class="w"> </span><span class="kd">function</span><span class="w"> </span><span class="p">()</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// method that calculates the greatest common divisor</span> <span class="w"> </span><span class="c1">// Euclidean algorithm:</span> <span class="w"> </span><span class="kd">var</span><span class="w"> </span><span class="nx">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">Math</span><span class="p">.</span><span class="nx">abs</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">a</span><span class="p">),</span><span class="w"> </span><span class="nx">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">Math</span><span class="p">.</span><span class="nx">abs</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">b</span><span class="p">),</span><span class="w"> </span><span class="nx">t</span><span class="p">;</span> <span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nx">a</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="nx">b</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="c1">// swap variables</span> <span class="w"> </span><span class="nx">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">b</span><span class="p">;</span> <span class="w"> </span><span class="nx">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">a</span><span class="p">;</span> <span class="w"> </span><span class="nx">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">t</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="nx">b</span><span class="w"> </span><span class="o">!==</span><span class="w"> </span><span class="mf">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="nx">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">b</span><span class="p">;</span> <span class="w"> </span><span class="nx">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">a</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="nx">b</span><span class="p">;</span> <span class="w"> </span><span class="nx">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">t</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="c1">// Only need to calculate GCD once, so "redefine" this method.</span> <span class="w"> </span><span class="c1">// (Actually not redefinition—it's defined on the instance itself,</span> <span class="w"> </span><span class="c1">// so that this.gcd refers to this "redefinition" instead of LCMCalculator.prototype.gcd.</span> <span class="w"> </span><span class="c1">// Note that this leads to a wrong result if the LCMCalculator object members "a" and/or "b" are altered afterwards.)</span> <span class="w"> </span><span class="c1">// Also, 'gcd' === "gcd", this['gcd'] === this.gcd</span> <span class="w"> </span><span class="k">this</span><span class="p">[</span><span class="s1">'gcd'</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="kd">function</span><span class="w"> </span><span class="p">()</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nx">a</span><span class="p">;</span> <span class="w"> </span><span class="p">};</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nx">a</span><span class="p">;</span> <span class="w"> </span><span class="p">},</span> <span class="w"> </span><span class="c1">// Object property names can be specified by strings delimited by double (") or single (') quotes.</span> <span class="w"> </span><span class="nx">lcm</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="kd">function</span><span class="w"> </span><span class="p">()</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="c1">// Variable names don't collide with object properties, e.g., |lcm| is not |this.lcm|.</span> <span class="w"> </span><span class="c1">// not using |this.a * this.b| to avoid FP precision issues</span> <span class="w"> </span><span class="kd">var</span><span class="w"> </span><span class="nx">lcm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="k">this</span><span class="p">.</span><span class="nx">a</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="k">this</span><span class="p">.</span><span class="nx">gcd</span><span class="p">()</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">this</span><span class="p">.</span><span class="nx">b</span><span class="p">;</span> <span class="w"> </span><span class="c1">// Only need to calculate lcm once, so "redefine" this method.</span> <span class="w"> </span><span class="k">this</span><span class="p">.</span><span class="nx">lcm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="kd">function</span><span class="w"> </span><span class="p">()</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nx">lcm</span><span class="p">;</span> <span class="w"> </span><span class="p">};</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nx">lcm</span><span class="p">;</span> <span class="w"> </span><span class="p">},</span> <span class="w"> </span><span class="nx">toString</span><span class="o">:</span><span class="w"> </span><span class="kd">function</span><span class="w"> </span><span class="p">()</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="s2">"LCMCalculator: a = "</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="k">this</span><span class="p">.</span><span class="nx">a</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="s2">", b = "</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="k">this</span><span class="p">.</span><span class="nx">b</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="p">};</span> <span class="c1">// Define generic output function; this implementation only works for Web browsers</span> <span class="kd">function</span><span class="w"> </span><span class="nx">output</span><span class="p">(</span><span class="nx">x</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">createTextNode</span><span class="p">(</span><span class="nx">x</span><span class="p">));</span> <span class="w"> </span><span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">'br'</span><span class="p">));</span> <span class="p">}</span> <span class="c1">// Note: Array's map() and forEach() are defined in JavaScript 1.6.</span> <span class="c1">// They are used here to demonstrate JavaScript's inherent functional nature.</span> <span class="p">[[</span><span class="mf">25</span><span class="p">,</span><span class="w"> </span><span class="mf">55</span><span class="p">],</span><span class="w"> </span><span class="p">[</span><span class="mf">21</span><span class="p">,</span><span class="w"> </span><span class="mf">56</span><span class="p">],</span><span class="w"> </span><span class="p">[</span><span class="mf">22</span><span class="p">,</span><span class="w"> </span><span class="mf">58</span><span class="p">],</span><span class="w"> </span><span class="p">[</span><span class="mf">28</span><span class="p">,</span><span class="w"> </span><span class="mf">56</span><span class="p">]].</span><span class="nx">map</span><span class="p">(</span><span class="kd">function</span><span class="w"> </span><span class="p">(</span><span class="nx">pair</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// array literal + mapping function</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="ow">new</span><span class="w"> </span><span class="nx">LCMCalculator</span><span class="p">(</span><span class="nx">pair</span><span class="p">[</span><span class="mf">0</span><span class="p">],</span><span class="w"> </span><span class="nx">pair</span><span class="p">[</span><span class="mf">1</span><span class="p">]);</span> <span class="p">}).</span><span class="nx">sort</span><span class="p">(</span><span class="kd">function</span><span class="w"> </span><span class="p">(</span><span class="nx">a</span><span class="p">,</span><span class="w"> </span><span class="nx">b</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// sort with this comparative function</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nx">a</span><span class="p">.</span><span class="nx">lcm</span><span class="p">()</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="nx">b</span><span class="p">.</span><span class="nx">lcm</span><span class="p">();</span> <span class="p">}).</span><span class="nx">forEach</span><span class="p">(</span><span class="kd">function</span><span class="w"> </span><span class="p">(</span><span class="nx">obj</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="nx">output</span><span class="p">(</span><span class="nx">obj</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="s2">", gcd = "</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="nx">obj</span><span class="p">.</span><span class="nx">gcd</span><span class="p">()</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="s2">", lcm = "</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="nx">obj</span><span class="p">.</span><span class="nx">lcm</span><span class="p">());</span> <span class="p">});</span> </pre></div> </div> <p>Esta función dará coma resultado nun navegador: </p> <div style="overflow:auto;"> <div class="mw-highlight mw-highlight-lang-html mw-content-ltr" dir="ltr"><pre><span></span>LCMCalculator: a = 28, b = 56, gcd = 28, lcm = 56 LCMCalculator: a = 21, b = 56, gcd = 7, lcm = 168 LCMCalculator: a = 25, b = 55, gcd = 5, lcm = 275 LCMCalculator: a = 22, b = 58, gcd = 2, lcm = 638 </pre></div> </div> <div class="mw-heading mw-heading2"><h2 id="Uso_en_páxinas_web"><span id="Uso_en_p.C3.A1xinas_web"></span>Uso en páxinas web</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=JavaScript&veaction=edit&section=10" title="Editar a sección: «Uso en páxinas web»" class="mw-editsection-visualeditor"><span>editar</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=JavaScript&action=edit&section=10" title="Editar o código fonte da sección: Uso en páxinas web"><span>editar a fonte</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="detail principal"> <dl><dd><span><span><i>Véxase tamén</i><i>:</i> <a href="/w/index.php?title=HTML_din%C3%A1mico&action=edit&redlink=1" class="new" title="HTML dinámico (a páxina aínda non existe)">HTML dinámico</a>.</span></span></dd></dl></div> <p>O uso máis común do JavaScript é engadir comportamentos do lado do cliente ás páxinas <a href="/wiki/HTML" title="HTML">HTML</a>, o que se coñece coma <a href="/w/index.php?title=HTML_din%C3%A1mico&action=edit&redlink=1" class="new" title="HTML dinámico (a páxina aínda non existe)">HTML dinámico</a> (DHTML). Os <a href="/wiki/Gui%C3%B3n_(inform%C3%A1tica)" title="Guión (informática)">guións</a> inclúense dende as páxinas <a href="/wiki/HTML" title="HTML">HTML</a> e interactúan co <a href="/w/index.php?title=DOM&action=edit&redlink=1" class="new" title="DOM (a páxina aínda non existe)">DOM</a> da páxina. </p><p>Debido a que o código do JavaScript pode executarse localmente no <a href="/w/index.php?title=Navegador_(inform%C3%A1tica)&action=edit&redlink=1" class="new" title="Navegador (informática) (a páxina aínda non existe)">navegador</a> do usuario no canto de facelo nun <a href="/w/index.php?title=Servidor_(inform%C3%A1tica)&action=edit&redlink=1" class="new" title="Servidor (informática) (a páxina aínda non existe)">servidor</a>, o navegador pode responder ás accións do usuario de forma rápida, facendo que as aplicacións teñan un tempo de resposta maior. Ademais, o código JavaScript pode detectar accións de usuario que o HTML non pode por si mesmo. Moitas aplicacións, coma por exemplo <a href="/wiki/Gmail" title="Gmail">Gmail</a>, aprovéitanse destas funcións, empregando JavaScript na súas lóxicas de <a href="/wiki/Interface_de_usuario" title="Interface de usuario">interface de usuario</a>. </p> <div class="mw-heading mw-heading2"><h2 id="Notas">Notas</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=JavaScript&veaction=edit&section=11" title="Editar a sección: «Notas»" class="mw-editsection-visualeditor"><span>editar</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=JavaScript&action=edit&section=11" title="Editar o código fonte da sección: Notas"><span>editar a fonte</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="reflist" style="list-style-type: decimal;"> <ol class="references"> <li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text"><cite class="citation web">Developer.mozilla.org, ed. (18 de novembro de 2012). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20181225073419/https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/1.8.5">"New in JavaScript 1.8.5 | Mozilla Developer Network"</a> <span style="font-style: italic;">(en inglés)</span>. Arquivado dende <a rel="nofollow" class="external text" href="https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.8.5">o orixinal</a> o 25 de decembro de 2018<span class="reference-accessdate">. Consultado o 26 de maio de 2013</span>.</cite><span title="ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fgl.wikipedia.org%3AJavaScript&rft.btitle=New+in+JavaScript+1.8.5+%26%23124%3B+Mozilla+Developer+Network&rft.genre=unknown&rft_id=https%3A%2F%2Fdeveloper.mozilla.org%2Fen%2FJavaScript%2FNew_in_JavaScript%2F1.8.5&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook" class="Z3988"><span style="display:none;"> </span></span></span> </li> <li id="cite_note-ECMA-262-2"><span class="mw-cite-backlink"><a href="#cite_ref-ECMA-262_2-0">↑</a></span> <span class="reference-text"><cite class="citation web"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20150412040502/http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf">"ECMAScript Language Specification"</a> <span style="font-size:85%;">(PDF)</span> <span style="font-style: italic;">(en inglés)</span>. Arquivado dende <a rel="nofollow" class="external text" href="http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf">o orixinal</a> <span style="font-size:85%;">(PDF)</span> o 12 de abril de 2015<span class="reference-accessdate">. Consultado o 17 de marzo de 2015</span>.</cite><span title="ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fgl.wikipedia.org%3AJavaScript&rft.btitle=ECMAScript+Language+Specification&rft.genre=unknown&rft_id=http%3A%2F%2Fwww.ecma-international.org%2Fpublications%2Ffiles%2FECMA-ST%2FECMA-262.pdf&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook" class="Z3988"><span style="display:none;"> </span></span></span> </li> <li id="cite_note-3"><span class="mw-cite-backlink"><a href="#cite_ref-3">↑</a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="http://www.crockford.com/javascript/little.html">The Little JavaScripter</a> <i>(en <a href="/wiki/Lingua_inglesa" title="Lingua inglesa">inglés</a>)</i></span> </li> <li id="cite_note-4"><span class="mw-cite-backlink"><a href="#cite_ref-4">↑</a></span> <span class="reference-text"><cite class="citation news">Severance, Charles (febreiro de 2012). <a rel="nofollow" class="external text" href="http://www.computer.org/csdl/mags/co/2012/02/mco2012020007-abs.html">"JavaScript: Designing a Language in 10 Days"</a>. <i>Computer</i> <span style="font-style: italic;">(en inglés)</span> <b>45</b> (2) (IEEE Computer Society). pp. 7–8. <a href="/wiki/Digital_object_identifier" title="Digital object identifier">doi</a>:<a rel="nofollow" class="external text" href="https://dx.doi.org/10.1109%2FMC.2012.57">10.1109/MC.2012.57</a><span class="reference-accessdate">. Consultado o 23 de marzo de 2013</span>.</cite><span title="ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fgl.wikipedia.org%3AJavaScript&rft.atitle=JavaScript%3A+Designing+a+Language+in+10+Days&rft.aufirst=Charles&rft.aulast=Severance&rft.chron=febreiro+de+2012&rft.genre=article&rft.issue=2&rft.jtitle=Computer&rft.pages=7-8&rft.volume=45&rft_id=http%3A%2F%2Fwww.computer.org%2Fcsdl%2Fmags%2Fco%2F2012%2F02%2Fmco2012020007-abs.html&rft_id=info%3Adoi%2F10.1109%2FMC.2012.57&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal" class="Z3988"><span style="display:none;"> </span></span></span> </li> <li id="cite_note-5"><span class="mw-cite-backlink"><a href="#cite_ref-5">↑</a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20070916144913/http://wp.netscape.com/newsref/pr/newsrelease67.html">Press release announcing JavaScript</a>, "Netscape and Sun announce JavaScript", PR Newswire. 4 de decembro de 1995 <i>(en <a href="/wiki/Lingua_inglesa" title="Lingua inglesa">inglés</a>)</i></span> </li> <li id="cite_note-techvision-6"><span class="mw-cite-backlink"><a href="#cite_ref-techvision_6-0">↑</a></span> <span class="reference-text"><cite class="citation web"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20080208124612/http://wp.netscape.com/comprod/columns/techvision/innovators_be.html">"TechVision: Innovators of the Net: Brendan Eich and JavaScript"</a> <span style="font-style: italic;">(en inglés)</span>. Web.archive.org. Arquivado dende <a rel="nofollow" class="external text" href="http://wp.netscape.com/comprod/columns/techvision/innovators_be.html">o orixinal</a> o 08 de febreiro de 2008<span class="reference-accessdate">. Consultado o 17 de marzo de 2015</span>.</cite><span title="ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fgl.wikipedia.org%3AJavaScript&rft.btitle=TechVision%3A+Innovators+of+the+Net%3A+Brendan+Eich+and+JavaScript&rft.genre=unknown&rft.pub=Web.archive.org&rft_id=http%3A%2F%2Fwp.netscape.com%2Fcomprod%2Fcolumns%2Ftechvision%2Finnovators_be.html&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook" class="Z3988"><span style="display:none;"> </span></span></span> </li> <li id="cite_note-7"><span class="mw-cite-backlink"><a href="#cite_ref-7">↑</a></span> <span class="reference-text"><cite class="citation web"><a rel="nofollow" class="external text" href="http://www.webdevelopersnotes.com/basics/languages_on_the_internet.php3">"Programming languages used on the Internet and the World Wide Web (WWW)"</a> <span style="font-style: italic;">(en inglés)</span>. Webdevelopersnotes.com<span class="reference-accessdate">. Consultado o 19 de maio de 2009</span>.</cite><span title="ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fgl.wikipedia.org%3AJavaScript&rft.btitle=Programming+languages+used+on+the+Internet+and+the+World+Wide+Web+%28WWW%29&rft.genre=unknown&rft.pub=Webdevelopersnotes.com&rft_id=http%3A%2F%2Fwww.webdevelopersnotes.com%2Fbasics%2Flanguages_on_the_internet.php3&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook" class="Z3988"><span style="display:none;"> </span></span></span> </li> <li id="cite_note-8"><span class="mw-cite-backlink"><a href="#cite_ref-8">↑</a></span> <span class="reference-text"><cite class="citation web"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20081208130508/http://safari.oreilly.com/0596101996/jscript5-CHP-1">"O'Reilly - Safari Books Online - 0596101996 - JavaScript: The Definitive Guide, 5th Edition"</a> <span style="font-style: italic;">(en inglés)</span>. Safari.oreilly.com. Arquivado dende <a rel="nofollow" class="external text" href="http://safari.oreilly.com/0596101996/jscript5-CHP-1">o orixinal</a> o 08 de decembro de 2008<span class="reference-accessdate">. Consultado o 19 de maio de 2009</span>.</cite><span title="ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fgl.wikipedia.org%3AJavaScript&rft.btitle=O%27Reilly+-+Safari+Books+Online+-+0596101996+-+JavaScript%3A+The+Definitive+Guide%2C+5th+Edition&rft.genre=unknown&rft.pub=Safari.oreilly.com&rft_id=http%3A%2F%2Fsafari.oreilly.com%2F0596101996%2Fjscript5-CHP-1&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook" class="Z3988"><span style="display:none;"> </span></span></span> </li> <li id="cite_note-O'Reilly-2001-9"><span class="mw-cite-backlink"><a href="#cite_ref-O'Reilly-2001_9-0">↑</a></span> <span class="reference-text"><cite class="citation web">Champeon, Steve (4 de xuño de 2001). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20160719020828/http://archive.oreilly.com/pub/a/javascript/2001/04/06/js_history.html">"JavaScript: How Did We Get Here?"</a>. O'Reilly Media. Arquivado dende <a rel="nofollow" class="external text" href="http://archive.oreilly.com/pub/a/javascript/2001/04/06/js_history.html">o orixinal</a> o 19 de xullo de 2016<span class="reference-accessdate">. Consultado o 9 de marzo de 2015</span>.</cite><span title="ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fgl.wikipedia.org%3AJavaScript&rft.aufirst=Steve&rft.aulast=Champeon&rft.btitle=JavaScript%3A+How+Did+We+Get+Here%3F&rft.genre=unknown&rft.pub=O%27Reilly+Media&rft_id=http%3A%2F%2Farchive.oreilly.com%2Fpub%2Fa%2Fjavascript%2F2001%2F04%2F06%2Fjs_history.html&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook" class="Z3988"><span style="display:none;"> </span></span></span> </li> <li id="cite_note-10"><span class="mw-cite-backlink"><a href="#cite_ref-10">↑</a></span> <span class="reference-text"><cite class="citation web"><a rel="nofollow" class="external text" href="http://news.microsoft.com/1996/05/29/microsoft-internet-explorer-3-0-beta-now-available/">"Microsoft Internet Explorer 3.0 Beta Now Available"</a>. Microsoft. 29 de maio de 1996<span class="reference-accessdate">. Consultado o 9 de marzo de 2015</span>.</cite><span title="ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fgl.wikipedia.org%3AJavaScript&rft.btitle=Microsoft+Internet+Explorer+3.0+Beta+Now+Available&rft.genre=unknown&rft.pub=Microsoft&rft_id=http%3A%2F%2Fnews.microsoft.com%2F1996%2F05%2F29%2Fmicrosoft-internet-explorer-3-0-beta-now-available%2F&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook" class="Z3988"><span style="display:none;"> </span></span></span> </li> <li id="cite_note-11"><span class="mw-cite-backlink"><a href="#cite_ref-11">↑</a></span> <span class="reference-text"><cite class="citation web"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20150412040502/http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf">"Standard ECMA-262"</a> <span style="font-size:85%;">(PDF)</span>. Arquivado dende <a rel="nofollow" class="external text" href="http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf">o orixinal</a> <span style="font-size:85%;">(PDF)</span> o 12 de abril de 2015<span class="reference-accessdate">. Consultado o 26 de maio de 2013</span>.</cite><span title="ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fgl.wikipedia.org%3AJavaScript&rft.btitle=Standard+ECMA-262&rft.genre=unknown&rft_id=http%3A%2F%2Fwww.ecma-international.org%2Fpublications%2Ffiles%2FECMA-ST%2FEcma-262.pdf&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook" class="Z3988"><span style="display:none;"> </span></span></span> </li> <li id="cite_note-12"><span class="mw-cite-backlink"><a href="#cite_ref-12">↑</a></span> <span class="reference-text"><cite class="citation web"><a rel="nofollow" class="external text" href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Statements/var">"var - JavaScript - MDN"</a>. The <a href="/w/index.php?title=Mozilla_Developer_Network&action=edit&redlink=1" class="new" title="Mozilla Developer Network (a páxina aínda non existe)">Mozilla Developer Network</a><span class="reference-accessdate">. Consultado o 22 de decembro do 2012</span>.</cite><span title="ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fgl.wikipedia.org%3AJavaScript&rft.btitle=var+-+JavaScript+-+MDN&rft.genre=unknown&rft.pub=The+Mozilla+Developer+Network&rft_id=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FJavaScript%2FReference%2FStatements%2Fvar&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook" class="Z3988"><span style="display:none;"> </span></span></span> </li> </ol></div> <div class="mw-heading mw-heading2"><h2 id="Véxase_tamén"><span id="V.C3.A9xase_tam.C3.A9n"></span>Véxase tamén</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=JavaScript&veaction=edit&section=12" title="Editar a sección: «Véxase tamén»" class="mw-editsection-visualeditor"><span>editar</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=JavaScript&action=edit&section=12" title="Editar o código fonte da sección: Véxase tamén"><span>editar a fonte</span></a><span class="mw-editsection-bracket">]</span></span></div> <table role="presentation" class="mbox-small plainlinks sistersitebox" style="background-color:var(--background-color-neutral-subtle, #f8f9fa);border:1px solid var(--border-color-base, #a2a9b1);color:inherit"> <tbody><tr> <td class="mbox-image"><span class="noviewer" typeof="mw:File"><span><img src="//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/30px-Commons-logo.svg.png" decoding="async" width="30" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/45px-Commons-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/59px-Commons-logo.svg.png 2x" data-file-width="1024" data-file-height="1376" /></span></span></td> <td class="mbox-text plainlist"><a href="https://commons.wikimedia.org/wiki/Portada_galega" class="extiw" title="commons:Portada galega">Wikimedia Commons</a> ten máis contidos multimedia na categoría:  <i><b><a href="https://commons.wikimedia.org/wiki/Category:JavaScript" class="extiw" title="commons:Category:JavaScript">JavaScript</a> <span typeof="mw:File"><a href="https://www.wikidata.org/wiki/Q2005" title="Modificar a ligazón no Wikidata"><img alt="Modificar a ligazón no Wikidata" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/63/Arbcom_ru_editing.svg/12px-Arbcom_ru_editing.svg.png" decoding="async" width="12" height="12" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/63/Arbcom_ru_editing.svg/18px-Arbcom_ru_editing.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/63/Arbcom_ru_editing.svg/24px-Arbcom_ru_editing.svg.png 2x" data-file-width="600" data-file-height="600" /></a></span></b></i></td></tr> </tbody></table> <table role="presentation" class="mbox-small plainlinks sistersitebox" style="background-color:var(--background-color-neutral-subtle, #f8f9fa);border:1px solid var(--border-color-base, #a2a9b1);color:inherit"> <tbody><tr> <td class="mbox-image"><span class="noviewer" typeof="mw:File"><span><img src="//upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/40px-Wikibooks-logo.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/60px-Wikibooks-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/80px-Wikibooks-logo.svg.png 2x" data-file-width="300" data-file-height="300" /></span></span></td> <td class="mbox-text plainlist">O <a href="https://gl.wikibooks.org/wiki/Main_Page" class="extiw" title="b:Main Page">Galilibros</a> ten un manual sobre:  <i><b><a href="https://gl.wikibooks.org/wiki/JavaScript" class="extiw" title="b:JavaScript">JavaScript</a></b></i></td></tr> </tbody></table> <div class="mw-heading mw-heading3"><h3 id="Outros_artigos">Outros artigos</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=JavaScript&veaction=edit&section=13" title="Editar a sección: «Outros artigos»" class="mw-editsection-visualeditor"><span>editar</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=JavaScript&action=edit&section=13" title="Editar o código fonte da sección: Outros artigos"><span>editar a fonte</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/AJAX" title="AJAX">AJAX</a></li></ul> <div class="mw-heading mw-heading3"><h3 id="Bibliografía"><span id="Bibliograf.C3.ADa"></span>Bibliografía</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=JavaScript&veaction=edit&section=14" title="Editar a sección: «Bibliografía»" class="mw-editsection-visualeditor"><span>editar</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=JavaScript&action=edit&section=14" title="Editar o código fonte da sección: Bibliografía"><span>editar a fonte</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><cite class="citation book">Duffy, Scott (2003). <a rel="nofollow" class="external text" href="https://archive.org/details/howtodoeverythin0000duff"><i>How to do Everything with JavaScript</i></a> <span style="font-style: italic;">(en inglés)</span>. Osborne. <a href="/wiki/ISBN" title="ISBN">ISBN</a> <a href="/wiki/Especial:Fontes_bibliogr%C3%A1ficas/0-07-222887-3" title="Especial:Fontes bibliográficas/0-07-222887-3">0-07-222887-3</a>.</cite><span title="ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fgl.wikipedia.org%3AJavaScript&rft.aufirst=Scott&rft.aulast=Duffy&rft.btitle=How+to+do+Everything+with+JavaScript&rft.date=2003&rft.genre=book&rft.isbn=0-07-222887-3&rft.pub=Osborne&rft_id=https%3A%2F%2Farchive.org%2Fdetails%2Fhowtodoeverythin0000duff&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook" class="Z3988"><span style="display:none;"> </span></span></li> <li><cite class="citation book">Flanagan, David; Ferguson, Paula (2002). <a rel="nofollow" class="external text" href="https://archive.org/details/javascriptdefin100flan"><i>JavaScript: The Definitive Guide</i></a> (4.ª ed.). <a href="/wiki/ISBN" title="ISBN">ISBN</a> <a href="/wiki/Especial:Fontes_bibliogr%C3%A1ficas/0-596-00048-0" title="Especial:Fontes bibliográficas/0-596-00048-0">0-596-00048-0</a>.</cite><span title="ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fgl.wikipedia.org%3AJavaScript&rft.au=Ferguson%2C+Paula&rft.aufirst=David&rft.aulast=Flanagan&rft.btitle=JavaScript%3A+The+Definitive+Guide&rft.date=2002&rft.edition=4.%AA&rft.genre=book&rft.isbn=0-596-00048-0&rft_id=https%3A%2F%2Farchive.org%2Fdetails%2Fjavascriptdefin100flan&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook" class="Z3988"><span style="display:none;"> </span></span></li> <li><cite class="citation book">Goodman, Danny; Eich, Brendan (2001). <a rel="nofollow" class="external text" href="https://archive.org/details/javascriptbible00dann"><i>JavaScript Bible</i></a> <span style="font-style: italic;">(en inglés)</span>. John Wiley & Sons. <a href="/wiki/ISBN" title="ISBN">ISBN</a> <a href="/wiki/Especial:Fontes_bibliogr%C3%A1ficas/0-7645-3342-8" title="Especial:Fontes bibliográficas/0-7645-3342-8">0-7645-3342-8</a>.</cite><span title="ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fgl.wikipedia.org%3AJavaScript&rft.au=Eich%2C+Brendan&rft.aufirst=Danny&rft.aulast=Goodman&rft.btitle=JavaScript+Bible&rft.date=2001&rft.genre=book&rft.isbn=0-7645-3342-8&rft.pub=John+Wiley+%26+Sons&rft_id=https%3A%2F%2Farchive.org%2Fdetails%2Fjavascriptbible00dann&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook" class="Z3988"><span style="display:none;"> </span></span></li> <li><cite class="citation book">Goodman, Danny; Markel, Scott (2003). <a rel="nofollow" class="external text" href="https://archive.org/details/javascriptdhtmlc00good"><i>JavaScript and DHTML Cookbook</i></a> <span style="font-style: italic;">(en inglés)</span>. O'Reilly & Associates. <a href="/wiki/ISBN" title="ISBN">ISBN</a> <a href="/wiki/Especial:Fontes_bibliogr%C3%A1ficas/0-596-00467-2" title="Especial:Fontes bibliográficas/0-596-00467-2">0-596-00467-2</a>.</cite><span title="ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fgl.wikipedia.org%3AJavaScript&rft.au=Markel%2C+Scott&rft.aufirst=Danny&rft.aulast=Goodman&rft.btitle=JavaScript+and+DHTML+Cookbook&rft.date=2003&rft.genre=book&rft.isbn=0-596-00467-2&rft.pub=O%27Reilly+%26+Associates&rft_id=https%3A%2F%2Farchive.org%2Fdetails%2Fjavascriptdhtmlc00good&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook" class="Z3988"><span style="display:none;"> </span></span></li></ul> <div class="mw-heading mw-heading3"><h3 id="Ligazóns_externas"><span id="Ligaz.C3.B3ns_externas"></span>Ligazóns externas</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=JavaScript&veaction=edit&section=15" title="Editar a sección: «Ligazóns externas»" class="mw-editsection-visualeditor"><span>editar</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=JavaScript&action=edit&section=15" title="Editar o código fonte da sección: Ligazóns externas"><span>editar a fonte</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a rel="nofollow" class="external text" href="https://web.archive.org/web/20080223000558/http://docs.sun.com/source/816-6408-10/contents.htm">referencia de JavaScript</a>, de Sun <i>(en <a href="/wiki/Lingua_inglesa" title="Lingua inglesa">inglés</a>)</i></li> <li><a rel="nofollow" class="external text" href="https://search.cpan.org/perldoc?JavaScript">Javascript</a> módulo <a href="/wiki/Perl" title="Perl">Perl</a> en <a href="/w/index.php?title=CPAN&action=edit&redlink=1" class="new" title="CPAN (a páxina aínda non existe)">CPAN</a> para executar JavaScript embebido en programas Perl, usando o motor SpiderMonkey <i>(en <a href="/wiki/Lingua_inglesa" title="Lingua inglesa">inglés</a>)</i></li> <li><a rel="nofollow" class="external text" href="https://search.cpan.org/perldoc?JE">JE</a> módulo Perl en CPAN. Un motor ECMAScript (JavaScript) escrito en Perl <i>(en <a href="/wiki/Lingua_inglesa" title="Lingua inglesa">inglés</a>)</i></li> <li><a rel="nofollow" class="external text" href="https://search.cpan.org/search?query=javascript&mode=module">módulos Perl para JavaScript en CPAN</a> <i>(en <a href="/wiki/Lingua_inglesa" title="Lingua inglesa">inglés</a>)</i></li></ul> <div role="navigation" class="navbox" aria-labelledby="Linguaxes_de_programación" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><div class="plainlinks hlist navbar mini"><ul><li class="nv-ver"><a href="/wiki/Modelo:Linguaxes_de_programaci%C3%B3n" title="Modelo:Linguaxes de programación"><abbr title="Ver o modelo">v</abbr></a></li><li class="nv-conversa"><a href="/wiki/Conversa_modelo:Linguaxes_de_programaci%C3%B3n" title="Conversa modelo:Linguaxes de programación"><abbr title="Conversa do modelo">c</abbr></a></li><li class="nv-editar"><a class="external text" href="https://gl.wikipedia.org/w/index.php?title=Modelo:Linguaxes_de_programaci%C3%B3n&action=edit"><abbr title="Editar o modelo">e</abbr></a></li></ul></div><div id="Linguaxes_de_programación" style="font-size:114%;margin:0 4em"><a href="/wiki/Linguaxe_de_programaci%C3%B3n" title="Linguaxe de programación">Linguaxes de programación</a></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/w/index.php?title=Linguaxes_de_programaci%C3%B3ns_de_baixo_nivel&action=edit&redlink=1" class="new" title="Linguaxes de programacións de baixo nivel (a páxina aínda non existe)">Baixo nivel</a></th><td class="navbox-list navbox-odd" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0px"><div style="padding:0em 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:10em;padding-left:0em;padding-right:0em;"><div style="padding:0em 0.75em;"><a href="/w/index.php?title=Linguaxes_de_programaci%C3%B3n_de_primeira_xeraci%C3%B3n&action=edit&redlink=1" class="new" title="Linguaxes de programación de primeira xeración (a páxina aínda non existe)">Primeira xeración</a></div></th><td class="navbox-list navbox-odd" style="text-align:left;border-left-width:2px;border-left-style:solid;padding:0px"><div style="padding:0em 0.25em"><a href="/wiki/C%C3%B3digo_m%C3%A1quina" title="Código máquina">Código máquina</a></div></td></tr><tr><th scope="row" class="navbox-group" style="width:10em;padding-left:0em;padding-right:0em;"><div style="padding:0em 0.75em;"><a href="/w/index.php?title=Linguaxes_de_programaci%C3%B3n_de_segunda_xeraci%C3%B3n&action=edit&redlink=1" class="new" title="Linguaxes de programación de segunda xeración (a páxina aínda non existe)">Segunda xeración</a></div></th><td class="navbox-list navbox-even" style="text-align:left;border-left-width:2px;border-left-style:solid;padding:0px"><div style="padding:0em 0.25em"><a href="/wiki/Linguaxe_ensambladora" title="Linguaxe ensambladora">Assembly</a></div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/w/index.php?title=Linguaxes_de_programaci%C3%B3n_de_alto_nivel&action=edit&redlink=1" class="new" title="Linguaxes de programación de alto nivel (a páxina aínda non existe)">Alto nivel</a></th><td class="navbox-list navbox-odd" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0px"><div style="padding:0em 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:10em;padding-left:0em;padding-right:0em;"><div style="padding:0em 0.75em;"><a href="/w/index.php?title=Linguaxes_de_programaci%C3%B3n_de_terceira_xeraci%C3%B3n&action=edit&redlink=1" class="new" title="Linguaxes de programación de terceira xeración (a páxina aínda non existe)">Terceira xeración</a></div></th><td class="navbox-list navbox-odd" style="text-align:left;border-left-width:2px;border-left-style:solid;padding:0px"><div style="padding:0em 0.25em"> <ul><li><a href="/w/index.php?title=A%2B_(linguaxe_de_programaci%C3%B3n)&action=edit&redlink=1" class="new" title="A+ (linguaxe de programación) (a páxina aínda non existe)">A+</a></li> <li><a href="/wiki/Linguaxe_de_programaci%C3%B3n_ABC" title="Linguaxe de programación ABC">ABC</a></li> <li><a href="/wiki/Algol" title="Algol">Algol</a></li> <li><a href="/wiki/Linguaxe_de_programaci%C3%B3n_B" title="Linguaxe de programación B">B</a></li> <li><a href="/wiki/BASIC" title="BASIC">BASIC</a></li> <li><a href="/wiki/C_(linguaxe_de_programaci%C3%B3n)" title="C (linguaxe de programación)">C</a></li> <li><a href="/wiki/C%2B%2B" title="C++">C++</a></li> <li><a href="/wiki/C_Sharp" title="C Sharp">C#</a></li> <li><a href="/wiki/COBOL" title="COBOL">COBOL</a></li> <li><a href="/w/index.php?title=CPL_(linguaxe_de_programaci%C3%B3n)&action=edit&redlink=1" class="new" title="CPL (linguaxe de programación) (a páxina aínda non existe)">CPL</a></li> <li><a href="/wiki/Linguaxe_de_programaci%C3%B3n_D" title="Linguaxe de programación D">D</a></li> <li><a href="/w/index.php?title=E_(linguaxe_de_programaci%C3%B3n)&action=edit&redlink=1" class="new" title="E (linguaxe de programación) (a páxina aínda non existe)">E</a></li> <li><a href="/w/index.php?title=Fortran&action=edit&redlink=1" class="new" title="Fortran (a páxina aínda non existe)">Fortran</a></li> <li><a href="/w/index.php?title=Go_(linguaxe_de_programaci%C3%B3n)&action=edit&redlink=1" class="new" title="Go (linguaxe de programación) (a páxina aínda non existe)">Go</a></li> <li><a href="/wiki/Java_(linguaxe_de_programaci%C3%B3n)" title="Java (linguaxe de programación)">Java</a></li> <li><a class="mw-selflink selflink">JavaScript</a></li> <li><a href="/wiki/Lisp" title="Lisp">Lisp</a></li> <li><a href="/wiki/Objective-C" title="Objective-C">Objective-C</a></li> <li><a href="/wiki/PL/1" title="PL/1">PL/1</a></li> <li><a href="/wiki/Linguaxe_Pascal" title="Linguaxe Pascal">Pascal</a></li> <li><a href="/w/index.php?title=Smalltalk&action=edit&redlink=1" class="new" title="Smalltalk (a páxina aínda non existe)">Smalltalk</a></li> <li><a href="/w/index.php?title=Visual_Basic_.NET&action=edit&redlink=1" class="new" title="Visual Basic .NET (a páxina aínda non existe)">Visual Basic .NET</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:10em;padding-left:0em;padding-right:0em;"><div style="padding:0em 0.75em;"><a href="/w/index.php?title=Linguaxes_de_programaci%C3%B3n_de_cuarta_xeraci%C3%B3n&action=edit&redlink=1" class="new" title="Linguaxes de programación de cuarta xeración (a páxina aínda non existe)">Cuarta xeración</a></div></th><td class="navbox-list navbox-even" style="text-align:left;border-left-width:2px;border-left-style:solid;padding:0px"><div style="padding:0em 0.25em"> <ul><li><a href="/w/index.php?title=Clarion_(linguaxe_de_programaci%C3%B3n)&action=edit&redlink=1" class="new" title="Clarion (linguaxe de programación) (a páxina aínda non existe)">Clarion</a></li> <li><a href="/wiki/Clipper_(linguaxe_de_programaci%C3%B3n)" title="Clipper (linguaxe de programación)">Clipper</a></li> <li><a href="/w/index.php?title=Clojure&action=edit&redlink=1" class="new" title="Clojure (a páxina aínda non existe)">Clojure</a></li> <li><a href="/wiki/Common_Lisp" title="Common Lisp">Common Lisp</a></li> <li><a href="/wiki/Erlang" title="Erlang">Erlang</a></li> <li><a href="/w/index.php?title=GNU_Octave&action=edit&redlink=1" class="new" title="GNU Octave (a páxina aínda non existe)">GNU Octave</a></li> <li><a href="/wiki/Haskell" title="Haskell">Haskell</a></li> <li><a href="/wiki/Lisp" title="Lisp">Lisp</a></li> <li><a href="/wiki/Lua" class="mw-redirect" title="Lua">Lua</a></li> <li><a href="/wiki/Julia" title="Julia">Julia</a></li> <li><a href="/wiki/Perl" title="Perl">Perl</a></li> <li><a href="/wiki/PHP" title="PHP">PHP</a></li> <li><a href="/wiki/Prolog" title="Prolog">Prolog</a></li> <li><a href="/wiki/Python" title="Python">Python</a></li> <li><a href="/wiki/R_(linguaxe_de_programaci%C3%B3n)" title="R (linguaxe de programación)">R</a></li> <li><a href="/wiki/Ruby" title="Ruby">Ruby</a></li> <li><a href="/w/index.php?title=Rust&action=edit&redlink=1" class="new" title="Rust (a páxina aínda non existe)">Rust</a></li> <li><a href="/w/index.php?title=S_(linguaxe_de_programaci%C3%B3n)&action=edit&redlink=1" class="new" title="S (linguaxe de programación) (a páxina aínda non existe)">S</a></li> <li><a href="/w/index.php?title=Scilab&action=edit&redlink=1" class="new" title="Scilab (a páxina aínda non existe)">Scilab</a></li> <li><a href="/w/index.php?title=Stata&action=edit&redlink=1" class="new" title="Stata (a páxina aínda non existe)">Stata</a></li> <li><a href="/wiki/SQL" title="SQL">SQL</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:10em;padding-left:0em;padding-right:0em;"><div style="padding:0em 0.75em;"><a href="/w/index.php?title=Linguaxes_de_programaci%C3%B3n_de_quinta_xeraci%C3%B3n&action=edit&redlink=1" class="new" title="Linguaxes de programación de quinta xeración (a páxina aínda non existe)">Quinta xeración</a></div></th><td class="navbox-list navbox-odd" style="text-align:left;border-left-width:2px;border-left-style:solid;padding:0px"><div style="padding:0em 0.25em"> <ul><li><a href="/wiki/Mercury" class="mw-redirect" title="Mercury">Mercury</a></li> <li><a href="/w/index.php?title=OPS5&action=edit&redlink=1" class="new" title="OPS5 (a páxina aínda non existe)">OPS5</a></li> <li><a href="/wiki/Prolog" title="Prolog">Prolog</a></li></ul> </div></td></tr></tbody></table><div></div></td></tr><tr><td class="navbox-abovebelow" colspan="2" style="font-size:90%"><div> <ul><li><a href="/w/index.php?title=Ambiente_de_desenvolvemento&action=edit&redlink=1" class="new" title="Ambiente de desenvolvemento (a páxina aínda non existe)">Ambiente de desenvolvemento</a></li> <li><a href="/w/index.php?title=Metaprogramaci%C3%B3n&action=edit&redlink=1" class="new" title="Metaprogramación (a páxina aínda non existe)">Metaprogramación</a></li> <li><a href="/wiki/Programaci%C3%B3n_a_nivel_funcional" title="Programación a nivel funcional">Programación a nivel funcional</a></li> <li><a href="/wiki/Programaci%C3%B3n_estruturada" title="Programación estruturada">Programación estruturada</a></li> <li><a href="/w/index.php?title=Programaci%C3%B3n_non_estruturada&action=edit&redlink=1" class="new" title="Programación non estruturada (a páxina aínda non existe)">Programación non estruturada</a></li> <li><a href="/wiki/Programaci%C3%B3n_imperativa" title="Programación imperativa">Programación imperativa</a></li> <li><a href="/wiki/Programaci%C3%B3n_modular" title="Programación modular">Programación modular</a></li> <li><a href="/w/index.php?title=Programaci%C3%B3n_de_sem%C3%A1ntica_multidimensional&action=edit&redlink=1" class="new" title="Programación de semántica multidimensional (a páxina aínda non existe)">Programación multidimensional</a></li> <li><a href="/wiki/Programaci%C3%B3n_orientada_a_obxectos" title="Programación orientada a obxectos">Orientación a obxectos</a></li></ul> </div></td></tr></tbody></table></div> <div role="navigation" class="navbox" aria-labelledby="Control_de_autoridades" style="padding:3px"><table class="nowraplinks hlist navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th id="Control_de_autoridades" scope="row" class="navbox-group" style="width:1%;width: 12%; text-align:center;"><a href="/wiki/Axuda:Control_de_autoridades" title="Axuda:Control de autoridades">Control de autoridades</a></th><td class="navbox-list navbox-odd plainlinks" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0px"><div style="padding:0em 0.25em"> <ul><li><span style="white-space:nowrap;"><span typeof="mw:File"><a href="https://www.wikidata.org/wiki/Wikidata:Main_Page" title="Wikidata"><img alt="Wd" src="//upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/20px-Wikidata-logo.svg.png" decoding="async" width="20" height="11" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/30px-Wikidata-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/40px-Wikidata-logo.svg.png 2x" data-file-width="1050" data-file-height="590" /></a></span>: <span class="uid"><a href="https://www.wikidata.org/wiki/Q2005" class="extiw" title="wikidata:Q2005">Q2005</a></span></span></li> <li><span style="white-space:nowrap;"><a href="/wiki/Biblioteca_Nacional_de_Espa%C3%B1a" title="Biblioteca Nacional de España">BNE</a>: <span class="uid"><span class="plainlinks"><a rel="nofollow" class="external text" href="https://datos.bne.es/resource/XX542465">XX542465</a></span></span></span></li> <li><span style="white-space:nowrap;"><a href="/wiki/Biblioteca_Nacional_de_Francia" title="Biblioteca Nacional de Francia">BNF</a>: <span class="uid"><span class="plainlinks"><a rel="nofollow" class="external text" href="https://catalogue.bnf.fr/ark:/12148/cb12549978q">12549978q</a></span></span></span></li> <li><span style="white-space:nowrap;"><a href="/wiki/Encyclop%C3%A6dia_Britannica" title="Encyclopædia Britannica">EBID</a>: <span class="uid"><span class="plainlinks"><a rel="nofollow" class="external text" href="https://www.britannica.com/technology/JavaScript">ID</a></span></span></span></li> <li><span style="white-space:nowrap;"><a href="/wiki/Faceted_Application_of_Subject_Terminology" title="Faceted Application of Subject Terminology">FAST</a>: <span class="uid"><span class="plainlinks"><a rel="nofollow" class="external text" href="https://id.worldcat.org/fast/982071">982071</a></span></span></span></li> <li><span style="white-space:nowrap;"><a href="/wiki/Gran_Enciclop%C3%A8dia_Catalana" title="Gran Enciclopèdia Catalana">GEC</a>: <span class="uid"><span class="plainlinks"><a rel="nofollow" class="external text" href="https://www.enciclopedia.cat/ec-gec-0262788.xml">0262788</a></span></span></span></li> <li><span style="white-space:nowrap;"><a href="/wiki/Gemeinsame_Normdatei" title="Gemeinsame Normdatei">GND</a>: <span class="uid"><span class="plainlinks"><a rel="nofollow" class="external text" href="https://d-nb.info/gnd/4420180-1">4420180-1</a></span></span></span></li> <li><span style="white-space:nowrap;"><a href="/wiki/Library_of_Congress_Control_Number" title="Library of Congress Control Number">LCCN</a>: <span class="uid"><span class="plainlinks"><a rel="nofollow" class="external text" href="https://id.loc.gov/authorities/sh96004880">sh96004880</a></span></span></span></li> <li><span style="white-space:nowrap;">MAG: <span class="uid"><span class="plainlinks"><a rel="nofollow" class="external text" href="https://web.archive.org/web/*/https://academic.microsoft.com/v2/detail/544833334">544833334</a></span></span></span></li> <li><span style="white-space:nowrap;"><a href="/wiki/Biblioteca_Nacional_da_Rep%C3%BAblica_Checa" title="Biblioteca Nacional da República Checa">NKC</a>: <span class="uid"><span class="plainlinks"><a rel="nofollow" class="external text" href="https://aleph.nkp.cz/F/?func=find-c&local_base=aut&ccl_term=ica=ph117651">ph117651</a></span></span></span></li> <li><span style="white-space:nowrap;"><a href="/wiki/Biblioteca_t%C3%A9cnica_nacional_de_Praga" title="Biblioteca técnica nacional de Praga">PSH</a>: <span class="uid"><span class="plainlinks"><a rel="nofollow" class="external text" href="https://psh.techlib.cz/skos/PSH13865">13865</a></span></span></span></li> <li><span style="white-space:nowrap;"><a href="/wiki/Syst%C3%A8me_universitaire_de_documentation" title="Système universitaire de documentation">SUDOC</a>: <span class="uid"><span class="plainlinks"><a rel="nofollow" class="external text" href="https://www.idref.fr/034781870">034781870</a></span></span></span></li></ul> </div></td></tr></tbody></table></div> <!-- NewPP limit report Parsed by mw‐web.eqiad.main‐64476968cd‐bfgdf Cached time: 20241102102007 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.512 seconds Real time usage: 0.677 seconds Preprocessor visited node count: 1984/1000000 Post‐expand include size: 64257/2097152 bytes Template argument size: 2819/2097152 bytes Highest expansion depth: 12/100 Expensive parser function count: 15/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 31550/5000000 bytes Lua time usage: 0.307/10.000 seconds Lua memory usage: 7714294/52428800 bytes Number of Wikibase entities loaded: 12/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 572.997 1 -total 46.29% 265.253 1 Modelo:Control_de_autoridades 21.25% 121.754 1 Modelo:Listaref 16.68% 95.571 9 Modelo:Cita_web 13.61% 78.012 1 Modelo:Commonscat 13.30% 76.188 2 Modelo:Irmáns 12.73% 72.951 2 Modelo:Caixa_lateral 5.88% 33.716 3 Modelo:Navbox 5.50% 31.487 1 Modelo:Linguaxe_programación 4.88% 27.978 1 Modelo:Linguaxes_de_programación --> <!-- Saved in parser cache with key glwiki:pcache:idhash:73799-0!canonical and timestamp 20241102102007 and revision id 6617393. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Traído desde «<a dir="ltr" href="https://gl.wikipedia.org/w/index.php?title=JavaScript&oldid=6617393">https://gl.wikipedia.org/w/index.php?title=JavaScript&oldid=6617393</a>»</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Especial:Categor%C3%ADas" title="Especial:Categorías">Categoría</a>: <ul><li><a href="/wiki/Categor%C3%ADa:Linguaxes_interpretadas" title="Categoría:Linguaxes interpretadas">Linguaxes interpretadas</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> A última edición desta páxina foi o 13 de xaneiro de 2024 ás 05:11.</li> <li id="footer-info-copyright">Todo o texto está dispoñible baixo a <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/">licenza Creative Commons recoñecemento compartir igual 4.0</a>; pódense aplicar termos adicionais. Consulte os <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use/gl">termos de uso</a> para obter máis información.<br />Wikipedia® é unha marca rexistrada da <a rel="nofollow" class="external text" href="https://www.wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, unha organización sen fins lucrativos.<br /></li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Normas de protección de datos</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:Acerca_de">Acerca de Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:Advertencia_xeral">Advertencias</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Código de conduta</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Desenvolvedores</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/gl.wikipedia.org">Estatísticas</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Declaración de cookies</a></li> <li id="footer-places-mobileview"><a href="//gl.m.wikipedia.org/w/index.php?title=JavaScript&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Vista móbil</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-5f99787d6b-tt676","wgBackendResponseTime":185,"wgPageParseReport":{"limitreport":{"cputime":"0.512","walltime":"0.677","ppvisitednodes":{"value":1984,"limit":1000000},"postexpandincludesize":{"value":64257,"limit":2097152},"templateargumentsize":{"value":2819,"limit":2097152},"expansiondepth":{"value":12,"limit":100},"expensivefunctioncount":{"value":15,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":31550,"limit":5000000},"entityaccesscount":{"value":12,"limit":400},"timingprofile":["100.00% 572.997 1 -total"," 46.29% 265.253 1 Modelo:Control_de_autoridades"," 21.25% 121.754 1 Modelo:Listaref"," 16.68% 95.571 9 Modelo:Cita_web"," 13.61% 78.012 1 Modelo:Commonscat"," 13.30% 76.188 2 Modelo:Irmáns"," 12.73% 72.951 2 Modelo:Caixa_lateral"," 5.88% 33.716 3 Modelo:Navbox"," 5.50% 31.487 1 Modelo:Linguaxe_programación"," 4.88% 27.978 1 Modelo:Linguaxes_de_programación"]},"scribunto":{"limitreport-timeusage":{"value":"0.307","limit":"10.000"},"limitreport-memusage":{"value":7714294,"limit":52428800}},"cachereport":{"origin":"mw-web.eqiad.main-64476968cd-bfgdf","timestamp":"20241102102007","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"JavaScript","url":"https:\/\/gl.wikipedia.org\/wiki\/JavaScript","sameAs":"http:\/\/www.wikidata.org\/entity\/Q2005","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q2005","author":{"@type":"Organization","name":"Colaboradores dos proxectos da Wikimedia"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2008-01-09T23:05:05Z","dateModified":"2024-01-13T05:11:04Z","headline":"linguaxe de programaci\u00f3n interpretada utilizada principalmente en p\u00e1xinas web"}</script> </body> </html>