What Does Spaghetti Code Mean?

Spaghetti code is a slang term used to refer to a tangled web of programming source code where control within a program jumps all over the place and is difficult to follow. Spaghetti code normally has a lot of GOTO statements and is common in old programs, which used such statements extensively.

Techopedia Explains Spaghetti Code

Old programming languages like BASIC, which featured GOTO statements, were highly susceptible to spaghetti code because programmers found it very convenient to direct control of the program from one area to another using the GOTO statements.