it is necessary to make so that when you enter a word, the function checks that the word has upper and lower case letters and then displays true

Closed due to the fact that off-topic participants Viktorov , 0xdb , Stepan Kasyanenko , Grundy , freim 26 Apr at 11:25 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • " Learning tasks are allowed as questions only on condition that you tried to solve them yourself before asking a question . Please edit the question and indicate what caused you difficulties in solving the problem. For example, give the code you wrote, trying to solve the problem "- Viktorov, 0xdb, Stepan Kasyanenko, freim
If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    function mixedCase(str) { str = "" + str; return str != str.toLowerCase() && str != str.toUpperCase(); } console.log(mixedCase("Ivanko")); console.log(mixedCase("ivanko")); console.log(mixedCase("IVANKO")); console.log(mixedCase(123)); console.log(mixedCase(null)); console.log(mixedCase()); console.log(mixedCase({})); 

    • and how to bring the code so that it could be run here? - helldrg 6:58 pm
    • one
      @helldrg In the answer (and question) editor toolbar there is a "Fragment of code" button. - Igor
    • Thank you very much! - helldrg 7:42 pm