(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /*funciona porque es una variable global*/ | |
| if (true) { | |
| var x = 5; | |
| } | |
| console.log(x); // x is 5 | |
| /*no funciona porque su vida o mejor dicho limite esta en el if solamente por eso te da el error de no definida*/ | |
| if (true) { | |
| let y = 5; |
| var data = [ | |
| { | |
| "text": "Link 1", | |
| "url": "#" | |
| }, | |
| { | |
| "text": "Link 2", | |
| "url": "#" | |
| }, | |
| { |
| //https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call | |
| function sleep() { | |
| var reply = [this.me, 'common sleep between', this.sleepDuration].join(' '); | |
| console.log(reply); | |
| } | |
| var obj = { | |
| me: 'Gilberto', sleepDuration: '4 and 8 hours' | |
| }; |
| <TABLE> | |
| <ROWS> | |
| <TR> | |
| <TD>Shady Grove</TD> | |
| <TD>Aeolian</TD> | |
| </TR> | |
| <TR> | |
| <TD>Over the River, Charlie</TD> | |
| <TD>Dorian</TD> | |
| </TR> |
| var fruits = ['apple', 'banana', 'grapes', 'mango', 'orange']; | |
| /** | |
| * Array filters items based on search criteria (query) | |
| */ | |
| //creamos un fucion para filtrar los dos y le pasamos un paramentro llamado query | |
| function filterItems(query) { | |
| //aqui return el filter fruits.filter | |
| return fruits.filter(function(el) { | |
| //verificamos si |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| if (window.confirm("Do you really want to leave?")) { | |
| window.open("https://www.google.com", "Thanks for Visiting!"); | |
| }else{ | |
| window.open("https://gilbertoquinteroa.github.io/MyWork/", "Thanks for Visiting!"); | |
| } |
| -HTML5 | |
| https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5 | |
| -web standards | |
| https://www.w3.org/standards/ | |
| -SEO: | |
| https://www.seo.com/blog | |
| -CSS3 | |
| https://developer.mozilla.org/en/docs/Web/CSS/CSS3 |
| { | |
| "name": "site", | |
| "version": "1.0.0", | |
| "description": "this is my first example of createa simple site in React JS", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "author": "GilbertQuintero", | |
| "license": "ISC", |