Check out example codes for "what is console in sublime text". It will help you in understanding the concepts better.

Code Example 1

{
    "cmd" : ["gcc", "$file", "-o", "$file_base_name"],
    "cmd" : ["$file_base_name"],
    "selector" : "source.c",
    "shell" : true,
    "working_dir" : "$file_path"
}

Learn ReactJs, React Native from akashmittal.com