Write a JavaScript program that compares two variables, a and b. Log “a is greater” if a is greater than b, “b is greater” if b is greater than a, and “both are equal” if a and b are equal. Make sure to use if statements and console.log
%%jsconsole.log("Conditional If/Then Statements as well as comparisoms");//Number1,acomparisonbetweentwoofmyfavoriteCryptoCoinsletBitcoin=8.0;letEthereum=8.7;if(Bitcoin>Ethereum){console.log("Bitcoin is a better crypto coin");}elseif(Bitcoin===Ethereum){console.log("Both coins are equally rated");}else{console.log("Etheruem the better coin");}//Number2,acomparisonbetweentwoofmyideasforpassionprojectsleteCommerseWebsite=8.1;letcryptoTxChecker=8.7;if(eCommerseWebsite>strangerThings){console.log("ecommerse website is a better choice");}elseif(eCommerseWebsite===cryptoTxChecker){console.log("Both choices are equally rated");}else{console.log("cryptotxchecker is a better project");}