How to multiply two character in javascript?

I am a newbie in javascript and trying to multiply two character in javascript like,

a*a = a^2

a*b = ab

Is there anyway to do that?

3 thoughts on “How to multiply two character in javascript?”

Leave a Comment