They're both as secure as you make them. What security issues are you concerned about?
Is Javascript Better than PHP
Hello All, I want to build a website and I am confused to choose the right one between javascript and PHP in terms of security and simplicity. Can anyone suggest me which one is more secure?
If you want to build a website, use a framework, Laravel is a good choice.
use HTML to build a website
use php or javascript for the backend depending on where your skills are.
Security is down to your coding.
I would suggest PHP for backend and JavaScript for frontend so in short learn both.
However before you start your journey make sure you have a good grasp on HTML and CSS first.
The greatest advantage of JavaScript over PHP lies in the fact that JavaScript is a full-stack development language. Most JS vs PHP comparisons emphasize that JavaScript is the front end only, but that is simply not true. You can develop an entire web or mobile app with no other technology than JavaScript.
Check out this post.
@arjunkumar As others are saying, code is as “secure” and “simple” as you write. Using one technology over the other isn’t going to make your code inherently any more secure than if you used the other.
Hi this is Palak, I know this question asked before 2 year ago , but as many of the people still there to get some positive responses. Both PHP and JavaScript languages are fairly good in terms of community support, extensibility, and apps they are suited to. JavaScript is certainly more efficient in terms of speed and universality. Therefore everyone recommend that JS is better than PHP. Well I had seen this post over internet where an author published an article where difference in between both of them available in detailed. https://www.techgeekbuzz.com/blog/python-vs-javascript/ Thanks
@palak231 Python isnt php?
@Sinnbeck I am sure he does know that it's python vs javascript, just promoting an article at this point..
@OussamaMater You are probably correct
Please or to participate in this conversation.