Tip
Offers advice, suggestion or a clue.
It displays as follows:
Use cases
- To offer advice or guidance (on the content itself, not learning-related procedural aspects).
- To disambiguate a concept.
- To help prevent a usual mistake (a particular concept or idea is often misunderstood or leads to confusion).
Is discouraged…
- To display an extensive amount of content in it; it should tend to be brief and succint.
Examples
Example 1
Potassium is a silvery-white metal that is soft enough to be cut with a knife with little force. It reacts rapidly with atmospheric oxygen to form flaky white potassium peroxide in only seconds of exposure.
Potassium in nature occurs only in ionic salts. Elemental potassium reacts vigorously with water, generating sufficient heat to ignite hydrogen emitted in the reaction, and burning with a lilac-colored flame.
Potassium and Potash articles from Wikipedia - licensed under the Creative Commons Attribution-ShareAlike License 3.0
Example 2
The pop() is a JavaScript pre-built method that removes the last element from an array and returns that element. This method changes the length of the array.
The following code creates the myFish array containing four elements, then removes its last element.
const myFish = ['angel', 'clown', 'mandarin', 'sturgeon'];
const popped = myFish.pop();
console.log(myFish); // ['angel', 'clown', 'mandarin' ]
console.log(popped); // 'sturgeon'
Array.prototype.pop() article at MDN web docs - licensed under Creative Commons.