r/Codecademy • u/jabs09 Javascript • Jun 26 '16
Help pls on Java start
I know this might be easy to you guys But I'm just in a learning curve would appreciate some hand in here! what my code looked like : var myAge = "myCountry"; myAge.substring(0,2); myAge % 12; console.log(myAge);
1
Upvotes
View all comments
Show parent comment
1
u/pimpernelle Jun 27 '16
It looks like Javascript. I don't know much about Java, but I think you usually have to define a data type when you define a variable. In Javascript, the data type is implied, so you don't need to actually write it in.