var a = getRandomInt(1, 99);
var b = getRandomInt(1, 9);
var x = a + b;
/**
* Get a random integer between `min` and `max`.
*
* @param {number} min - min number
* @param {number} max - max number
* @return {int} a random integer
*/
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1) + min);
}
$name = 'Vasya';
// выведет "My name is $name"
echo 'My name is $name';
// выведет "My name is Vasya"
echo "My name is $name";
echo sprintf('My name is %s', $name);