How I got my JavaScript developer certificate
Posted on
10. März 2021 16:45:03 MEZ
Our colleague Yvonne takes you on her journey to become a certified Salesforce JavaScript developer.
Recently, I earned my Salesforce JavaScript developer certification. To give you a good impression of the challenges associated with this certification and to encourage you to take this exam too, I would like to share my experience from preparing for this certification. In case you are not too familiar with Salesforce yet – don't stop reading! This could be your way into the Salesforce ecosystem.
First, the certification consists of two parts: the multiple-choice exam about the various strengths and quirks of JavaScript that you have to register for via Webassessor, and the Trailhead superbadge Lightning Web Components Specialist. The order in which you complete those two is your choice. Personally, I'd complete the superbadge first – this way, you gain some more practical JavaScript experience that could be useful for the exam.
If you've completed some superbadges on Trailhead already, you know what it roughly entails: it is a practical real-world scenario in which a customer is in need of certain functionality on the Salesforce platform. You are supposed to provide this functionality step by step by coding the required LWCs (Lightning Web Components) on a Salesforce org (a Trailhead playground you will be able to create from the superbadge page). For every component you will be provided with code snippets that contain the scaffolding, including method signatures that are required for the automatic code checks. So basically, you only have to fill out given methods or HTML tags with some code that implements the given use cases. Sounds easy, but let me give you some more details in a bit.
In case you are not familiar with superbadges or even Trailhead: before you can tackle the superbadge, there are four smaller Trailhead modules that you need to complete first as indicated at the top of the LWC superbadge page. With each one you will gain some basic experience with developing LWCs on the Salesforce platform. All you need is a Trailhead account. So grab a coffee and get going!
Now that you've finished the prerequisites and the prework from the superbadge you'll notice that one and a half dozen sub-challenges are required for the superbadge. Quite many, which will take their time. Trailhead's time estimation of 14 hours may be fitting for you, but may as well be too little. This strongly depends on how quickly your functional solution matches the expected formal solution, meaning that the code check may fail even though functionally, your component fully implements the described use case. This was also the biggest challenge for me: I was certain that my components were working as expected, but still the code check said otherwise.
There certainly is a thin line between success and failure which can cost you time, so I'd suggest you proceed as follows if you want to be efficient:
Obviously, googling should be the last step as you certainly want to gain proper coding experience with LWCs. Mistakes are part of the game and make you realize how and why something works!
In case you are tackling the superbadge in smaller bits over several weeks or so, make sure to compare the version of the unlocked package that you installed in your org against the newest version provided in the superbadge from time to time. You might need to install the newest version to be up-to-date. Beware that the given code snippets may also change slightly, at least this was the case for me.
So, you finished the LWC specialist superbadge – congrats! Now you'll want to prepare for the multiple-choice exam for your certificate for JavaScript. Preparation is the key to success, even if you are already very familiar with JavaScript development. The exam can be tricky as it confronts you with code snippets some of which you wouldn't even consider writing yourself. Also, there may be questions on aspects of JavaScript that you have never thought or even heard of before. Yet another good reason is that the more familiar you are with the type of questions asked, the less time you will need to get adjusted to the questions during the exam. Now that I've convinced you to prepare for it, let me give you some advice from my experience on how to prepare.
Read the official JavaScript exam guide
As a first step, you should take a look at the official exam guide. In fact, pretty much all you need to know is included in the guide via links to respective Trailhead modules, the Mozilla documentation and other informative websites about JavaScript. The Trailhead modules are a fun way to start preparing, but the JavaScript documentation… I understand if you don't want to go through all the pages of documentation. This can become boring quickly and is also time-consuming. But to be informed is the first step to start the exam, so you should have at least a rough overview.
Code snippets for testing your knowledge
For testing your knowledge of JavaScript based on code snippets I recommend you this well-thought-out compilation of JavaScript questions with their answers and short explanations. Over 150 questions give you quite a bit of groundwork for the exam as they'll cover many aspects of JavaScript. At times those questions will make you raise your eyebrows. Try the code snippets in a JavaScript playground to verify and play around with them some more. Don't expect these questions to be representative of the exam, though. In the exam you'll have to expect a bit more text to read and various kinds of questioning referring to some code.
Practicing with representative questions
If you're interested in more representative practice questions, I warmly recommend you Focus on Force with its practice exams for the JavaScript Developer I. This course costs $19 and requires you to register – but I think that's worth it. You'll get over 150 exam-like questions that are categorized by exam sections and two full practice exams à 60 questions. This makes it easy to test your knowledge section-wise for a better identification of where you have the biggest gaps to close. For each question you'll get a short explanation of why an answer is correct or wrong and - even more importantly - suitable reference links to an official JavaScript documentation. After you're done with that, you'll certainly be prepared quite well for the exam.
JavaScript exam example: this is how the questions look like
Based on my preparations, I've come up with an example to illustrate one potential type of exam questions that you can see on the right. It is kept simple and short with respect to the question and code snippet, but you'll likely come across some code snippets of the like in the exam. Some variables are declared and initialized in some function (or class) and an output is generated with these variables. So what do you think the answer is?
What gets logged in the browser console when executing this immediately invoked function expression? Choose one answer. A) 'Hello' & 'World' & 'Hello' & 'World' B) undefined & undefined & 'Hello' & 'World' C) 'Hello' & undefined & 'Hello' & 'World' D) undefined & ReferenceError |
Well, the code highlighting gives it away a bit already - it is not A, obviously. But it's not B either - this question particularly addresses the differences in behaviour between var and let. So is it C? No, it's a trap! ... It's D: You need to know the concept of hoisting in JavaScript for this. You also need to know about the temporal dead zone of let-declared variables: You may not reference them before their initialization - in contrast to var-declared variables.
That's basically all there is to it, at least it was for me. So you are ready to start the exam. Here are some final tips:
Great, I'd say you're ready now. So get your Webassessor account and register for the exam! You can do it.
Get started with Trailhead: https://trailhead.salesforce.com/en/content/learn/trails/learn_salesforce_with_trailhead
Trailhead exam guide: https://trailhead.salesforce.com/help?article=Salesforce-Certified-JavaScript-Developer-I-Exam-Guide
LWC specialist superbadge: https://trailhead.salesforce.com/en/content/learn/superbadges/superbadge_lwc_specialist
LWC specialist help: https://trailhead.salesforce.com/help?article=Lightning-Web-Components-Specialist-Superbadge-Trailhead-Challenge-Help
Webassessor: https://www.webassessor.com/salesforce
Linking your Webassessor and your Trailhead account: https://trailhead.salesforce.com/help?article=Link-Your-Trailhead-and-Webassessor-Accounts
JavaScript questions by Lydia Hallie on GitHub: https://github.com/lydiahallie/javascript-questions
Focus on Force practice exams and study guides: https://focusonforce.com/certification-courses/
LWC developer guides: https://developer.salesforce.com/docs/component-library/documentation/en/lwc
https://lwc.dev/guide/introduction
Lightning design system: https://lightningdesignsystem.com/
SFDX command reference: https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference.htm
SFDX setup: https://trailhead.salesforce.com/en/content/learn/modules/sfdx_app_dev/sfdx_app_dev_setup_dx
JS Fiddle: https://jsfiddle.net/
Salesforce Developer Blog: https://developer.salesforce.com/blogs/
Yvonne Karsten
Yvonne Karsten works as a Dev Lead and is responsible for large Salesforce projects. She has an eye on what is being developed in the project, supports the transfer of know-how in the team, is involved in many technical decisions and develops herself.