How to avoid instance name in the Document URLs in Salesforce?

Make sure My Domain is enabled in your org.

Check the below URL, if My Domain is not enabled.

http://www.infallibletechie.com/2013/04/how-to-register-domain-instead-of.html

Image - https://mydomain--c.documentforce.com/servlet/servlet.ImageServer?id={id}&oid={OrgId}

PDF - https://mydomain--c.documentforce.com/servlet/servlet.FileDownload?file={id}

How to find triggers available in Salesforce?

1. Go to Apex Triggers.


2. Check the Sobject type.


Symbol datatype in JavaScript

Symbols are new primitive type added in ECMAScript 2015. Symbols do not have a literal syntax, they have a Symbol() function that can be used to create them.

Symbols are unique. Each new symbol has a new, unique value.
Symbol() === Symbol() // false

Uses:
1. Symbols may be used as unique property keys. They prevent name clashes.
2. They may be used as constants representing concepts.
const CATEGORY_PHONES = Symbol('phones');