Shell

What would be the output of the following script?

#!/usr/bin/env bash
NINJA_TURTLE=Donatello
function the_best_ninja_turtle {
        local NINJA_TURTLE=Michelangelo
        echo $NINJA_TURTLE
}
NINJA_TURTLE=Raphael
the_best_ninja_turtle

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

Michelangelo