The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

ddavie (5) [Avatar] Offline
I like the examples about using Never seen it before, it seems to help experiment with things, although I do not know how to use it fully.
For the example of p49 about the levels I am not sure what I am suppose to do with it though when I get to the linked page.
Am I suppose to type some command in the console to do various queries. I tried but had no luck. I notice I keep get back the value of 2. Not sure what that is about.
Perhaps a few examples of how to get results could help the reader get more about this example posted on jsbin.
ddavie (5) [Avatar] Offline
Re: Examples using jsbin
Actually I worked some of it out now. Yeah I am a beginner.

I can see now that I can experiment with the line
var $elements = $(".levels li:pointsHigherThan(50)");
By changing the 50 to 5 I can get a count of 3.

What command would the reader do to type out each line to the console so that the reader sees the actual values retrieved instead of the count as I think that could be more interesting? I suppose I am asking how do I see what is inside $elements as that would be rather interesting instead of just a count?
AurelioDeRosa (20) [Avatar] Offline
Re: Examples using jsbin
Hi ddavie.

The console provided by JSbin is for output results only. If you want to experiment with the code you have to use the JS tab instead. More on how to use JSbin here: