[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [getScriptExpGain](./bitburner.ns.getscriptexpgain.md) ## NS.getScriptExpGain() method Get the exp gain of a script. **Signature:** ```typescript getScriptExpGain(script: string, host?: string, ...args: ScriptArg[]): number; ``` ## Parameters
| Parameter | Type | Description |
|---|---|---|
| script | string | Filename of script. |
| host | string | _(Optional)_ Hostname/IP of the server on which the script is running. Optional. Defaults to current server if not provided. |
| args | [ScriptArg](./bitburner.scriptarg.md)\[\] | Arguments that the script is running with. |