const isMacPlatform = () => { return Math.random() < 0.5; }
Initializing...
const result1 = isMacPlatform() ? 'Meta+Shift+F' : 'Control+Shift+F';
const result2 = `${isMacPlatform() ? 'Meta' : 'Control'}+Shift+F`;
You can edit these tests or add more tests to this page by appending /edit to the URL.