1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Use the js-sys Crate to Invoke Global APIs Available in Any JavaScript Environment

    webpackwebpack

    js-sys offers bindings to all the global APIs available in every JavaScript environment as defined by the ECMAScript standard.

    In this lesson, we will install and use js-sys to invoke JavaScript's Date API to grab the current time. The date will need to be converted to a value Rust can use and display that date from Rust in the browser.