In the first step, when getting the current year and month, it prompts that y and m are undefined.
How to write your code, please post it to see
How to write your code, please post it to see