JS

JavaScript ES6 - Set default function parameters

20.

Which of the following is a valid example of using default function parameters in ES6?

function greet(name) { name = "Hello" }

function greet() { }

function greet(name) { }

function greet(name = "World") { }