11 thoughts on “Local-Global Variable | Default Value in JavaScript

  1. Render the given string as follows
    Sample 1
    INPUT: (abc)2
    OUTPUT: abcabc

    Sample 2
    INPUT: (a)2(bc)3
    OUTPUT: aabcbcbc

    Sample 3
    INPUT: (ab)1(cd)2(de)3
    OUTPUT: abcdcddedede

    NOTE: YOUR PROGRAM SHOULD BE DYNAMIC. DONT WRITE CODE FOR SPECIFIC OUTPUT
    Please help me to solve this in JS

Leave a Reply

Your email address will not be published. Required fields are marked *