Skip to main content
added 169 characters in body
Source Link

JavaScript (V8), 57 50 bytes

a='uffalo';b='B'+a+' b'+a;c='b'+a;print(b,b,c,c,b)

Try it online!

You have to run these at Try it online! because running it in a browser console will try to print this webpage

57 bytes:

a='uffalo ';b='B'+a+'b'+a;c='b'+a;print(b+b+c+c+b.trim())

47 bytes but Try it online! doesn't understand String.replaceAll and it outputs a trailing space:

print('B'+('bBbbbBb'.replaceAll('','uffalo ')))

46 bytes but it outputs a trailing space (thanks to @lm42):

print('B'+('bBbbbBb'.replace(/|/g,'uffalo ')))

This is my first golf.

JavaScript (V8), 57 50 bytes

a='uffalo';b='B'+a+' b'+a;c='b'+a;print(b,b,c,c,b)

Try it online!

You have to run these at Try it online! because running it in a browser console will try to print this webpage

57 bytes:

a='uffalo ';b='B'+a+'b'+a;c='b'+a;print(b+b+c+c+b.trim())

47 bytes but Try it online! doesn't understand String.replaceAll:

print('B'+('bBbbbBb'.replaceAll('','uffalo ')))

This is my first golf.

JavaScript (V8), 57 50 bytes

a='uffalo';b='B'+a+' b'+a;c='b'+a;print(b,b,c,c,b)

Try it online!

You have to run these at Try it online! because running it in a browser console will try to print this webpage

57 bytes:

a='uffalo ';b='B'+a+'b'+a;c='b'+a;print(b+b+c+c+b.trim())

47 bytes but Try it online! doesn't understand String.replaceAll and it outputs a trailing space:

print('B'+('bBbbbBb'.replaceAll('','uffalo ')))

46 bytes but it outputs a trailing space (thanks to @lm42):

print('B'+('bBbbbBb'.replace(/|/g,'uffalo ')))

This is my first golf.

the tio link was broken
Source Link

JavaScript (V8), 57 50 bytes

a='uffalo';b='B'+a+' b'+a;c='b'+a;print(b,b,c,c,b)

Try it online!Try it online!

You have to run these at Try it online! because running it in a browser console will try to print this webpage

57 bytes:

a='uffalo ';b='B'+a+'b'+a;c='b'+a;print(b+b+c+c+b.trim())

47 bytes but Try it online! doesn't understand String.replaceAll:

print('B'+('bBbbbBb'.replaceAll('','uffalo ')))

This is my first golf.

JavaScript (V8), 57 50 bytes

a='uffalo';b='B'+a+' b'+a;c='b'+a;print(b,b,c,c,b)

Try it online!

You have to run these at Try it online! because running it in a browser console will try to print this webpage

57 bytes:

a='uffalo ';b='B'+a+'b'+a;c='b'+a;print(b+b+c+c+b.trim())

47 bytes but Try it online! doesn't understand String.replaceAll:

print('B'+('bBbbbBb'.replaceAll('','uffalo ')))

This is my first golf.

JavaScript (V8), 57 50 bytes

a='uffalo';b='B'+a+' b'+a;c='b'+a;print(b,b,c,c,b)

Try it online!

You have to run these at Try it online! because running it in a browser console will try to print this webpage

57 bytes:

a='uffalo ';b='B'+a+'b'+a;c='b'+a;print(b+b+c+c+b.trim())

47 bytes but Try it online! doesn't understand String.replaceAll:

print('B'+('bBbbbBb'.replaceAll('','uffalo ')))

This is my first golf.

added bad 47 byte solution
Source Link

JavaScript (V8), 57 50 bytes

a='uffalo';b='B'+a+' b'+a;c='b'+a;print(b,b,c,c,b)

Try it online!

You have to run itthese at Try it online! because running it in a browser console will try to print this webpage

57 bytes:

a='uffalo ';b='B'+a+'b'+a;c='b'+a;print(b+b+c+c+b.trim())

47 bytes but Try it online! doesn't understand String.replaceAll:

print('B'+('bBbbbBb'.replaceAll('','uffalo ')))

This is my first golf.

JavaScript (V8), 57 50 bytes

a='uffalo';b='B'+a+' b'+a;c='b'+a;print(b,b,c,c,b)

Try it online!

You have to run it at Try it online! because running it in a browser console will try to print this webpage

57 bytes:

a='uffalo ';b='B'+a+'b'+a;c='b'+a;print(b+b+c+c+b.trim())

This is my first golf.

JavaScript (V8), 57 50 bytes

a='uffalo';b='B'+a+' b'+a;c='b'+a;print(b,b,c,c,b)

Try it online!

You have to run these at Try it online! because running it in a browser console will try to print this webpage

57 bytes:

a='uffalo ';b='B'+a+'b'+a;c='b'+a;print(b+b+c+c+b.trim())

47 bytes but Try it online! doesn't understand String.replaceAll:

print('B'+('bBbbbBb'.replaceAll('','uffalo ')))

This is my first golf.

added 97 characters in body
Source Link
Loading
added 123 characters in body
Source Link
Loading
Source Link
Loading