How to only enqueue script if it’s a post

How to only enqueue script if it’s a post

error code: 523