From my understanding, in the sodium-potassium pump we have Na+ inside the cell and K+ outside the cell, thus forming a so called "salted banana." After reading my textbook I found many statements saying that "potassium ions tend to diffuse out of the cell...sodium ions tend to flow into the cell." I initially thought that when the action potential hits Na+ leaves the cell and K+ enters the cell, which to me contradicts the previous statement.
Can someone please clarify this and differentiate between the two? I am trying to understand the action potential process as a whole.
Thank you !