When anisaldehyde is mixed with acetophenone in the presence of a strong base such as sodium hydroxide, trans-anisalacetophenone is formed.
This reaction is called an aldol condensation. Let's see how it takes place.