<reponame>gezish/alx-higher_level_programming<filename>0x15-javascript-web_jquery/102-script.js<gh_stars>0const URL = 'https://www.fourtonfish.com/hellosalut/';

function Hello (lang) {
  $.get(`${URL}?lang=${lang}`, (data, textStatus) => {
    if (textStatus === 'success' && lang) {
      $('DIV#hello').text(data.hello);
    }
  });
}

$(document).ready(function () {
  $('#btn_translate').click(() => {
    const lang = $('#language_code').val();
    Hello(lang);
  });
});
