This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Ejemplo de alcance léxico | |
| let a = "global"; | |
| function externa() { | |
| let b = "externa"; | |
| function interna() { | |
| let c = "interna"; | |
| //a = "cambio en interna" | |
| console.log(a, b, c); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Canvas API Example</title> | |
| <style> | |
| canvas { | |
| border: 1px solid black; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Blog de Desarrollo Web - Artículos, Tutoriales y Más</title> | |
| <meta name="description" content="Bienvenido a mi blog de desarrollo web donde encontrarás artículos, tutoriales y noticias sobre HTML, CSS, JavaScript y más. Aprende a crear sitios web efectivos y optimizados."> | |
| <meta name="keywords" content="desarrollo web, HTML, CSS, JavaScript, tutoriales, artículos, SEO"> | |
| <meta name="author" content="Nombre del Autor"> | |
| <link rel="stylesheet" href="styles.css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { useFormik } from 'formik'; | |
| const validate = values => { | |
| const errors = {}; | |
| if (!values.firstName) { | |
| errors.firstName = 'Required'; | |
| } else if (values.firstName.length > 15) { | |
| errors.firstName = 'Must be 15 characters or less'; |
NewerOlder