Tag strict script java

"use strict";

function say() {
    message = 'Hi'; // ReferenceError
    console.log(message);
}
say(); // Hi
console.log(message); // HiCode language: JavaScript (javascript)
Dark Knight