[Chapter 21] Reference: eval()
Author: David Flanagan
Date: Fri Aug 29 11:15:48 1997

#

| Chapter 21 JavaScript Reference |

# eval() Function

## Name

eval() Function---execute JavaScript code from a string

## Availability

Navigator 2.0, Internet Explorer 3.0; changed in Navigator 3.0

## Synopsis

    eval(code)

### Arguments

`code`

  A string that contains the JavaScript expression to be evaluated or the statements to be executed.

### Returns

The value of the evaluated `code`, if any.

## Description

The `eval()` function of Navigator 2.0 has been changed to a method of Object in Navigator 3.0. See "Object.eval()" for complete details.

## See Also

"Object.eval()"

escape() |  | FileUpload