友達(ともだち)の家(いえ) ___ 遊(あそ)びに行(い)きます。
へ marks the direction of travel (towards a place). The particle に can also be used to mark the destination or purpose, which is why both 'へ' and 'に' are correct in this context.
移動の方向や目的地(「友達の家」)を示します。「へ」は移動の方向性を強調し、「に」は最終的な到達点を強調しますが、この文脈ではどちらも自然に使われます。
Project Eagleなら、AIがあなたの弱点を一瞬で検知。豊富なクイズ・模擬試験・音声読み上げトレーニングで日本語を完全攻略!