diff --git a/docs/sdks/node.md b/docs/sdks/node.md index 1a2b2bf9b5..45dd8be269 100644 --- a/docs/sdks/node.md +++ b/docs/sdks/node.md @@ -48,7 +48,7 @@ Please also pay attention to the “environment” option. Setting this will all Now that we have initialized the client SDK in our application we can start using feature toggles defined in Unleash in our application. To achieve this we have the “isEnabled” method available, which will allow us to check the value of a feature toggle. This method will return **true** or **false** based on whether the feature should be enabled or disabled for the current request. -```sh +```js setInterval(() => { if(unleash.isEnabled('DemoToggle')) { console.log('Toggle enabled');