Booda Sack
Sphere Master
- 300
- Posts
- 20
- Years
- Age 38
- Ireland
- Seen Jul 30, 2007
Sphere uses javascript not java,I think I would know i am coding a game in sphere.
Here is some proof
Declaring Variables in JAVA
Declaring variables in JavaScript
As you would know if you knew anything in javascript you dont have to declare what data type your variables are in javascript
Boolean,integer,string etc.
Here is some proof
Declaring Variables in JAVA
Code:
// integers
byte largestByte = Byte.MAX_VALUE;
short largestShort = Short.MAX_VALUE;
int largestInteger = Integer.MAX_VALUE;
long largestLong = Long.MAX_VALUE;
// real numbers
float largestFloat = Float.MAX_VALUE;
double largestDouble = Double.MAX_VALUE;
// other primitive types
char aChar = 'S';
boolean aBoolean = true;
Declaring variables in JavaScript
Code:
var boolean = true;
var number = 67463;
var string = "Java is a completley different language to javascript"
As you would know if you knew anything in javascript you dont have to declare what data type your variables are in javascript
Boolean,integer,string etc.
Last edited: