What's the difference of doing this?

What is the difference of doing RegisterNetEvent('blahblahblah, function() end rather than

RegisterNetEvent("blahblahblah")
AddEventHandler("blahblahblah", function()

end)
``` ?

RegisterNetEvent registers the event to be used over the network (client → server and vice versa) and it can take a single handler functions as an argument (but doesn’t need to).
RegisterNetEvent needs to only be called once to register it as a net event.
Using this function with a handler function is simply a shortcut to calling both functions.

AddEventHandler registers an event handler that is only accessible from server → server or client → client unless it was also registered as a net event.

There is no difference in how the event will operate, only a syntax difference.