Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
const { version } = process;
console.log(version);
This doesn't work in a browser.
puts version = RUBY_VERSION
version = GroovySystem.version
import static java.lang.String.join;
import static java.lang.System.getProperty;
import static java.lang.System.out;
public static void main(String[] args) {
String version = getProperty("java.vm.version"),
options = join(" ", args);
}
writeln({$I %fpcversion%});
Obviously FreePascal only.
Compiler options are not available through a single variable.
Compiler options are not available through a single variable.
my $version = $Config{version};
my $version_for_humans = $Config{version_patchlevel_string};
my %options = %Config{qw(config_args cccdlflags ccdlflags ccflags lddlflags libs)};
$version = "$]";