This HTML5 document contains 5 embedded RDF statements represented using HTML+Microdata notation.

The embedded RDF content will be recognized by any processor of HTML5 Microdata.

PrefixNamespace IRI
dctermshttp://purl.org/dc/terms/
n3http://dbkwik.webdatacommons.org/ontology/
n2http://dbkwik.webdatacommons.org/resource/wK38r0GVwEOeWrrGAO2VHA==
rdfshttp://www.w3.org/2000/01/rdf-schema#
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n5http://dbkwik.webdatacommons.org/resource/iEFe6pY0OS3_LmjnVNNwsw==
xsdhhttp://www.w3.org/2001/XMLSchema#
n7http://dbkwik.webdatacommons.org/resource/OVIRyO8a6KqJuVC-lXn0RQ==
Subject Item
n2:
rdfs:label
Validating a Color Code
rdfs:comment
A simple function to validate a string and make sure it is a valid hex color code function isColourCode(str) { objRegExp = /^\#[0-9A-Fa-f]{6}$/ return objRegExp.test(str); }
dcterms:subject
n5: n7:
n3:abstract
A simple function to validate a string and make sure it is a valid hex color code function isColourCode(str) { objRegExp = /^\#[0-9A-Fa-f]{6}$/ return objRegExp.test(str); }