Programming Tool

Harri Porten

    porten@kde.org

2014-05-04
Frameworks 5.0
KDE Frameworks
`kjs5` 1
`kjs5` &kde; ECMAScript compatible interpreter

## Synopsis

`kjs5` --help -help -h --version -version -v -e statement script

## Description

`kjs` is KDE ECMAScript/JavaScript engine.

## Application Options

`--help`,`-help`,`-h`

  Show `kjs5` usage.

`--version`,`-version`,`-v`

  Show `kjs5` version.

`-e` statement

  Executes the statement and exits. For example:

      kjs5 -e "print('hello world')"

script

  Executes the statements included in file script.

## Usage

`kjs5` file, as many other interpreters, when called without parameters uses a line editor to enter statements, showing the prompt

    JS>

To exit the line editor type `quit()` or press `Ctrl+D`.

## See Also

kjscmd5(1)

## Bugs

Please use KDE's bugtracker to report bugs.