how do i make a datapack?

i have followed multiple tutorials, but none of them worked, so i came to this discord server for help

I followed the tutorial but it still says these have errors and i dont know why

Continue to help post