Answers for "check if a word exists in dictionary javascript"

0

check if a word exists in dictionary javascript

function check_if_word_exists(word) {
    const url = "https://api.wordnik.com/v4/word.json/" + word + "/definitions?limit=200&includeRelated=false&useCanonical=false&includeTags=false&api_key=a2a73e7b926c924fad7001ca3111acd55af2ffabf50eb4ae5";

    $.ajax({
        type: "GET",
        url: url
    }).done(function (result) {
        console.log("word exists");
    }).fail(function () {
        console.log("word does not exist");
    });
}
Posted by: Guest on January-04-2021

Code answers related to "check if a word exists in dictionary javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language