P5.js code for creating a calculator tip app confused

Nice! But it seems you changed the code and without posting the updated code I cannot help you :slight_smile: what does the error say? Why do you think it happens? Did you actually define the function?