I dedicated to the web-development fields for 2 years. I remember when I start to learn…
Sometimes we provide a function with optional configurations to decorate it, how to write it…