Class wallpaper does not have to have an IIFE shell, as shown in the figure, in fact it will create an execution context and hide the class from the rest of the page.
So you just leave it as (not lowercase)
class Car(){}
Var still rises as before. It will be raised to the top of the execution context. If the code is currently in the context of the window, then this will be where var will be.
Classes are not loaded in ECMAScript 6. Thus, a class will be available only after it is declared.
source share