The most common way to define a function in JavaScript is by using the function keyword, followed by a unique function name, a list of parameters (that might be empty), and a statement block surrounded by curly braces.
La forma más común para definir una función en JavaScript es mediante el uso de la función de la palabra clave, seguido de un nombre de función única, una lista de parámetros (que puede estar vacía), y un bloque de instrucciones rodeado por llaves.
For example, if your JavaScript function is function myTransform(inJson) {... dostuff...} then the function name is myTransform.
Remember that when you were sending the request, you provided the name of a JavaScript function that is designed to handle the response.
Al enviar la petición HTTP es necesario indicar el nombre de la función JavaScript que procesará la respuesta.
Through Javascript functions it is possible to define that, for example, all ads are to be shown inside a box titled "Ads".
A través de funciones Javascript es posible definir que, por ejemplo, todos los anuncios mostrados tengan un recuadro que indique la palabra Publicidad.
It could be wired up directly to an onclick event or wrapped inside a JavaScript function that is wired to the onclick event.
Podría estar conectado directamente a un evento OnClick o dentro de una función de JavaScript conectada al evento OnClick.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.