function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dirk NicolDirk Nicol 

Apex and Javascript

How does Apex and Javascript relate?
Jason DrummondJason Drummond
Hello, the answer to this question can depend on what part of the relationship between these two languages you are interested in. To ensure you receive the best possible answer, can you please provide more details on what you want to accomplish.

That said, if you are asking if Javascript can be used in an org to enhance client side experience then the answer is: Absolutely. There is a developer guide on Using JavaScript in Visualforce Pages (https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_javascript_intro.htm) that can help with getting started.

However, if you are more interested in how similar the two languages and how knowledge can be transferred from one skill to the other. This question is slightly harder to answer, but since Apex is a language that is similar to Java then you may be interested in How is JavaScript different from Java? (https://www.java.com/en/download/faq/java_javascript.xml) However, there are many differences between Java and Apex so reading something like What are the main differences between APEX and Java? (http://salesforce.stackexchange.com/a/79854) may help close that particular loop.

Hopefully this is helpful to the question you originally asked, please mark this answer if so.