Pusti Mand (Technical Sales Engineer)

List of Contributed Questions (Sorted by Newest to Oldest)

No Question(s) Posted yet!

List of Contributed Answer(s) (Sorted by Newest to Oldest)

Answer # 1 #

This is pretty simple in JavaScript. The easiest way is Object.keys(). You just give it your object, like this: Object.keys(myObject). It will give you an array back with all the keys as strings. So if your object is { name: 'Kylie', age: 25 }, you'll get ['name', 'age']. It's really handy.

You can also use a for...in loop if you want to do something with each key one by one. Like for (const key in myObject). This lets you go through them all. Give it a go, no worries.

Answer # 2 #

That's a good question. The answer depends on what you're measuring. Are you talking about latitude or longitude?

A degree of latitude is pretty straightforward. It's roughly 111 kilometres anywhere on Earth. This distance stays fairly consistent.

Longitude is a different beast, mate. It's widest at the equator, also about 111 km. But that distance shrinks the closer you get to the poles. It becomes zero right at the top and bottom. So for longitude, the distance of a degree always depends on your current latitude. You can't convert it without that extra bit of info.

Answer # 3 #

That's a good question, mate. I had to look this up myself when I first got my watch. BQB mode isn't a feature you use every day, but it's pretty important for making sure things work properly.

Basically, BQB stands for Bluetooth Qualification Body. It's not really a 'mode' for you to turn on or off like silent mode. It's more about a certification inside the watch. When a company makes a device with Bluetooth, like our smart watches, they need to get it tested and approved. This BQB certification means the device has passed all the tests to use the official Bluetooth brand and technology. It's a stamp of approval that says the Bluetooth in your watch meets the proper standards.

So why should we care about that? Well, it means the watch will connect to your phone properly. It should work well with other Bluetooth gadgets too, like wireless headphones or your car's hands-free system. You probably won't ever see the BQB logo itself on your watch. It's just something that happens behind the scenes during manufacturing.

Sometimes, if you are a developer or someone who tests gadgets, you might need to put the watch into a special test mode. This mode can be used to check the BQB certification details. But for most of us regular users, we don't need to worry about it. We just enjoy that our watch connects to our phone without any dramas. So in short, BQB mode isn't something you actively use. It's just the technical guarantee that the Bluetooth in your watch is the real deal and will work with all your other stuff. It's a good thing to have.