<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Javascript by Daniela Castillo</title>
      <link>https://padlet.com/danicastillo789/rea50lm9mfn37bpk</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2022-11-21 14:18:17 UTC</pubDate>
      <lastBuildDate>2022-11-23 02:08:03 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet.net/icons/png/0023.png</url>
      </image>
      <item>
         <title>Conocimiento avanzado</title>
         <author>danicastillo789</author>
         <link>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394916503</link>
         <description><![CDATA[<div><strong>• ¿Qué es un callback?<br></strong><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Representan el uso de funciones como parámetros de otras funciones. Es decir, un callback se crea cuando insertamos una función como valor de un parámetro de otra función y se ejecuta dentro de ésta.<br><br></div><div>&nbsp;<br><br></div><div>&nbsp; &nbsp; <strong>• ¿Qué es una función arrow?<br></strong><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Es una alternativa compacta a una expresión de función tradicional, pero es limitada y no se puede utilizar en todas las situaciones.<br><br></div><div><strong>&nbsp; &nbsp; • Tipos de eventos:&nbsp;<br></strong><br></div><div>¿Qué es el DOM y cómo se manipula EL DOM?<br><br></div><div>El DOM o ‘Document Object Model (Modelo de objeto de documento)’ es la estructura del documento HTML.&nbsp;<br><br></div><div>Una página HTML está formada por múltiples etiquetas, anidadas una dentro de otra, formando un árbol de etiquetas relacionadas entre sí, a esta formación se le denomina árbol DOM.<br><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cuando un programa JavaScript, se ejecuta en el contexto de un navegador, se puede acceder al DOM utilizando el objeto "document", corresponde al elemento &lt;html&gt;, con lo que se tendrá acceso a todos los nodos hijos de la página, como &lt;head&gt; o &lt;body&gt; y sus descendientes.<br><br></div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>document</strong> es la forma en que JavaScript apunta al objeto archivo HTML a través del DOM. Le dice al navegador «quiero ir al archivo HTML a realizar un cambio».&nbsp;</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>.getElementByID(‘demo’) </strong>apunta al elemento de la página con el ID «demo». Este es el elemento que JavaScript desea modificar. Para llegar ahí, JavaScript comienza en la etiqueta &lt;html&gt; más alta, luego se mueve a través del DOM hasta que llega al elemento de selección.&nbsp;<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-11-23 02:01:02 UTC</pubDate>
         <guid>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394916503</guid>
      </item>
      <item>
         <title>Funciones y métodos</title>
         <author>danicastillo789</author>
         <link>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394917107</link>
         <description><![CDATA[<div><strong>&nbsp;• ¿Cómo es la estructura de una función?<br></strong><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Se definen mediante la palabra reservada “function”, seguida del nombre de la función, una lista de parámetros entre paréntesis y separados por comas, y las declaraciones js encerradas entre llaves. Su definición formal es la siguiente:<br><br></div><div>function nombre () {<br><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; declaración js:&nbsp;<br><br></div><div>}<br><br></div><div>&nbsp; &nbsp; <strong>• Parámetros de una función<br></strong><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Los parámetros son accesibles como variables en el cuerpo de la función, para que estas sean más polivalentes, es decir que nos da la habilidad de agregar más valores a la función. Ejemplo:<br><br></div><div>&nbsp;<br><br></div><div>var resultado;<br><br></div><div>&nbsp;<br><br></div><div>var numero1 = 3;<br><br></div><div>var numero2 = 5;<br><br></div><div>&nbsp;<br><br></div><div>function suma () {<br><br></div><div>resultado = numero1 + numero2;<br><br></div><div>}<br><br></div><div>&nbsp;<br><br></div><div>&nbsp; &nbsp; <strong>• Inicialización de parámetros<br></strong><br></div><div>El = nos sirve para <strong>inicializar</strong> las <strong>variables</strong> dentro de la declaración de tipo. Para hacer esto la declaración debe consistir en un tipo de datos, seguido por un nombre de <strong>variable</strong>, un signo (=) y una constante del tipo apropiado. Al final <strong>se</strong> debe poner, <strong>como</strong> de costumbre, un punto y coma (;).</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-11-23 02:01:40 UTC</pubDate>
         <guid>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394917107</guid>
      </item>
      <item>
         <title>Uso de condiciones o decisiones</title>
         <author>danicastillo789</author>
         <link>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394917591</link>
         <description><![CDATA[<div>&nbsp;<strong>• Condición If<br></strong><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Es una estructura de control utilizada para tomar decisiones, un condicional que sirve para realizar operaciones especificas en función a una expresión, si se evalúa la expresión utilizada y da como resultado un positivo realizara la acción deseada.<br><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (condicion){<br><br></div><div>sentencia1(" ");<br><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br><br></div><div>&nbsp;<br><br></div><div><strong>&nbsp; &nbsp; • Condición if-else<br></strong><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Al igual que el if, es una estructura de control, que nos permiten tomar cierta decisión al interior de nuestro algoritmo, es decir, nos permiten determinar qué acciones tomar dada o no cierta condición.&nbsp;<br><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (condicion){<br><br></div><div>sentencia1(" ");<br><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{<br><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sentencia2(“”)<br><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br><br></div><div>&nbsp;<br><br></div><div>&nbsp;<br><br></div><div><strong>&nbsp; &nbsp; • Estructura Switch<br></strong><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Condicional que permite hacer múltiples operaciones, y tomar decisiones en función de distintos estados de las variables.&nbsp;<br><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Evalúa una expresión, comparando el valor de esa expresión con una instancia ‘case’ y ejecuta declaraciones asociadas a ese case, así como las declaraciones en los case que siguen.&nbsp;<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-11-23 02:02:08 UTC</pubDate>
         <guid>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394917591</guid>
      </item>
      <item>
         <title>Ciclos (o loops) en Javascript</title>
         <author>danicastillo789</author>
         <link>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394917902</link>
         <description><![CDATA[<div>&nbsp; &nbsp; <strong>• Ciclo for<br></strong><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; El for es utilizado para ciclos que ya tienen definidos sus interacciones, es decir que se repite hasta que la condición especificada se evalué como “false”<br><br></div><div>&nbsp;<br><br></div><div>&nbsp; &nbsp;<strong>&nbsp;• Ciclo while<br></strong><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; El while es utilizado cuando no sabemos el número de interacciones, ejecuta la condición especificada mientras esta se evalué como “true”<br><br></div><div>&nbsp;<br><br></div><div>&nbsp; &nbsp; <strong>• Ciclo do while&nbsp;<br></strong><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Se repite hasta que una condición especificada se evalúe como falsa.&nbsp; &nbsp; &nbsp;<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-11-23 02:02:29 UTC</pubDate>
         <guid>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394917902</guid>
      </item>
      <item>
         <title>Uso de operadores de Java Script</title>
         <author>danicastillo789</author>
         <link>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394919026</link>
         <description><![CDATA[<div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>Operadores aritméticos:</strong> Toman valores numéricos, ya sean literales o variables como sus operandos y retornan un valor numérico único.</div><div><br><br><br></div><div>Ejemplo</div><div>//Variables</div><div>var x=5;</div><div>var y=2;</div><div>&nbsp;</div><div>//Operadores</div><div>(suma y resta)</div><div>var s=x+y; var</div><div>r=x-y;</div><div>console.log(“suma es: ” +s)</div><div>console.log(“suma es: ” -r)</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>Operadores lógicos:</strong></div><div><strong>&nbsp;</strong></div><div>AND (&amp;&amp;)----let resultado = valor &amp;&amp; valor2</div><div>OR (||)--------let resultado2 = valor || valor2</div><div>NOT !TRUE= FALSE</div><div>&nbsp;</div><div>Mezclar operaciones</div><div>&nbsp;</div><div>num1 = 12;</div><div>num2 = 24;</div><div>num3 = 25;</div><div>num4 = 92;</div><div>num5 = 91;</div><div>&nbsp;</div><div>resultado= (num1 &lt; num2 || num2 &lt; num3) &amp;&amp; (!(num1 != num2) &amp;&amp; num5 != num3);</div><div>resultado = (V or V) AND (false AND True)</div><div>&nbsp;</div><div>True AND False</div><div>FALSE</div><div>document.write(resultado)</div><div>&nbsp;</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>Operadores de asignación:</strong> Un operador de asignación asigna un valor a su operando izquierdo basándose en el valor de su operando derecho.</div><div>&nbsp;</div><div>o &nbsp; Adicción&nbsp;</div><div>let numero = 10</div><div>numero += 5</div><div>document.write(numero) 15</div><div>&nbsp;</div><div>o &nbsp; Sustracción</div><div>let numero = 10</div><div>numero -= 5</div><div>document.write(numero) 5&nbsp;</div><div>&nbsp;</div><div>o &nbsp; Multiplicación</div><div>let numero = 10</div><div>numero *= 5</div><div>document.write(numero)50</div><div>&nbsp;</div><div>o &nbsp; Resto: Lo que le falta al numero para llegar al numero entero cuando se realiza la división</div><div>let numero = 50</div><div>numero %= 6</div><div>document.write(numero)2</div><div>o &nbsp; Exponencial</div><div>let numero = 10</div><div>numero **= 2</div><div>document.write(numero)100</div><div><strong>&nbsp;</strong></div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>Operador negativo:</strong></div><div>negación unitaria (numeros negativos)</div><div>numero1 =10</div><div>resultado =-numero1</div><div>&nbsp;</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>Operador de concatenación: </strong>Unir dos variables</div><div>&nbsp;</div><div>&lt;todo lo convierte en una cadena de texto/forzar un string&gt;</div><div>numero1 = 5</div><div>numero2 = 8</div><div>frase = "" + numero1 + numero2</div><div>document.write(frase)</div><div>&nbsp;</div><div>concact (se debe tener siempre un string)</div><div>numero1 = "5"</div><div>numero2 = 8</div><div>frase = numero1.concat(numero2)</div><div>document.write(frase)</div><div>&nbsp;</div><div>con backtiks y la variable entre ${}</div><div>nombre = "Valentina"</div><div>frase= `soy ${nombre} y tengo sueño`</div><div>document.write(frase)<br><br></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1854624527/ccc7c803f90b2394bb71e74f76af9672/image.png" />
         <pubDate>2022-11-23 02:03:37 UTC</pubDate>
         <guid>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394919026</guid>
      </item>
      <item>
         <title>Tipos de datos específicos en JavaScript</title>
         <author>danicastillo789</author>
         <link>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394919453</link>
         <description><![CDATA[<div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>Números:</strong> Valor numérico (entero, decimal) ej: 3, 2.5, 36</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>Cadenas de texto o strings:</strong> secuencia de caracteres que representan un valor. Ej: ‘Hola Mundo’</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>Uso de datos booleanos:</strong> Valores de true y false</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>Fechas en JavaScript:</strong> un momento fijo en el tiempo en un formato independiente.</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>Símbolos de JavaScript:</strong> Tipo de dato, cuyos casos son únicos e inmutables</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>Datos con JSON:</strong> JavaScript Object Notation Es un formato estándar para intercambio y almacenamiento de datos, envía datos al servidor.<br><br></div><div>&nbsp;<br><br></div><div>&nbsp;<br><br></div><div>Sintaxis: Los datos se guardan como pares de nombre-valor</div><div>“vendendor” : {</div><div>“nombre” : “Val”,</div><div>“edad” : 35,</div><div>“ventas” : 45000,</div><div>“sector” : null,</div><div>}</div><div>{} = objetos</div><div>[]= arrays</div><div>“calificaciones”: [85, 75, 95,100]</div><div>Doble Comilla para las propiedades</div><div>No se permite coma final<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-11-23 02:04:03 UTC</pubDate>
         <guid>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394919453</guid>
      </item>
      <item>
         <title>Variables en Java Script</title>
         <author>danicastillo789</author>
         <link>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394920195</link>
         <description><![CDATA[<div>Las variables se usan como nombres simbólicos para valores en la aplicación. Los nombres de las variables llamados identificadores se rigen de ciertas reglas. Deben comenzar con _ $ o letra mayúscula o minúscula.<br><br></div><div>Tipos de variables<br><br></div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var name = "Pedro" // String</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var students = 40 // Number</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var countries = ["Venezuela", "Colombia", "Perú"] // Array</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var grades = { Carlos: "B", Paula: "A" } // Object</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var success = true // Boolean</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var nothing = null // null<br><br></div><div>Tipos de declaraciones<br><br></div><div>Var: (aunque esta ya no se usa tan frecuentemente), Declara una variable, inicializándola opcionalmente a un valor. Podrá cambiar su valor y su scope es local.<br><br></div><div>Más frecuentes para declarar una variable:<br><br></div><div>| <strong>Contenedores Const</strong> <br>| Declara la variable de solo lectura en un bloque de ámbito. No será posible cambiar su valor, mediante la asignación. Constante siempre va tener el mismo valor .<br>| conts animo = "molesto" <br><br>| <strong>Contenedores Let</strong> Declara una variable local en un bloque de ámbito iniciándola opcionalmente a un valor. Podrá cambiar su valor. Limita el alcance de la variable<br>| let animo = "molesto"</div><div>&nbsp;<br><br></div><div>Si quiero ver que valor está contenido en una variable puedo utilizar console.log para que se muestre en consola, o para poder ver dentro del documento document.write(frase)<br><br></div><div>console.log(students);<br><br></div><div>// resultado 40<br><br></div><div><strong>Scope:</strong> Vendría siendo el alcance que tiene esa función. Se refiere dónde está disponible esa variable para JavaScript. Existen dos tipos de scope: local y global.<br><br></div><div>| <strong>Local</strong> <br>| Son declaradas dentro de bloques de código <br>| conts animo = "molesto" <br><br>| <strong>Global</strong><br>| Declara una variable local en un bloque de ámbito iniciándola opcionalmente a un valor. Podrá cambiar su valor. Limita el alcance de la variable<br>| let animo = "molesto"</div><div><strong>&nbsp;<br></strong><br></div><div><strong>Variable Hosting:</strong> Una variable que es declara más tarde, las variables son elevadas a la parte superior de la función o la declaración&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-11-23 02:04:42 UTC</pubDate>
         <guid>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394920195</guid>
      </item>
      <item>
         <title>¿Qué es el Strict mode?</title>
         <author>danicastillo789</author>
         <link>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394922356</link>
         <description><![CDATA[<div>El modo strict es una forma restringida de JS, haciendo que el lenguaje sea un poco más coherente, tiene una diferencia semántica del código normal. A diferencia del “sloppy mode”, el Strict modo ayuda a:<br><br></div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Eliminar algunos errores silenciosos de JavaScript cambiándolos para que lancen errores.</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Corrige errores que hacen difícil para los motores de JavaScript realizar optimizaciones: a veces, el código en modo estricto puede correr más rápido que un código idéntico, pero no estricto.</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Prohíbe cierta sintaxis que probablemente sea definida en futuras versiones de ECMAScript.<br><br></div><div>&nbsp;<br><br></div><div>fuction estoyEnStrictMode () {<br><br></div><div>&nbsp;<br><br></div><div>‘use strict’<br><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br><br></div><div>&nbsp;</div><div>(si se requiere, dejar en modo legacy para evitar tener nuevos errores)</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Las variables deben ser declaradas</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;que no son métodos, this sera undefined.</div><div>·&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Eval() es más limpio. Las variables que se definen en el código evaluado no pasan al scope que lo rodea.<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-11-23 02:06:47 UTC</pubDate>
         <guid>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394922356</guid>
      </item>
      <item>
         <title>¿Para qué sirve el uso de consola en JavaScript?</title>
         <author>danicastillo789</author>
         <link>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394922776</link>
         <description><![CDATA[<div>La consola en general es una herramienta indispensable ya que permite encontrar errores en el código de una página o aplicación, dentro de ella también se pueden hacer operaciones, arreglos, objetos o llamar funciones definidas que estén permitidas en el lenguaje de programación. Se pueden enviar valores de variable. Conocer el valor o realizar algún tipo de operación. Más importante aún se pueden identificar los tipos de errores que pueda presentar el código.<br><br></div>]]></description>
         <enclosure url="https://1.bp.blogspot.com/-gANJOOgvh04/YHiZ5BDOrnI/AAAAAAAADMg/RLUUiBzFRFQh23gFOVtkvowgFfExEuFWQCLcBGAsYHQ/s1280/1_cw-dk6uMQ1dfxBuKBYniYg.jpeg" />
         <pubDate>2022-11-23 02:07:11 UTC</pubDate>
         <guid>https://padlet.com/danicastillo789/rea50lm9mfn37bpk/wish/2394922776</guid>
      </item>
   </channel>
</rss>
