---
title: "Using server-side JavaScript in Sitecore Personalize"
slug: "using-server-side-javascript-in-sitecore-personalize"
abstract: "Describes how and where you can use server-side JavaScript in the Sitecore Personalize application."
---
# Using server-side JavaScript in Sitecore Personalize

Sitecore Personalize supports both client-side and server-side JavaScript, depending on the feature that you are using. This topic identifies which features use server-side JavaScript, and the supported JavaScript functionality and functions. You can also [use client-side JavaScript](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/using-client-side-javascript-in-personalization.html "Using client-side JavaScript in personalization") in the Sitecore Personalize application.

Server-side JavaScript (SSJS) is an extended version of JavaScript that enables back-end access to systems and servers. Sitecore Personalize can run server-side JavaScript when [running programmable decisions in Sitecore Personalize decisioning](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-decisioning-in-sitecore-personalize/managing-programmable-decisions.html "Managing programmable decisions"). Sitecore Personalize can also run SSJS when [evaluating conditions](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/developer-center/conditions.html "Conditions").

Sitecore Personalize supports modern JavaScript on the server-side, meaning the JavaScript EcmaScript (ES) 6 syntax. However, not all ES6 functions are supported due to the employed JavaScript transpiler.

Running SSJS enables you to access back-end systems, services, and servers. This means you can use guest attributes and their history, as well as a continuous stream of real-time session data. The internal Guest Context Service generates the guest attributes on the server-side.