Skip to content

Commit

Permalink
Update EXPERIMENTS.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathannorris committed Apr 15, 2016
1 parent f932ff8 commit 6ca860a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EXPERIMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ Asynchronous variables take three parameters in its constructor:

1. Variable Name (String)
2. Default Value (String, Number, or Boolean)
3. Updated Block
3. Updated Function (Function)

The type of the variable is defined by the type of the default value, and can be a `String`, `Number` or a `Boolean`.

For example, using a variable of type `Number`:

```javascript
Taplytics.variable("JS Number", 1, function(value) {
// function called when experiment config has loaded and value has been set
console.log("JS Number value: " + value);
});
```
Expand Down

0 comments on commit 6ca860a

Please sign in to comment.