Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Javascript help

Name: Anonymous 2013-03-06 16:37

I'm just doing this on codeacademy,  so i don't know if this really would work or if the shitty program is just shitty.
(the // are the instructions for the lesson)

This is what they wanted:
//On line 2, declare a variable myName and give it your name.
var myName = "Ben"
//On line 4, use console.log to print out the myName variable.
console.log(myName)
//On line 7, change the value of myName to be just the first 2
//letters of your name.
myName = "Be"
//On line 9, use console.log to print out the myName variable.
console.log(myName)
 
This is what I thought would work:
//On line 2, declare a variable myName and give it your name.
var myName = "Ben";
//On line 4, use console.log to print out the myName variable.
console.log(myName);
//On line 7, change the value of myName to be just the first 2
//letters of your name.
myName = myName.subscript (0,2);
//On line 9, use console.log to print out the myName variable.
console.log(myName);

Name: Anonymous 2013-03-06 16:49

Too bad Javashit is shit for fags and kikes.

Name: Anonymous 2013-03-06 16:49

codeacademy is a crutch

Name: Anonymous 2013-03-06 16:53

>>3
Yeah,  i don't like how it writes half your shit for you. I'm going to experiment with what I learn else where

Name: Anonymous 2013-03-06 16:56

>>4
Please read SICP and stay away from the goyim control tool for kikes known as Javashit.

Name: Anonymous 2013-03-06 17:19

>>5
But how, if SICP was written by Jews?!

Name: Anonymous 2013-03-06 17:23

>>6
The SICP Jews are good Jews. They're so good you could call them honorary goyim.

I love honorary goyim.

Name: Anonymous 2013-03-06 17:25

>>5
He could also try Agora:
http://lambda-the-ultimate.org/node/4219

but in essence it would be the same, because objects and functions are the same: i.e. in a well designed language, like lambda calculus, there is no difference between objects and functions.

Name: Anonymous 2013-03-06 17:30

>>8
Still even C/C++ provides overloading () operator, allowing using objects as poor man's closures - that is what one wants most of the time.

Name: Anonymous 2013-03-06 18:12

Codecademy isn't perfect.  You can have the right answer that would work in the real world, but their system sees it as error if you deviate. 

Your best bet is take the code examples, do it their way, then open up a textfile or Firefox Javascript Scratchpad and get it to work your way. 

BTW does Twitter Bootstrap have to be everywhere now?  I'm sick of that elegant formatting and the same font everywhere.

Name: Anonymous 2013-03-06 18:45

dubs help
please check them‽

Name: Anonymous 2013-03-06 23:41

>Twitter Bootstrap

i cannot help to read it as buttstrap -_-

Don't change these.
Name: Email:
Entire Thread Thread List