Advertisement
728x90
The eval() function evaluates JavaScript code represented as a string. The string can be a JavaScript expression, variable, statement, or sequence of statements.
javascript
1console.log(eval("1 + 2")); // 3Advertisement
Responsive Ad
🎯 Practice NowRelated Challenge
JavaScript Coding Exercise 77
Test your knowledge with this interactive coding challenge.
Start CodingAdvertisement
728x90
76of476