I know in the question's body, we can use `code` to specify inline
code like this.
But can we specify
code in the title of the question? And if not, why?
No, Markdown isn't run on the title whatsoever. Any special characters get converted to their entities. There's really no need to specify code in the title. If you're using too much code in the title, perhaps you should consider a better title. Normally we'd only see someFunction() or Some_Random_Class listed in the title, which is perfectly readable for the short amount of text present for that line. Inline code in posts is meant to make the code stand out more than anything.
In the body:
In the title:
It's pretty easy to determine someFunction() is a keyword in this title, yes?