[JavaScript] JavaScript / function / eval() / function that recognizes a string as code #JavaScript #eval() eval() eval() is a function that recognizes a string as code. Grammar eval( string ) for example eval( '2+2' ) is the computed result 4, not the string 2+2. example Javascript 2022.08.04