From the course: Learn JavaScript: Write Modern Code with JavaScript ESNext
Unlock this course with a free trial
Join today to access over 25,000 courses taught by industry experts.
Use Google Gemini to write JavaScript code - JavaScript Tutorial
From the course: Learn JavaScript: Write Modern Code with JavaScript ESNext
Use Google Gemini to write JavaScript code
- All right. So now that we've seen ChatGPT and how it can be used to write basic JavaScript code, let's take a look at another competitor model, and that is Google Gemini. All right, now Google Gemini, interacting with it is pretty similar to what we saw with ChatGPT, but it does have some notable differences, and probably the biggest difference right now between ChatGPT and Google Gemini, although this isn't guaranteed to be true later, so I would double-check this, it's true as of this recording, anyway, is that Google Gemini can handle a much larger number of tokens. Now, just to introduce you to a little bit of terminology, when you're working with generative AI, such as ChatGPT or Google Gemini, tokens are usually words, but they can also be smaller pieces of words, if those have some sort of meaning, right? So, if you have the word unspoken, for example, usually that would probably be divided into two tokens, un, meaning like opposite of or not, and then spoken as the second…