+ 2

What are the diffrences between java tutorial and js? Is one of them includes the other? And which of them must be learnd first?

2nd Apr 2017, 1:48 PM
Adam karrar hamid
Adam karrar hamid - avatar
5 Antworten
+ 16
tl;dr - Java and JavaScript are mutually exclusive, does not depend on each other. Neither needs to be learned first.
2nd Apr 2017, 1:56 PM
Hatsy Rei
Hatsy Rei - avatar
+ 15
Java is totally different from JS. Java is a programming language used for creating games and apps for pc and android whereas JS is used in web development with HTML and CSS. If you want to develop apps so go for java or for web development go for JS😊
2nd Apr 2017, 1:53 PM
Dev
Dev - avatar
+ 7
If you like web development then learn js. Else if you like app development then learn java. They are both different languages.
2nd Apr 2017, 1:52 PM
Cyrus Ornob Corraya
Cyrus Ornob Corraya - avatar
+ 6
Java tutorial is course about programming in Java language to develop app in multiple platform like windows, IOS, android, linux,etc. JS is stand for Javascript that is used for web development only. you can't make any app with Javascript except web based app. Java is belong to OOP language together with C++, C#, python etc Javascript is belong to Web development together with HTML, CSS, etc.
2nd Apr 2017, 2:48 PM
Agus Mei
Agus Mei - avatar
+ 2
Here are some differences between the two languages: Java is a statically typed language; JavaScript is dynamic. Java is class-based; JavaScript is prototype-based. Java constructors are special functions that can only be called at object creation; JavaScript "constructors" are just standard functions. Java requires all non-block statements to end with a semicolon; JavaScript inserts semicolons at the ends of certain lines. Java uses block-based scoping; JavaScript uses function-based scoping. Java has an implicit this scope for non-static methods, and implicit class scope; JavaScript has implicit global scope. Here are some features that I think are particular strengths of JavaScript: JavaScript supports closures; Java can simulate sort-of "closures" using anonymous classes. (Real closures may be supported in a future version of Java.) All JavaScript functions are variadic; Java functions are only variadic if explicitly marked. JavaScript prototypes can be redefined at runtime, and has immediate effect for all referring objects. Java classes cannot be redefined in a way that affects any existing object instances. JavaScript allows methods in an object to be redefined independently of its prototype (think eigenclasses in Ruby, but on steroids); methods in a Java object are tied to its class, and cannot be redefined at runtime.
6th Apr 2017, 6:59 PM
Mohammad Alrofaay Mohammed
Mohammad Alrofaay Mohammed - avatar