Check out example codes for "what is order in of preeendence in float, int, char, bool". It will help you in understanding the concepts better.

Code Example 1

the correct order is: bool<char<int<float
yes regarding size of data types
bool can only take 0 or 1 as value so it is the smallest
char has 1 byte size likewise others

Learn ReactJs, React Native from