Recently, the PPAP song becomes hot in internet. Here is the original version and the cover:
C++ version of PPAP
Really, this C++ code is just for beginner. The Ugh function combines two things.
#include <iostream>
#include <string>
using namespace std;
// Ugh connects two things together
string Ugh(string a, string b) {
return a + ' ' + b;
}
int main() {
const string pen = "Pen";
const string apple = "Apple";
const string pineapple = "Pineapple";
const string ppap = Ugh(Ugh(pen, pineapple), Ugh(apple, pen));
cout << ppap << endl;
return 0;
}
This should give you a nice PPAP:
Javascript PPAP
Quite similar, hit F12 in Chrome and goto Console. Paste the following code.
var pen = 'Pen';
var apple = 'Apple';
var pineapple = 'Pineapple';
var Ugh = function(a, b) {
return a + ' ' + b;
}
var ppap = Ugh(Ugh(pen, pineapple), Ugh(apple, pen));
console.log(ppap);
This should output to console with a nice PPAP string in full:
Pen Pineapple Apple Pen Share on X–EOF (The Ultimate Computing & Technology Blog) —
272 wordsLast Post: How to Get Notified when Vultr Balance is Falling Below Threshold?
Next Post: The One-Line C# Linq Implementation of LineSpace Algorithm

WHY U NAME FUNCTIONS UPPERCASE??
to make it stand out. 😛