Both are good if learn the right way . Python has most commonly used in the back-end, big data, ETL, DevOps whereas JavaScript is most used in front-end and sometimes in back-end(NodeJs). Salary wise there is more salary in Big-Data and ETL but it totally depends and varies as per the company.