Custom script will be written in js file?

Hello
When creating custom script, I will see it in the .js files under the doctype? I checked and did not find the custom script added to the js file. Where it is stored?

Regards
Bilal

.js file is there against every form/doctype which includes client side script. But instead of doing changes directly in.js file. You can use Custom Script.

Check it here - http://frappe.github.io/erpnext/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples/

Thank you. And I know. But this custom script, we can not see it in the .js files, why? Where it is stored?
After I did my custom script and it is working fine, I checked the .js file and did not find the code that I wrote it in the custom script.
Regards
Bilal

Custom Scripts are stored in database, you can copy from the doctype to the .js file manually.

Regards!