Replace substring in JavaScript string

'hi world'.replace('hi', 'hello') // 'hello world'