javascript code practice

Solutions on MaxInterview for javascript code practice by the best coders in the world

showing results for - "javascript code practice"
Amandine
20 Jul 2019
1//some easy javascript codes....
2
3var a = 1
4var b = 2
5console.log("A is " + a)
6console.log("B is " + b)
7console.log("The sum of 'A' and 'B' is:")
8console.log(a + b)
9
10//output
11/*
12A is 1
13B is 2
14The sum of 'A' and 'B' is:
153
16*/