Author Topic: So, I started learning how to code in Javascript.  (Read 1778 times)

The output is nothing because you'll get a compile error.  :cookieMonster:

Schools still teach you table-based layouts?!
Well since we focused on digital illustration, photoshop and all that stuff, we only had 2 weeks to build a website.
So we didn't have time to be taught more complicated stuff.

Well since we focused on digital illustration, photoshop and all that stuff, we only had 2 weeks to build a website.
So we didn't have time to be taught more complicated stuff.
I also meant the comment about it being fragile.

     int Alu;
     ++Alu;
    
     switch (Alu){
     case 1:
        System.out.println("LOOOOL");
         break;
     case 5:
        System.out.println("Hai");
        break;
     case 10:
        System.out.println("Omnomnom");
        break;
     default:
        System.out.print("Meh");
         break;    
        }

Simplest little bit of code I could think of. The last output print is actually "print" because it doesn't need to go onto the next line.

If someone can tell me how to put in some sort of repeating interval that would be great, I only know the basics.


After I become well with Torque I'm gonna start on Java.



If someone can tell me how to put in some sort of repeating interval that would be great, I only know the basics.
   
Code: [Select]
     int Alu = 0;
     int stuff;
     while (true) {
     stuff = Alu++;
     
     stuff %= 10;
     
     switch (stuff){
     case 1:
        System.out.println("LOOOOL");
         break;
     case 5:
        System.out.println("Hai");
        break;
     case 0:
        System.out.println("Omnomnom");
        break;
     default:
        System.out.println("Meh");
         break;     
        }
    }

Have fun spamming your console!
« Last Edit: November 29, 2011, 03:59:37 PM by Otis Da HousKat »

Huh?
and the teacher was warning me that if I roostered something up apparently my whole website would break. :|

Even better:

String s1 = ("sssssss......BOOM");
String s2 = ("You killed the creeper successfully.");

int x = 12+40;

if x>50
   System.out.println(s2);

else
   System.out.println(s1);


If anyone can tell me the output, they will get a cookie.


sssssss......BOOM




I care about children in afrika!
« Last Edit: November 29, 2011, 04:15:06 PM by Cancel »

Don't care

User was banned for this post.
That's fake. You'll get banned for that.
Unless Baddy edited it like, really fast.

You'll get banned for that.
I never saw any rule about inpersonating a ban.