Check out example codes for "msdos". It will help you in understanding the concepts better.

Code Example 1

// MS-DOS is made by Microsoft and stands for Microsoft Disk-Operating System.  You should use Windows, not DOS!!

Learn ReactJs, React Native from akashmittal.com