# How to get Euler's constant value in JavaScript?

JavascriptWeb DevelopmentFront End Technology

To get Euler’s constant value in JavaScript, use the Math E property. This is a Euler's constant and the base of natural logarithms, approximately 2.718.

## Example

You can try to run the following code to get Euler’s constant value in JavaScript −

Live Demo

<html>
<title>JavaScript Math E Property</title>
<body>
<script>
var property_value = Math.E
document.write("Property Value is :" + property_value);
</script>
</body>
</html>

## Output

Property Value is :2.718281828459045
Published on 12-Feb-2018 13:40:10