The ilkkachu answer is misleading. Salt and IV have two completely different purposes
These purposes are described in the linked Wikipedia pages
Salt is used for key derivation. Hashing is used to created a fixed length encryption key from the user-supplied passphrase. The purpose of the salt is to avoid creating the same key from the same passphrase, to protect against rainbow table attacks. The passphrase and salt are concatenated, then hashed
The initialization vector has a different purpose. The AES cipher transforms (encrypts) a fixed number of bits (block) of plaintext using a fixed-length key and the contents of the previous block of plaintext. The first block does not have a previous block, so it is encrypted using the IV and the key
The salt is usually stored near the beginning of the encrypted file. It is not secret