This is a built-in link variable. It indicates the second endpoint (turtle) of a link. For directed links this will always be the destination for undirected links it will always be the turtle with the higher who number. You cannot set end2.
crt 2 ask turtle 1 [ create-link-with turtle 0 ] ask links [ show end2 ] ;; shows turtle 1
Take me to the full NetLogo Dictionary