Skip to content

launchdarkly/hello-js

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

LaunchDarkly Sample JavaScript Application


We've built a simple console application that demonstrates how LaunchDarkly's SDK works. 
Below, you'll find the basic build procedure, but for more comprehensive instructions, you can visit your Quickstart page or the JavaScript SDK reference guide.

Build instructions


  1. Edit index.html and set the value of clientSideID to your LaunchDarkly client-side ID. If there is an existing boolean feature flag in your LaunchDarkly project that you want to evaluate, set flagKey to the flag key.
const clientSideID = 'myClientSideID';
const flagKey = 'my-flag-key';
  1. Open index.html in your browser.

You should receive the message "Feature flag key '' is <true/false> for this user".

Releases

No releases published

Packages

No packages published

Languages