Sorry to clog up my real posts, until micro.blog has previews this is best option for testing out styling
console.time('expensive code');
thisIsExpensive();
console.timeEnd('expensive code');
// => "expensive code" 100ms
Typescript?
class Example {
#internal: string;
}
[1,2,3].forEach((x) => {
console.log(x);
});
Like some Ruby code
class Example
def self.test!
"How will it look?"
end
end
Or typescript?
class Example {
static test() {
return `How will it look?`;
}
}
How about some Rust?
struct Example {}
impl Example {
pub fn test() -> String {
"How will it look?".to_string()
}
}