How to apply math function in javascript

var root = 4;

root = Sqr(root);

alert(root);