En expresiones que involucran valores numéricos y de string con el operador +, JavaScript convierte valores numéricos a string.
In expressions involving numeric and string values with the + operator, JavaScript converts numeric values to strings.
Una vez que estas propiedades tienen sus valores, JavaScript devuelve el nuevo objeto y la sentencia de asignación asigna el nuevo objeto ya inicializado a la variable mark.
Once these properties are set, JavaScript returns the new object and the assignment statement sets the variable mark to that object.
Ejemplos de valores verdaderos en JavaScript (los cuales se traducirán a verdaderos y por lo tanto ejecutarán el bloque condicional if)
Examples of truthy values in JavaScript (which will be coerced to true in boolean contexts, and thus execute the if block)
Con esta técnica resulta complicado introducir valores arbitrarios en JavaScript, pero gracias a una interesante línea de análisis el informe demostró la posibilidad de incrustar cadenas arbitrarias, y con una bastó para engañar a la extensión y hacerle creer que se estaba ejecutando en.
It is difficult to inject arbitrary values into JavaScript using this technique. But in a particularly clever move, the report demonstrated that arbitrary strings could be injected, and one of these was enough to trick the extension into thinking it was executing on.
Al tener el código anterior funcionando, cada vez que un objeto de tipo myNumberType es utilizado en un contexto donde deba ser representado por un valor primitivo, JavaScript automáticamente invocará la función definida en el código anterior.
With the preceding code in place, any time an object of type myNumberType is used in a context where it is to be represented as a primitive value, JavaScript automatically calls the function defined in the preceding code.
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.