Re:Large Enough – Mistral AI
by glandium on Wednesday July 24, 2024 @09:57PM
(#41064087)
Your function returns 3, and I don't see how it can return 2.
[ Parent
| on HN ]
I did not run the code myself. The code block and console log I have pasted is verbatim copy from Claude3.5
Re:Large Enough – Mistral AI
by michaelmrose on Thursday July 25, 2024 @12:46AM
(#41064800)
Claude isn't actually running console.log() it produced correct code.
This prompt "please write a javascript function that takes a string and a letter and iterates over the characters in a string and counts the occurrences of the letter"
Produced a correct function given both chatGPT4o and claude3.5 for me.