Split the restaurant bill
Short review;


Use a beautifier, the code is not properly indented or spaced out
You use var, try to use const and let
The code already assigned billAmount / noOfGuests to split, so you can compare rounding and split
£ should probably be a single string constant
elseIf is a terrible variable name
elseIf is already multiplied by noOfGuests, why would you multiply it again in the if statement?
billAmount and noOfGuests should be parameters of splitBill and splitTip
tipremainder should be tipRemainder