Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to do subtraction in javascript

//To subtract in Java script, you have to put an subtraction symbol '-' between them. If you have stored two numbers in variables, just put an subtraction symbol between the variable names.
//For example:
var a = 6
var b = 5
var c = a-b
var d = 6-5

Bot.send (c)/ print (c)// or whatever you use to get output
Bot.send (d)/ print (d)// or whatever you use to get output

//output will be: 1, 1
Comment

PREVIOUS NEXT
Code Example
Javascript :: underscore.js 
Javascript :: object length 
Javascript :: pass infinite argument in function 
Javascript :: react native 
Javascript :: async storage set 
Javascript :: remove duplicates array javascript 
Javascript :: turn string into number javascript 
Javascript :: name function in javascript 
Javascript :: spread operator es6 
Javascript :: using for loops js 
Javascript :: how do you pass props between components 
Javascript :: sort an array 
Javascript :: javascript pass array by value 
Javascript :: chrome.contextmenus 
Javascript :: for in loops javascript 
Javascript :: create file node 
Javascript :: js infinite loop 
Javascript :: how to build a string javascript es6 
Javascript :: get sessionstorage value in jquery 
Javascript :: self invoking function in javascript 
Javascript :: Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec. 
Javascript :: css striped background 
Javascript :: how to remove a character from a string in javascript 
Javascript :: app.js not found in laravel 8 
Javascript :: convert javascript date into excel date 
Javascript :: define conastant js 
Javascript :: javascript looop 
Javascript :: read more/less button with smoth expand 
Python :: pandemonium 
Python :: suppress pandas future warnings 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =