---
schema_version: "1"
id: e2c3bf8bf25569fc7295e1183d4e7be5d5aa649a27c62c2217a55eb4eee50ab2
title: Subscriber Functions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_subscriberFunctions.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_subscriberFunctions.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 590e0f54caa314dd161cb4701a4400ed7e1108e4898c4db1fcb83539af17f944
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Subscriber Functions

The Subscriber Server-side JavaScript functions allow you to create, update, and unsubscribe subscribers as well as retrieve information about those subscribers.

## Load

In your server-side JavaScript code, first load the core library using this syntax:

```
Platform.Load("core", "1");
```

## Initialization

To interact with a subscriber via server-side JavaScript, you must first initialize the object. This code initializes a subscriber with the subscriber key of mySubscriber.

```
var sub = Subscriber.Init('mySubscriber');
```
