Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Resources for learning web design & front-end development:
ONLINE
Design
var clientId = '<your_client_id_here>'; | |
var clientSecret = '<your_client_secret_here>'; | |
$.ajax({ | |
url: 'https://api.lyft.com/oauth/token', | |
type: 'POST', | |
data: { | |
grant_type: 'client_credentials', | |
scope: 'public' | |
}, |
/* | |
* Reglas de nomenclatura de archivos: | |
* | |
* 1. No espacios en los nombres (ej: hola mundo -> malo!) | |
* 2. Mezcla de mayúsculas en los nombres (ej: HolaMundo -> malo!) | |
*/ | |
var variableString = "Hola q' tal?"; | |
// var variableNumber = 3; | |
// var variableNumber = 3.8976; |
// Function Statement | |
// -------- ---------- | |
// function saludo (nombre) { | |
// return "Hola " + nombre + "! :)"; | |
// } | |
// console.log(saludo("Ivan")); | |
// Function Expression | |
// -------- ---------- |
// Hoisting | |
// var saludo; | |
// var nombre; | |
// var numero; | |
// console.log(typeof saludo); | |
// console.log(saludo("Ivan")); | |
// Function Expression | |
// -------- ---------- | |
// Función como valor (Function as value) |
var preguntar = function (pregunta) { | |
var respuesta = prompt(pregunta); | |
return respuesta.toUpperCase(); | |
}; | |
var esRespuestaCorrecta = function (respuesta, respuestaCorrecta) { | |
if (respuesta === respuestaCorrecta) { | |
return true; | |
} else { | |
return false; |
// IIFE | |
(function () { | |
var preguntar = function (pregunta) { | |
var respuesta = prompt(pregunta); | |
return respuesta.toUpperCase(); | |
}; | |
var esRespuestaCorrecta = function (respuesta, respuestaCorrecta) { | |
if (respuesta === respuestaCorrecta) { |
var numeroEstudiantes = parseInt(prompt("Dame el # de estudiantes")); | |
var estudiantes = []; | |
for (var i = 0; i < numeroEstudiantes; i++) { | |
var nombre = prompt("Ingresa el nombre " + i); | |
var apellidos = prompt("Ingresa el apellido " + i); | |
var estudiante = {}; | |
estudiante.nombre = nombre; | |
estudiante.apellidos = apellidos; |
var numeroEstudiantes = parseInt(prompt("¿Cuántos estudiantes vas a registrar?")); | |
var estudiantes = []; | |
document.write("<h1>Lista de Estudiantes</h1>"); | |
for (var i = 0; i < numeroEstudiantes; i++) { | |
var nombre = prompt("Nombre del estudiante #" + (i+1)); | |
var apellido = prompt("Apellido del estudiante #" + (i+1)); | |
var estudiante = { | |
nombre: nombre, |