How is a message getting generated on an html file when AI model is not being used to input person’s name, hobbies, ?
Great question! The messages are pre-written and stored in the app’s code. When you submit your name and hobbies, it randomly picks one from that set—like drawing from a deck of cards.
With an AI model, each message would be created fresh based on what you entered. But in the Build with Andrew course app that you build, the same messages get reused in different combinations, so you’ll see repeats if you try it multiple times.