shop name create in javascript

technical talkiess
0

 <script>

       function shop_name(){

        var adjective = "Crazy Amazing Fire";

        var shop_name = "Engine Foods Garments";

        var another_word = "Bros Limited Hub";

        var element = Math.floor(Math.random()*3);

        adj = adjective.split(" ");

        shop_name = shop_name.split(" ");

        another_word = another_word.split(" ");

       alert(`${adj[element]} ${shop_name[element]} ${another_word[element]} `)

       }

       shop_name();

    </script>
Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)