---
schema_version: "1"
id: c97862f0948f1ec176c37841547e99834d57e26dcaed3434c6b5c9bb80dcefbb
title: Pass Variables from AMPscript to Server-Side JavaScript
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_passVariables.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_passVariables.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: e6750653562d79106fc2dc747c63c06376e2de643c33313c79304841e35cf678
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Pass Variables from AMPscript to Server-Side JavaScript

Work with variables from AMPscript using the [Variable server-side JavaScript functions](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_utilitiesVariable.md). These functions allow you to perform these actions:

- Pass information to an AMPscript value
- Get information from an AMPscript value

Review the Variable function for more information and sample code.
