{{fbdoc item="title" value="__FB_JS__"}}----

{{fbdoc item="syntax"}}
	""__FB_JS__""

{{fbdoc item="desc"}}
	Define without a value created at compile time when the JavaScript target
	is being used.  This is normally selected by ##fbc-js## or by the
	##-target js-asmjs## command line option.  It can be used to compile parts
	of a program only for the browser/Emscripten target.

	The JavaScript target also defines ##[[KeyPgDdfblinux|__FB_LINUX__]]## for
	compatibility with Emscripten's POSIX-like runtime environment.

{{fbdoc item="ex"}}
%%(freebasic)
#IFDEF __FB_JS__
	print "JavaScript target"
#ENDIF
%%

{{fbdoc item="back" value="CatPgDddefines|Predefined Defines"}}
{{fbdoc item="see"}}
	[[DevBuildEmscripten|Compiling FB for JavaScript]]
	[[CompilerOpttarget|Compiler Option: -target]]
----
{{fbdoc item="back" value="CatPgCompiler|Compiler Meta-Commands"}}
