Word function in commented code

The following code is not allowed because the method editor is looking for the word function - prevent us from creating functions.

// This function takes two arguments.

Although I can change the word function to something else, it does bring me to ask.

Why can’t we create subfunctions within a method? I know you can pass arguments from one method to another using arguments[x]. But is it possible to have a subfunction within a method?

no that is not possible