If you type in requests to write simple code, it spits out code. It strikes me as a great learning tool not just for beginning programmers, but for non-technical managers who want to learn how to ask for things.
Prompt: Write some Javascript code that will show the dimensions of an image when you hover over the image
Does just what you ask - it will fire on a *particular* image with a specific ID and work just for that image
const image = document.getElementById('myImage');
Prompt: Write Javascript code that finds all images that detects when you hover over any image and then displays a tooltip with the image dimensions
Does what I meant to ask - find all images and show dimensions on hover.
const images = document.querySelectorAll('img');
images.forEach(image => {
image.addEventListener('mouseover', showTooltip);
image.addEventListener('mouseout', hideTooltip);
});
It also gives almost line-by-line explanations of what it's doing.
I haven't compared head-to-head with ChatGPT. I think for coding it's about the same. For other areas, it seems more fluent than the last version of ChatGPT that I tried (which I think is still the current one).
And the free versions are always one version behind.
Skynet is operational.