answersLogoWhite

0


Best Answer

var a = 12;

var b = 5;

var diff = a - b; // Value is now 7

alert("Difference: " + diff);

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you get the difference of 2 numbers written in java Script?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is the Kindle written in java script?

no


Does a java script operator perform mathematical operation on 2 numbers?

some times


What language is the RuneScape client written in?

Runescape runs using Java script.


What is java fx2.1.1?

Java script


Is Java script needed for Poptropica?

No, Java script is not needed to play poptropica.


Difference between java script and java server page?

JSP is a Java-based technology used specifically in order to help software developers create dynamic web pages; Java-Script is based on Java, but was created in order to allow non-programmers the ability to work with it easily.JSP must be compiled in Java byte-code in order to function properly; Java-Script is a Java language of a different dialect, and does not need to be directly translated into byte-code


Difference between awt and java script?

AWT is a Java package for creating graphical user interfaces. JavaScript is a completely unrelated programming language.


Does Java Script use the same compiler as Java?

No


What is the difference between VB-Script and JavaScript?

vbscript is used for server side as well as client side where as java script is used for client side only.


Where can I download java script free?

When it comes to java script you can simply download it free from the java website. You can also go to CNET downloads and get it free from there.


Does java script coding mean using it for Java programs only?

Java script coding is computer coding, many things require Java, and you need to have Java enabled to view these types of programs.


Does iPod touches have java script?

they have java< javascript and flash