Codeyear

Páginas: 6 (1387 palabras) Publicado: 21 de abril de 2012
Code Year
Code Year is a introductory track for anyone who wants to learn how to program. Code Year starts with the basics and teaches concepts into a practical context. The first unit will give you an introduction to JavaScript, a beginner-friendly programming language. Later Code Year units focus on teaching HTML and CSS, and how these technologies can be combined with JavaScript to buildinteractive websites.
Start building apps and websites before you know it!
Track Units
* 1 Getting Started with Programming 2 Courses

* 2 Functions in JavaScript 4 Courses

* 3 Conditionals in JavaScript 3 Courses

* 4 Build Blackjack 2 Courses

* 5 Objects in JavaScript 3 Courses

* 6 Objects in JavaScript, Part II 2 Courses

* 7 Loops in JavaScript2 Courses

* 8 Building Blackjack 2 Courses

* 9 Review of OOP 2 Courses

* 10 Array and Loops in JavaScript 2 Courses

* 11 Recursion in JavaScript 2 Courses

* 12 Build Blackjack Final 1 Course

* 13 Build a Webpage 2 Courses

* 14 More HTML and basic styling 2 Courses

rack Unit #1: Getting Started with Programming
Getting Started withProgramming
Time to become a coding ninja.
JavaScript › Introduction

FizzBuzz
This is the first application for Week 1 of Code Year.
JavaScript › Introduction
Code Year begins with the basics! Getting Started with Programming will give you an introduction to JavaScript, a beginner-friendly programming language that we’ll cover with more depth in the next couple weeks.
For extra practice,we also have Fizzbuzz, a fun project designed to sharpen your new skills.

Track Unit #2: Functions in JavaScript
Getting Started with Programming
by Ryan Bubinski
JavaScript, nombres entre comillas,
Puedes usar la línea de comandos para hacer operaciones aritméticas.
Puedes hacer una pregunta para confirmar o cancelar.
> confirm("eres Macho")
==>true
Despliega una ventana para responder ok o cancelar
> alert ("esto es practica")
Despliega ventana con opción ok.
> myNameReferenceError: myName is not defined> var myName;> myName = "Florencio";==> Florencio> myName==> Florencio | En el interprete de Javascript no responde porque no esta definida la variable.Se declara la variable myNameSe le pone el contenidoSeconsulta el valor de myName |
> var lastName = "Quevedo";> lastname.lengthReferenceError: lastname is not defined> lastName.length==> 7 | Define variable lastName valor QuevedoError en escribir lastNamelastName.length da la longitud caracteres |
> number % 10==> 2> var "myString" = "hello"SyntaxError: missing variable nameOops, try again.> myString = "hello"==>hello> "hello".substring(0,2);==> he> three = "Florencio".substring(0,3);==> Flo> "coding rules".replace("coding","programming");==> programming rules | Divide variable entre 10Error en definer variableDefinir variable stringDefinir substring, toma las 2 primeras letrasSbstring para tomar 3 primeras letrasReplace cambia una palabra x otra |
> "programmingrules".toUpperCase();==> PROGRAMMING RULES | .toUpperCase()Convierte a mayúsculas |
7. Bring it Back lastName is a variable (as we learned earlier). A string such as "Joseph" is called a literal. This means you're directly entering the data and it's not stored as a variable. You can treat variables of the same type the same way you treat literals. A variable that holds a string, for instance, can be treated the sameway a string would. For example, we found the length of the literal "Ryan" earlier. You can find the length of the variable lastName that you defined earlier in the same way. Do you remember how? | lastName.length;Glad you asked! To find the length of a string, just type .length at the end of it. In this instance, it's lastName.length; |
Getting started with programming – section 4Numbers...
Leer documento completo

Regístrate para leer el documento completo.

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS