The Standard LibrarymathMethodslogOn this pagelogComputes the natural logarithm (base e). log(10); // 2.302 Syntax log(value) Returns The computation as a double.