Salesforce JavaScript Developer I Cert Practice Exam
Salesforce JavaScript Developer I Cert Practice Exam What will the output be in the console for the following: let s_prim = 'foo' let s_obj = new String(s_prim) (typeof s_prim) (typeof s_obj) - Answer-ANSWER: String Object What will the output be in the console for the following: let s1 = '2 + 2' let s2 = new String('2 + 2') (eval(s1)) (eval(s2)) (eval(Of())) - Answer-ANSWER: 4 "2 + 2" 4 What will the output be in the console for the following: const paragraph = 'The quick brown fox jumps over the lazy dog. It barked.'; const regex = /[A-Z]/g; const found = (regex); (found); - Answer-ANSWER: ["T","I"] Additional Info: If the g flag is used, all matches will be returned. If the g flag is NOT used, then only the first match will be returned. What will the output be in the console for the following: const paragraph = 'The quick brown fox jumps over the lazy dog. It barked.'; const regex = /[A-Z]/; const found = (regex); (found); - Answer-ANSWER: ["T"]
Written for
- Institution
- Salesforce JavaScript Developer I Cert
- Course
- Salesforce JavaScript Developer I Cert
Document information
- Uploaded on
- July 12, 2024
- Number of pages
- 17
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
salesforce javascript developer i cert
-
salesforce javascript developer i cert practice