string contains value code example Example: .includes( string var str = "Hello world, welcome to the universe."; var n = str.includes("world");