the solution is simple, but you may need to change the name of "NoColor" depending on your language.
app.selection.strokeColor = app.activeDocument.swatches.getByName("[None]").color; // depends on language
You haven't read this post carefully - have you?
From now on, any solution is correct - I will mark what you requested
Not any - but good and correct solutions.
Glad we could help.