Skip to content

Instantly share code, notes, and snippets.

@anaamilo
anaamilo / examen prueba 1
Created December 12, 2012 10:49
Examen Cristina Alonso Ana Milojevic
var a = new Array();
var n;
// Crear una función que, al enviarle el número de diapositivas (ej:15), devuelva un array ordenado con ej(15) diapositivas.
function crearPresentacion(){
for (var i=0; i<=n; i++);
a[i]=i;
return "creado";
@anaamilo
anaamilo / basic_algorithms.js
Last active June 12, 2017 15:57
JS | Basic Algorithms
console.log("I'm Ready!");
var hacker1 = "Ana";
console.log("The driver's name is " + hacker1);
var hacker2 = prompt("What's the navigator's name?");
console.log("The navigator's name is " + hacker2);
if(hacker1.length > hacker2.length){
console.log("The Driver has the longest name, it has " + hacker1.length + " characters");