-
Escribir un programa que muestre un prompt donde el usuario ingresa un número, luego muestra otro prompt pidiendo otro número, finalmente el programa muestra una alerta con el resultado de la suma.
-
Crear un programa que reciba 3 numeros con prompts, y regrese el promedio de ellos con una alerta.
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
// Karma configuration | |
// Generated on Thu Nov 26 2015 15:19:02 GMT-0600 (Central Standard Time (Mexico)) | |
module.exports = function(config) { | |
config.set({ | |
// base path that will be used to resolve all patterns (eg. files, exclude) | |
basePath: '', | |
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> | |
<!-- Arriba establecemos que este es | |
un documento de typo HTML5 --> | |
<html> | |
<!-- Apartado donde vive toda la informacion importante | |
para el navegador, no el usuario --> | |
<head> | |
<!-- Titulo de la pagina mostrado en pestaña --> | |
<title>Mi Pagina</title> |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Pagina de Estilos</title> | |
<link rel="stylesheet" href="estilos.css"> | |
</head> | |
<body> | |
<style media="screen"> | |
#embedido { |
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta charset="utf-8"> | |
<meta name="author" content="Alonso Manuel Serrano Pérez" /> | |
<meta name="description" content="Reloj CSS3 + algo de JavaScript " /> | |
<meta property="fb:admins" content="100003815090498"/> |
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
cache = {}; | |
function cachedFibonacci(num) { | |
if (num <= 1) { | |
cache[num] = 1; | |
return 1; | |
} else if (cache[num]) { | |
return cache[num]; | |
} | |
const result = cachedFibonacci(num - 1) + cachedFibonacci(num - 2); |
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="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Sample Page</title> | |
</head> | |
<body> | |
<div class="container"> |