hello:) I’m a little confused because the textbook says it forms water but the notes from my school says that it forms salt and water :/

Answer:
Your notes used the alkaline Sodium hydroxide (NAOH) which gives the salt. Both are correct depending on the reactants.