26

1

All My projects

So the first project is the basic calculator

 ****************NOTE******************

since the input from text is a string when doing + operator it's actually 

adding two numbers together and not concatenates them for example:

1+1= 11 instead of 2, so I converted all strings to numbers.

but you can actually do another method to convert a string  too a number is to prepend it with +

example: 

var num1="1" ;

var num2="2";

instead of:

num1+num2; 

the answer is: 12

try:

+num1 + +num2;

the answer is: 3

 

 

The second project is bootstrap like MODAL with the fading background effect

Comments

Please sign in or sign up to comment.