Can you please edit your post to make the question and context more clear? I don’t understand anything you’ve said.
but notepad editor don’t display any errors therefor what the problem in atom?
You need to say what package you’re using to run the script with, and give us an example of the actual script (that someone can potentially run themselves).
Make sure you paste your example between backticks, like shown here
``` <paste here> ```