Hanselminutes with Scott Hanselman cover image

Getting Started with JavaScript Unit Testing with Jasmine and Rushaine McBean

Hanselminutes with Scott Hanselman

00:00

How to Write JavaScript Functions That Return a String

It forces your code to kind of be granular in a sense that all these functions for this particular event can work without aren't dependent on the other ones. And pushes you to writing more module reusable code. So if I needed events for one page, they're easily available to me to use on another page and I don't have to write a long 20 line function all over again. It's not talking to my backend server that I would write a click handler and make it a function as opposed to just having a bunch of inline code inside of a click handler. Like I want to abstract away my interactions. Right. Yeah.

Play episode from 06:56
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app