Confidence involves both emotion and cognition. Indeed it has a metacognitive component, because it involves our knowledge about our brain at work. In other words, it’s not simply about whether we can do a task, but whether we assess ourselves to be capable of doing that task.