var message = “adios”; function despidete() { return message; } Global variables Si ambos ficheros están “cargados”, ¿Cuál es la salida esperada en cada función?
(input) { case 'Sean Connery': case 'Daniel Craig': return 'Fucking crack'; case 'Roger Moore': return 'A bit boring'; } }; Todas las opciones acaban con un return
eat food for food in foods when food isnt 'chocolate' countdown = (num for num in [10..1]) # Econ 101 if this.studyingEconomics buy() while supply > demand sell() until supply > demand while age < 18 canNotSmoke() canNotDrink()
@name + " moved #{meters}m." class Snake extends Animal move: -> alert "Slithering..." super 5 class Horse extends Animal move: -> alert "Galloping..." super 45