^.^;

Psychology + Code Challenges

Learn philosophy through interactive programming exercises

Challenges

Circle of Control Calculator

beginnerStoic Dichotomy of Control

Build a function that categorizes life events into Circle of Control, Circle of Influence, and Circle of Concern based on controllability.

Instructions:

  • 1.Create a function `categorizeEvent(event, controllability, canInfluence)`
  • 2.Return 'control' if controllability is 100
  • 3.Return 'influence' if canInfluence is true and controllability < 100
  • 4.Return 'concern' otherwise

Philosophical Connection

Epictetus taught that wisdom lies in distinguishing what we control from what we don't. This function embodies that core Stoic principle.

Your Solution

Loading...

Test Cases

Full control
Input: categorizeEvent("My attitude", 100, true)
Expected: control
Partial influence
Input: categorizeEvent("Team morale", 40, true)
Expected: influence
No control
Input: categorizeEvent("Weather", 0, false)
Expected: concern
Terms of ServiceLicense AgreementPrivacy Policy
Copyright © 2025 JMFG. All rights reserved.